Hi,
I am trying to modify the Style and ControlTemplate for OutlookBarGroup but it is not working. I got the file OutlookBarBase.xaml from the Default styles, put that in the resource dictionaries of my application and modified it.
Style for other elements can be easily modified and working fine but OutlookBarGroup is not picking up the style from OutlookBarBase.xaml file. I want to give it another background in the style but it is always showing the background as in OutlookBarOffice2k7Blue_Brushes.xaml. I simply dont want to use any brushes from default brushes file but I don't know why it is not working and it is only the case with OutlookBarGroup; rest of the styles are working fine. This has never happened before for any other control like XamDataGrid and its other parts.
Please let me know why it is behaving like that.
Regards,
Adeel
I can't think of any specific reason why you would have a problem. WPF locates local styles for elements based on the class type so I'm assuming that you are not deriving from OutlookBarGroup (in which case you need to key the style using your derived class type). Do you have a sample that demonstrates the problem?
Apologies!
I found my mistake while preparing a sample for you. There was another style tag for OutlookBarGroup in the Window.Resources section with a trigger that I got from the help files and I beleive that was overriding the style defined in the resouce dictionary.
I removed the style from Window.Resources section and now it is working fine.
Thanks Andrew for your prompt response.