Quantcast
Channel: wpftoolkit Discussions Rss Feed
Viewing all articles
Browse latest Browse all 2157

New Post: PropertyGrid

$
0
0
The Xaml designer is throwing the following error:
"Cannot modify TargetProperties once the definition has beed added to a collection."

on this line.
<xctk:EditorTemplateDefinition TargetProperties="EditorFont">
<xctk:PropertyGrid x:Name="testPropertyGrid" Margin="10,10,10,72" ShowSearchBox="False" ShowSortOptions="False">
            <xctk:PropertyGrid.EditorDefinitions>
                <xctk:EditorTemplateDefinition TargetProperties="EditorFont">
                    <xctk:EditorTemplateDefinition.EditingTemplate>
                        <DataTemplate>
                            <StackPanel Orientation="Horizontal">
                                <TextBlock Text="{Binding Value.Family}" />
                                <TextBlock Text=", " />
                                <TextBlock Text="{Binding Value.FontSize}" />
                                <TextBlock Text=", " />
                                <TextBlock Text="{Binding Value.Weight}" />
                                <TextBlock Text=", " />
                                <TextBlock Text="{Binding Value.Style}" />
                                <TextBlock Text=", " />
                                <TextBlock Text="{Binding Value.Stretch}" />
                            </StackPanel>
                        </DataTemplate>
                    </xctk:EditorTemplateDefinition.EditingTemplate>
                </xctk:EditorTemplateDefinition>
            </xctk:PropertyGrid.EditorDefinitions>
        </xctk:PropertyGrid>
Otherwise the propertygrid works fine.

Mark

Viewing all articles
Browse latest Browse all 2157

Trending Articles



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