Actually I have 2 questions for the xamTileManager
1. how to set the Theme.
Dim MyTheme As New ThemeMyTheme = New Theme("Blue", CommonStrings.XW_ThemeSupport_Office2010BlueTheme, _
New Uri("/Infragistics.Themes.Office2010BlueTheme;component/Office2010Blue.xamTileManager.xaml", UriKind.Relative))
ThemeResourceHelper.RemoveResourceDictionariesForControl(Me.Resources, "xamTileManager")
But it is still not shown in the correct Theme, it compiles and runs.
2. Displaying an Image as Contest. It just shows the filename. I cannot set it as the BackGround either
ps. I am really new the the WPF :-)
You can close the case.
It is so easy, I was just blind. It has a property .Image. set this and the image is shown.
Cheers Jan
Hello Jan,
I'm just checking if you need any further assistance on the matter.
Sincerely,
Lazar Nikolov
Infragistics
www.infragistics.com/support
Thank you for your post.
For more information about setting themes in code behind, you can refer to the WPF Samples Browser.
To set the theme in code, using the Theme and ThemeResourceHelper classes from the WPF Samples Browser, you perform the following steps in the same order:
1) Load the theme that you want to use in a Theme object.
Dim MyTheme As New Theme()MyTheme = New Theme("Blue", CommonStrings.XW_ThemeSupport_Office2010BlueTheme, NewUri("/Infragistics.Themes.Office2010BlueTheme;component/Office2010Blue.xamTileManager.xaml", UriKind.Relative))
2) Remove all resource dictionaries from the application resources that contain "TileManager" in their name, that is to remove any available themes for TileManager. You can skip this step, if you are sure that there are no other themes for TileManager previously applied.
3) Add the new theme to the application resources.
Me.Resources.MergedDictionaries.Add(New ResourceDictionary() With { _ Key .Source = MyTheme.ThemeUri _})
When performing these steps, the Office2010Blue theme for xamTileManager will be applied once you run your application.
Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Sorry. I figured the Image out, I did it in code, and it has a property Image.
I'm still missing the Theme.