-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMainWindow.xaml
58 lines (54 loc) · 2.83 KB
/
MainWindow.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
<Window x:Class="VRCSaveHelper.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:VRCSaveHelper"
mc:Ignorable="d"
Title="VRCSaveHelper" Height="450" Width="800"
Loaded="Window_Loaded" Unloaded="Window_Unloaded">
<Grid Margin="8">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="8"/>
<RowDefinition Height="*"/>
<RowDefinition Height="8"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="8"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="4"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<ComboBox Grid.Row="0"
x:Name="WorldsComboBox"
ItemsSource="{Binding Worlds, Mode=OneWay}"
DisplayMemberPath="DisplayName"
SelectedItem="{Binding SelectedWorld}">
</ComboBox>
<ListView Grid.Row="2"
x:Name="HistoryListView"
ItemsSource="{Binding SelectedWorld.History, Mode=OneWay}"
SelectedItem="{Binding SelectedHistory}">
<ListView.View>
<GridView>
<GridViewColumn Header="Timestamp" Width="150" DisplayMemberBinding="{Binding DisplayTimestamp}"></GridViewColumn>
<GridViewColumn Header="Data" Width="600" DisplayMemberBinding="{Binding DisplayData}"></GridViewColumn>
</GridView>
</ListView.View>
</ListView>
<Grid Grid.Row="4">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="8"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="8"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Button Grid.Column="0" x:Name="ImportButton" Click="ImportButton_Click">Import from Clipboard</Button>
<Button Grid.Column="2" x:Name="CopyButton" Click="CopyButton_Click">Copy to Clipboard</Button>
<Button Grid.Column="4" x:Name="RemoveButton" Click="RemoveButton_Click">Remove Selected Data</Button>
</Grid>
<CheckBox Grid.Row="6" x:Name="AutoLoadCheckBox" IsChecked="{Binding SelectedWorld.AutoLoad}">Copy the latest data when you enter this world</CheckBox>
<CheckBox Grid.Row="8" x:Name="AutoSaveCheckBox" IsChecked="{Binding SelectedWorld.AutoSave}">Save the copied data when the clipboard is modified by this world</CheckBox>
</Grid>
</Window>