Hi,
I am using content pane in the XamDockManger, I have set the header text but want to change just the
header background color to a different color, also i want to apply some styling for this like when this pane is docked the shape should have a curved edges etc.
Can any one please suggest me how to go about doing this?
thanks,
santosh
Sure, will try .
Thanks,
Santosh
Santosh,
You can find the generic styles and brushes in the DefaultStyles directory in the Infragistics folder on your computer. Something like C:\ProgramFiles\Infragistics\NetAdvantage WPF 9.1\DefaultStyles\DockManager.
There you will find those xaml files that Andrew was talking about. Open them and find these brushes and the style for the PaneHeaderPresenter and them copy them to your application and restyle/retemplate in a manner you want.
Hope this helps,
Alex.
Thanks Andrew,
I am new to WPF, I could not find the PaneHeaderPresenter attribute for the pane , appretiate if you could please post a code for it, also any samples that use the style resourse xamls that is shipped along with product.
The best place to start is by looking at the default xaml that we ship with the product in the DefaultStyles directory. In the case of the header area of a ContentPane that is the PaneHeaderPresenter element. So with regards to the background, there are several resource keyed brushes that it used so you can change the color by providing custom brushes which use the keys igDock:DockManagerBrushKeys.PaneNotActiveCaptionFillKey and igDock:DockManagerBrushKeys.PaneActiveCaptionFillKey depending on the state you're looking to change. To change the shape, etc. of an element then you need to retemplate it. Again you can use the default styles provided as the starting point for the controltemplates you create.