Im sory, I didnot understand where should I add this line:
<propgrid:DialogTextBoxPropertyEditor PropertyName="TabTitle" />
In my Xaml file in ResourceDictionary I have style with converter, to expand one category:
<Style TargetType="{x:Type propgrid:PropertyGridDataAccessorItem}">
<Style.Triggers>
<Trigger Property="DataAccessorType" Value="Category">
<Setter Property="IsExpanded">
<Setter.Value>
<MultiBinding>
<MultiBinding.Converter>
<local:ExpandedCategoryConverter />
</MultiBinding.Converter>
<Binding Path="DisplayName" RelativeSource="{RelativeSource Self}"/>
<Binding Path="ViewModel" RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType=Window}"/>
</MultiBinding>
</Setter.Value>
</Setter>
</Trigger>
</Style.Triggers>
</Style>
and here place where I create propertyGrid:
<DockPanel HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Dock="Bottom">
<propgrid:PropertyGrid x:Uid="PropertiesUserControl" x:Name="PropertiesUserControl" IsSummaryVisible="True"
AreNestedCategoriesSupported="True" IsAsynchronous="True" IsEnabled="True" AreDefaultSortDescriptionsEnabled="False"
AreCategoriesAutoExpanded="False" SelectedObject="{Binding SelectedObject}">
</propgrid:PropertyGrid>
</DockPanel>
And properties to expand I did as in my first question. But where to insert a line that you mentioned I can't figure out
[Modified 11 years ago]