.NET Decompiler with support for PDB generation, ReadyToRun, Metadata (&more) - cross-platform!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

36 lines
1.6 KiB

<Control x:Class="ICSharpCode.ILSpy.Metadata.FlagsFilterControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:ICSharpCode.ILSpy.Metadata"
xmlns:dgx="urn:tom-englert.de/DataGridExtensions"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<Control.Template>
<ControlTemplate>
<Grid>
<ToggleButton x:Name="ToggleButton">
<ToggleButton.Template>
<ControlTemplate>
<Border Background="#01010101">
<Control x:Name="FilterSymbol" Style="{DynamicResource {x:Static dgx:DataGridFilter.IconStyleKey}}" />
</Border>
</ControlTemplate>
</ToggleButton.Template>
</ToggleButton>
<Popup d:DataContext="{d:DesignInstance dgx:DataGridFilterColumnControl}"
x:Name="Popup" IsOpen="{Binding Path=IsChecked, ElementName=ToggleButton, Mode=TwoWay}"
AllowsTransparency="True" StaysOpen="False">
<ListBox x:Name="ListBox" SelectionMode="Extended" SelectionChanged="ListBox_SelectionChanged">
<ListBox.ItemTemplate>
<DataTemplate>
<CheckBox DockPanel.Dock="Left" Margin="3,2" Content="{Binding Name}" IsChecked="{Binding IsSelected, RelativeSource={RelativeSource FindAncestor, AncestorType=ListBoxItem}}"/>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</Popup>
</Grid>
</ControlTemplate>
</Control.Template>
</Control>