This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I have read that it is possible to create a custom style for your propertygrid. I read the source code mentioned in previous threads (in the Themes folder, Themes.csproj). I have created my own assembly based on this project that I want to change in order to alter the style of the propertygrid. How do I utilize my new assembly to accomplish this? I am using your propertygrid in a usercontrol that is part of an xbap application. Thank you for your help. |
|
|
The basic idea is: 1. Copy one of the Themes\*.PropertyGrid.xaml files. 2. Merge this into your user control's resources section (UserControl.Resources.MergedDictionaries). (You could copy the content into the Resources section directly, but it's quite bulky.) 3. Modify the copied XAML as required for your custom style. The Templating sample shows examples of custom styles created and applied to the property grid (though they are simplified, and are therefore included directly in the window XAML files rather than as separate resource dictionary files) -- this should make a good starting point. |
|