This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 674
/
MainWindow.axaml
69 lines (67 loc) · 2.76 KB
/
MainWindow.axaml
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
<Window xmlns="https://github.com/avaloniaui"
xmlns:AvalonEdit="clr-namespace:AvaloniaEdit;assembly=AvaloniaEdit"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:vm="using:UniHacker.ViewModels"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" Width="520" Height="270" MaxWidth="520" MaxHeight="270" CanResize="False"
x:Class="UniHacker.Views.MainWindow"
Icon="/Assets/avalonia-logo.ico">
<Design.DataContext>
<vm:MainWindowViewModel/>
</Design.DataContext>
<Border BorderBrush="Gray" BorderThickness="2" Padding="10">
<Panel>
<TextBlock Text="{Binding SelectTips}" VerticalAlignment="Top"/>
<TextBox Name="FilePath"
VerticalAlignment="Top"
Margin="0,30,150,0"
IsReadOnly="True"/>
<Button Name="SelectBtn"
Content="{Binding Select}"
HorizontalAlignment="Stretch"
VerticalContentAlignment="Center"
HorizontalContentAlignment="Center"
Margin="350,-95,0,60"/>
<TextBlock Text="{Binding Version}" VerticalAlignment="Top" Margin="0,75"/>
<TextBox Name="Version"
VerticalAlignment="Top"
HorizontalAlignment="Left"
Margin="70,70,70,0"
Width="145"
IsReadOnly="True"/>
<TextBlock Text="{Binding Status}" VerticalAlignment="Top" Margin="170,75" HorizontalAlignment="Right" />
<TextBox Name="Status"
VerticalAlignment="Top"
HorizontalAlignment="Left"
Margin="350,70,0,0"
Width="145"
IsReadOnly="True"/>
<TextBox Name="RichText"
Text="{Binding Description}"
VerticalAlignment="Bottom"
Margin="0,-135,150,0"
TextWrapping="Wrap"
IsReadOnly="True"/>
<Button Name="PatchBtn"
Content="{Binding Patch_btn}"
VerticalAlignment="Stretch"
HorizontalAlignment="Stretch"
HorizontalContentAlignment="Center"
VerticalContentAlignment="Center"
FontSize="30"
Margin="350,110,0,30" />
<Button Name="RevertBtn"
Content="{Binding Revert_btn}"
VerticalAlignment="Stretch"
HorizontalAlignment="Stretch"
HorizontalContentAlignment="Center"
VerticalContentAlignment="Center"
FontSize="12"
Margin="350,220,0,0" />
<ProgressBar Name="ProgressBar"
VerticalAlignment="Bottom"
Margin="-10,10,-10,-10"/>
</Panel>
</Border>
</Window>