forked from NuGetPackageExplorer/NuGetPackageExplorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPortableLibraryDialog.xaml
86 lines (76 loc) · 5.13 KB
/
PortableLibraryDialog.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<self:StandardDialog
x:Class="PackageExplorer.PortableLibraryDialog"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:self="clr-namespace:PackageExplorer"
FontSize="{Binding FontSize, Source={StaticResource Settings}}"
Title="Pick Target Frameworks"
WindowStartupLocation="CenterOwner"
SizeToContent="WidthAndHeight"
ShowInTaskbar="False"
MinWidth="300"
MinHeight="320">
<self:StandardDialog.Resources>
<Style TargetType="{x:Type ComboBox}">
<Setter Property="Grid.Column" Value="1" />
<Setter Property="IsEditable" Value="False" />
<Setter Property="IsReadOnly" Value="True" />
<Setter Property="Margin" Value="3,2,0,2" />
<Setter Property="SelectedIndex" Value="0" />
</Style>
</self:StandardDialog.Resources>
<DockPanel LastChildFill="True">
<Label DockPanel.Dock="Top" Content="_Target frameworks:" />
<Border DockPanel.Dock="Bottom" BorderThickness="0,0.5,0,0" BorderBrush="{DynamicResource ResourceKey={x:Static SystemColors.ActiveBorderBrushKey}}" Background="{DynamicResource ResourceKey={x:Static SystemColors.ControlBrushKey}}">
<UniformGrid HorizontalAlignment="Right" Margin="10,5" Rows="1" Columns="2">
<Button x:Name="OKButton" IsDefault="True" Content="OK" Margin="5" IsEnabled="False" Click="OkButton_Click" />
<Button IsCancel="True" Content="Cancel" Margin="5,5,0,5" Padding="15,2" Click="CancelButton_Click" />
</UniformGrid>
</Border>
<Border BorderThickness="1" BorderBrush="DarkGray" Padding="4,4,4,30" Margin="4,0,4,4">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<!-- .NET Framework -->
<CheckBox x:Name="NetCheckBox" Grid.Row="0" VerticalAlignment="Center" Checked="EvaluateButtonEnabledState" Unchecked="EvaluateButtonEnabledState" />
<ComboBox x:Name="NetFx" Grid.Row="0" IsEnabled="{Binding IsChecked, ElementName=NetCheckBox, Mode=OneWay}">
<ComboBoxItem Tag="net4">.NET Framework 4 and higher</ComboBoxItem>
<ComboBoxItem Tag="net403">.NET Framework 4.0.3 and higher</ComboBoxItem>
<ComboBoxItem Tag="net45">.NET Framework 4.5 and higher</ComboBoxItem>
<ComboBoxItem Tag="net451">.NET Framework 4.5.1 and higher</ComboBoxItem>
</ComboBox>
<!-- Windows -->
<CheckBox x:Name="WindowsCheckBox" Grid.Row="1" VerticalAlignment="Center" Checked="EvaluateButtonEnabledState" Unchecked="EvaluateButtonEnabledState" />
<ComboBox x:Name="WindowsFx" Grid.Row="1" IsEnabled="{Binding IsChecked, ElementName=WindowsCheckBox, Mode=OneWay}">
<ComboBoxItem Tag="win8">Windows 8</ComboBoxItem>
<ComboBoxItem Tag="win81">Windows 8.1</ComboBoxItem>
</ComboBox>
<!-- Windows Phone Silverlight -->
<CheckBox x:Name="WPSLCheckBox" Grid.Row="2" VerticalAlignment="Center" Checked="EvaluateButtonEnabledState" Unchecked="EvaluateButtonEnabledState" />
<ComboBox x:Name="WPSLFx" Grid.Row="2" IsEnabled="{Binding IsChecked, ElementName=WPSLCheckBox, Mode=OneWay}">
<ComboBoxItem Tag="wp7">Windows Phone Silverlight 7 and higher</ComboBoxItem>
<ComboBoxItem Tag="wp71">Windows Phone Silverlight 7.5 and higher</ComboBoxItem>
<ComboBoxItem Tag="wp8">Windows Phone Silverlight 8 and higher</ComboBoxItem>
<ComboBoxItem Tag="wp81">Windows Phone Silverlight 8.1 and higher</ComboBoxItem>
</ComboBox>
<!-- Silverlight -->
<CheckBox x:Name="SilverlightCheckBox" Grid.Row="3" VerticalAlignment="Center" Checked="EvaluateButtonEnabledState" Unchecked="EvaluateButtonEnabledState" />
<ComboBox x:Name="SilverlightFx" Grid.Row="3" IsEnabled="{Binding IsChecked, ElementName=SilverlightCheckBox, Mode=OneWay}">
<ComboBoxItem Tag="sl4">Silverlight 4 and higher</ComboBoxItem>
<ComboBoxItem Tag="sl5">Silverlight 5</ComboBoxItem>
</ComboBox>
<!-- Windows Phone -->
<CheckBox x:Name="WindowsPhoneCheckBox" Grid.Row="4" Grid.ColumnSpan="2" VerticalAlignment="Center" Content="Windows Phone 8.1" Margin="0,2,0,0" Checked="EvaluateButtonEnabledState" Unchecked="EvaluateButtonEnabledState" />
</Grid>
</Border>
</DockPanel>
</self:StandardDialog>