-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainWindow.xaml
55 lines (51 loc) · 3.25 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
<?xml version="1.0" encoding="utf-8"?>
<Window
x:Class="skininjector_v2.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:skininjector_v2"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Title="skininjector v2 Created by oasobi">
<Grid x:Name="DDFolder" AllowDrop="True" DragEnter="WindowDragEnter" Drop="WindowDrag">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition />
</Grid.RowDefinitions>
<Grid x:Name="TitleBar" Background="Transparent" Height="32">
<TextBlock Text="SkinInjector v2 Created by oasobi"
VerticalAlignment="Center" Margin="12,0,0,0"/>
</Grid>
<Grid Width="1000" Height="600" Grid.Row="1">
<StackPanel Orientation="Vertical" HorizontalAlignment="Center">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Width="800" Margin="0 0 0 6">
<TextBox PlaceholderText="スキンパックのパスを選択" x:Name="SelectedSkinPackPathBox" Width="550" TextChanged="PathChanged"/>
<Button Margin="5 0 5 0" Width="60" Click="SelectSkinPackFolder" x:Name="SelectSkinPackPathBtn">選択</Button>
<ComboBox x:Name="EditionChangedBox" Width="180" SelectionChanged="EditonChanged">
<ComboBoxItem x:Name="MinecraftEdtionBoxItem">Minecraft</ComboBoxItem>
<ComboBoxItem x:Name="MinecraftPreviewEdtionBoxItem">Minecraft Preview</ComboBoxItem>
</ComboBox>
</StackPanel>
<TextBlock Text="スキンデータの保存先のパス:" Margin="5 0 0 5"/>
<TextBox IsReadOnly="True" x:Name="ChangedPath" Width="800"></TextBox>
<Border/>
<StackPanel Width="800" Height="460" Margin="0 6 0 0" CornerRadius="4">
<ListView x:Name="PackNameListView" ItemsSource="{Binding PackNameList}" ScrollViewer.VerticalScrollMode="Enabled" Height="460" SelectionChanged="TargetPackChanged">
<ListView.ItemTemplate>
<DataTemplate x:DataType="local:PackInfo">
<TextBlock Text="{Binding PackName}"></TextBlock>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0 6 0 0">
<CheckBox IsChecked="True" x:Name="EncryptCheckBox" Margin="0 4 0 0" Width="120">暗号化を行う</CheckBox>
<Button Margin="0 0 4 0" Width="130" Click="DeleteSkinData" x:Name="DeleteSkinDataBtn">スキンデータを削除</Button>
<Button x:Name="InjectBtn" Click="Inject" Margin="0 0 4 0" Width="70">Inject</Button>
<ProgressBar x:Name="InjectProgress" Width="480" Height="20" Value="0"/>
</StackPanel>
</StackPanel>
</Grid>
</Grid>
</Window>