Home > Net > WPF listview control in ItemTemplate template Item hidden failure
WPF listview control in ItemTemplate template Item hidden failure
Time:09-21
In the software I use template custom the listviewitem style, which according to the context of a hidden, but still in the interface can be selected to hide in the
The code below
& lt; Style TargetType="ListView" & gt; BorderThickness="1" CornerRadius="5" The Visibility="{Binding the Converter={StaticResource DeviceVisibilityConverter}}" HorizontalAlignment="Center" VerticalAlignment="Center" Background="{Binding Path=Background, RelativeSource={RelativeSource FindAncestor=Mode, AncestorType={x: Type ListBoxItem}}}" & gt; HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Binding the Converter={StaticResource DeviceIdConverter}, StringFormat=Id: {0}}"/& gt;
And this should be hidden items can be selected to I use the Visibility in the border="{Binding the Converter={StaticResource DeviceVisibilityConverter}}" the hidden, but it feels like just the template for the hidden ListviewItem not be hidden
CodePudding user response:
Converter code look to send back to attribute is set to try Collapsed