Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

New Post: Custom Style Template for PropertyGrid not Working, Any Ideas?

$
0
0
Hi,

Have a look at "PART_PropertyItemsControl" in the style targeting "PropertyGrid" : There is no ItemsSource. Set it to
ItemsSource="{Binding Properties, RelativeSource={RelativeSource TemplatedParent}}"
and you will see the PropertyItems.

Also, instead of defining a style for "PropertyItemBase", try to define a style for "PropertyItem" based on "PropertyItemBase" ;
<Style TargetType="{x:Type xctk:PropertyItem}"
                BasedOn="{StaticResource {x:Type xctk:PropertyItemBase}}">
and you will be able to modify the PropertyItem displayed in the PropertyGrid.

Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>