-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathVersionSelector.xaml
More file actions
42 lines (40 loc) · 2.27 KB
/
VersionSelector.xaml
File metadata and controls
42 lines (40 loc) · 2.27 KB
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
<PluginUserControl 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" x:Class="RomM.VersionSelector.RomMVersionSelector"
xmlns:local="clr-namespace:RomM.VersionSelector"
DataContext="{Binding RelativeSource={RelativeSource Self}}"
Background="Transparent">
<DockPanel>
<StackPanel x:Name="SelectorPanel">
<Separator Margin="0,5,0,0" />
<ScrollViewer DockPanel.Dock="Top" Width="auto" Height="120" Margin="5,5,5,5" VerticalScrollBarVisibility="Visible" HorizontalScrollBarVisibility="Disabled">
<StackPanel x:Name="tStack">
<ItemsControl ItemsSource="{Binding RomVersions}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<RadioButton Margin="5,5,5,5" GroupName="Options" IsChecked="{Binding IsSelected, Mode=TwoWay}" Content="{Binding FileName, Mode=OneWay}"/>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</StackPanel>
</ScrollViewer>
<Grid Margin="5,5,5,10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="435"/>
<ColumnDefinition Width="75"/>
<ColumnDefinition Width="75"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="35"/>
</Grid.RowDefinitions>
<Button Name="Cancel" Click="Click_Cancel" Grid.Row="0" Grid.Column="1" Margin="5,0,0,0" Background="#808080">
<Label Content="Cancel" Grid.Row="0" Grid.Column="0"/>
</Button>
<Button Name="Install" Click="Click_Install" Grid.Row="0" Grid.Column="2" Margin="5,0,0,0" Background="#45a240">
<Label Content="Install" Grid.Row="0" Grid.Column="0"/>
</Button>
</Grid>
</StackPanel>
</DockPanel>
</PluginUserControl>