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

New Post: PropertyGrid Override Style

$
0
0
Hi,

i am trying to override the propertygrid's style. Therefore i modified the generic.xaml.
Now i have the problem that the defaulteditors styles are not overridden.
Therefore i wrote following style to override the PropertyGridEditorComboBox in Xaml:
<Style TargetType="{x:Type xctk:PropertyGridEditorComboBox}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <ComboBox SelectedItem="{Binding Value}" ItemsSource="{?????}" />
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
This snippet seems to work except the fact that i do not know what i have to bind as an itemssource. What do i have to bind as Itemssource?

If there is also a better way to override the DefaultEditors appearance please let me know.

KR Manuel

Viewing all articles
Browse latest Browse all 4964

Trending Articles