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

Commented Unassigned: PropertyGrid items initially collapsed when using .Net 3.5 binaries [21967]

$
0
0
When using the PropertyGrid, all properties are shown initially collapsed.
This problem only occurs when using the latest (version 2.5) binaries for .Net 3.5. If I switch to the .Net 4.x binaries, the properties are expanded as expected.

Presumably this is a bug in the .Net 3.5 binaries? Is there any way to work around the issue?

Thanks,

--- John.
Comments: ** Comment from web user: catweazle **

Looking at the source, I just noticed a difference in the PropertyItemGroupContainerStyle, as defined in Generic.xaml and Aero2.NormalColor.xaml:

The .NET 4.x version has:
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
<Border>
<Expander Header="{Binding Name}"
Style="{StaticResource ExpanderStyle}">
<Expander.IsExpanded>
<sys:Boolean>True</sys:Boolean>
</Expander.IsExpanded>
<ItemsPresenter />
</Expander>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>

.. whereas the .NET 3.5 version is missing the part that sets "IsExpanded" to True:
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
<Border>
<Expander Header="{Binding Name}"
Style="{StaticResource ExpanderStyle}">
<ItemsPresenter />
</Expander>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>

Could this be the source of the bug?

--- John.


Viewing all articles
Browse latest Browse all 4964

Trending Articles