I just want to set the Theme one time for the entire application and not have to worry about setting it on individual controls.
UserControl.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <igThemes:PrimitivesOffice2k7Black/> <igThemes:DataPresenterOffice2k7Black/> <igThemes:EditorsOffice2k7Black/> <igThemes:DockManagerOffice2k7Black/> <igThemes:OutlookBarOffice2k7Black/> <igThemes:DataPresenterOffice2k7BlackBrushes/> <igThemes:EditorsOffice2k7BlackBrushes/> <igThemes:DockManagerOffice2k7BlackBrushes/> <igThemes:OutlookBarOffice2k7BlackBrushes/> </ResourceDictionary.MergedDictionaries> </ResourceDictionary></UserControl.Resources>
This isn't style all of the controls... for instance XamTabControl doesnt get styled.
What am I missing? This looks to be all the components of a theme.
Hello, I tested this and it works correctly. Is you XamTabControl inside the UserControl? Have you set any style/theme explicitly to it?
incase your interested this had to do with the fact that I was adding these resource dictionaries in the user control (which is a baseclass in a seperate assembly/project) and then deriving a view from that baseclass in a seperate assembly/project. - (SCSF - theme applied from user control in infrastructure.library and derived view in a business module)
The derived classes project did not include all the infragistic assembly references for the themes. So it was handling the themes that were referenced but not those that were not.