|
|
|
@ -1,9 +1,12 @@
@@ -1,9 +1,12 @@
|
|
|
|
|
<UserControl x:Class="ICSharpCode.ILSpy.Options.DecompilerSettingsPanel" |
|
|
|
|
x:ClassModifier="internal" |
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
|
|
|
xmlns:properties="clr-namespace:ICSharpCode.ILSpy.Properties" |
|
|
|
|
xmlns:toms="urn:TomsToolbox"> |
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
|
|
|
xmlns:properties="clr-namespace:ICSharpCode.ILSpy.Properties" |
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" |
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
|
|
|
|
xmlns:options="clr-namespace:ICSharpCode.ILSpy.Options" |
|
|
|
|
d:DataContext="{d:DesignInstance options:DecompilerSettingsViewModel}"> |
|
|
|
|
<UserControl.Resources> |
|
|
|
|
<CollectionViewSource x:Key="SettingsCollection" Source="{Binding Settings}"> |
|
|
|
|
<CollectionViewSource.GroupDescriptions> |
|
|
|
@ -20,44 +23,37 @@
@@ -20,44 +23,37 @@
|
|
|
|
|
<ColumnDefinition Width="*" /> |
|
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
|
<TextBlock Margin="3" Grid.ColumnSpan="3" TextWrapping="Wrap" Text="{x:Static properties:Resources.DecompilerSettingsPanelLongText}" /> |
|
|
|
|
<ListBox Grid.Row="1" ItemsSource="{Binding Source={StaticResource SettingsCollection}}"> |
|
|
|
|
<ListBox.ItemContainerStyle> |
|
|
|
|
<Style TargetType="ListBoxItem"> |
|
|
|
|
<Setter Property="IsTabStop" Value="False"/> |
|
|
|
|
<Setter Property="Focusable" Value="False"/> |
|
|
|
|
</Style> |
|
|
|
|
</ListBox.ItemContainerStyle> |
|
|
|
|
<ListBox.GroupStyle> |
|
|
|
|
<GroupStyle> |
|
|
|
|
<GroupStyle.Panel> |
|
|
|
|
<ItemsPanelTemplate> |
|
|
|
|
<VirtualizingStackPanel Orientation="Vertical" /> |
|
|
|
|
</ItemsPanelTemplate> |
|
|
|
|
</GroupStyle.Panel> |
|
|
|
|
<GroupStyle.ContainerStyle> |
|
|
|
|
<Style TargetType="{x:Type GroupItem}" BasedOn="{StaticResource {x:Type GroupItem}}"> |
|
|
|
|
<Setter Property="Template"> |
|
|
|
|
<Setter.Value> |
|
|
|
|
<ControlTemplate> |
|
|
|
|
<Expander Padding="0" BorderThickness="0" IsExpanded="True"> |
|
|
|
|
<Expander.Header> |
|
|
|
|
<CheckBox Checked="OnGroupChecked" Unchecked="OnGroupUnchecked" Loaded="OnGroupLoaded" VerticalContentAlignment="Center" |
|
|
|
|
FontSize="16" FontWeight="Bold" Content="{Binding Name}" /> |
|
|
|
|
</Expander.Header> |
|
|
|
|
<ItemsPresenter/> |
|
|
|
|
</Expander> |
|
|
|
|
</ControlTemplate> |
|
|
|
|
</Setter.Value> |
|
|
|
|
</Setter> |
|
|
|
|
</Style> |
|
|
|
|
</GroupStyle.ContainerStyle> |
|
|
|
|
</GroupStyle> |
|
|
|
|
</ListBox.GroupStyle> |
|
|
|
|
<ListBox.ItemTemplate> |
|
|
|
|
<DataTemplate> |
|
|
|
|
<CheckBox Margin="19,0,0,0" IsChecked="{Binding IsEnabled}" Content="{Binding Description}" /> |
|
|
|
|
</DataTemplate> |
|
|
|
|
</ListBox.ItemTemplate> |
|
|
|
|
</ListBox> |
|
|
|
|
<ScrollViewer Grid.Row="1"> |
|
|
|
|
<ItemsControl ItemsSource="{Binding Source={StaticResource SettingsCollection}}"> |
|
|
|
|
<ItemsControl.GroupStyle> |
|
|
|
|
<GroupStyle> |
|
|
|
|
<GroupStyle.ContainerStyle> |
|
|
|
|
<Style TargetType="{x:Type GroupItem}" BasedOn="{StaticResource {x:Type GroupItem}}"> |
|
|
|
|
<Setter Property="Template"> |
|
|
|
|
<Setter.Value> |
|
|
|
|
<ControlTemplate TargetType="GroupItem"> |
|
|
|
|
<Expander Padding="0" BorderThickness="0" IsExpanded="True"> |
|
|
|
|
<Expander.Header> |
|
|
|
|
<CheckBox Checked="OnGroupChecked" Unchecked="OnGroupUnchecked" Loaded="OnGroupLoaded" VerticalContentAlignment="Center" |
|
|
|
|
FontSize="16" FontWeight="Bold" |
|
|
|
|
d:DataContext="{d:DesignInstance GroupItem}" |
|
|
|
|
Content="{Binding Name}" /> |
|
|
|
|
</Expander.Header> |
|
|
|
|
<ItemsPresenter /> |
|
|
|
|
</Expander> |
|
|
|
|
</ControlTemplate> |
|
|
|
|
</Setter.Value> |
|
|
|
|
</Setter> |
|
|
|
|
</Style> |
|
|
|
|
</GroupStyle.ContainerStyle> |
|
|
|
|
</GroupStyle> |
|
|
|
|
</ItemsControl.GroupStyle> |
|
|
|
|
<ItemsControl.ItemTemplate> |
|
|
|
|
<DataTemplate> |
|
|
|
|
<CheckBox Margin="19,0,0,0" IsChecked="{Binding IsEnabled}" Content="{Binding Description}" /> |
|
|
|
|
</DataTemplate> |
|
|
|
|
</ItemsControl.ItemTemplate> |
|
|
|
|
</ItemsControl> |
|
|
|
|
</ScrollViewer> |
|
|
|
|
</Grid> |
|
|
|
|
</UserControl> |