Skip to content

Commit d256bb4

Browse files
committed
use component tostring in collection editor
1 parent 915bc1c commit d256bb4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

WpfDesign.Designer/Project/PropertyGrid/Editors/CollectionTemplateDictionary.xaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
<TextBlock Text="{Binding Component}" />
1616
</DataTemplate>
1717
<DataTemplate x:Key="DefaultTemplate" DataType="wpfDesign:DesignItem">
18-
<TextBlock Text="{Binding ComponentType.Name}" />
18+
<TextBlock>
19+
<TextBlock.Text>
20+
<MultiBinding StringFormat="{}{0}">
21+
<Binding Path="Component" />
22+
</MultiBinding>
23+
</TextBlock.Text>
24+
</TextBlock>
1925
</DataTemplate>
2026
</ResourceDictionary>

0 commit comments

Comments
 (0)