-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
93 lines (82 loc) · 4.32 KB
/
MainWindow.xaml
File metadata and controls
93 lines (82 loc) · 4.32 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
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
87
88
89
90
91
92
93
<Window x:Class="MetadataEditor.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Metadata editor" Height="600" Width="1000"
WindowStartupLocation="CenterScreen"
Background="#FF2D2D30">
<Window.Resources>
<Style TargetType="Button">
<Setter Property="Background" Value="#FF3F3F46"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="BorderBrush" Value="#FF555555"/>
<Setter Property="Padding" Value="10,5"/>
<Setter Property="Margin" Value="5"/>
<Setter Property="MinWidth" Value="120"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="#FF555555"/>
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Opacity" Value="0.5"/>
</Trigger>
</Style.Triggers>
</Style>
<Style TargetType="TextBlock">
<Setter Property="Foreground" Value="White"/>
</Style>
<Style TargetType="TextBox">
<Setter Property="Background" Value="#FF252526"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="BorderBrush" Value="#FF555555"/>
<Setter Property="Padding" Value="5"/>
</Style>
</Window.Resources>
<DockPanel>
<StatusBar DockPanel.Dock="Bottom" Background="#FF333337" Height="24">
<StatusBarItem HorizontalAlignment="Right">
<TextBlock Text="made by fleim" Foreground="#FFAAAAAA" Margin="0,0,10,0"/>
</StatusBarItem>
</StatusBar>
<Grid Margin="10">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Row="0" Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Left" Margin="5">
<Button Content="Открыть файл" Click="OpenFileButton_Click"/>
<Button Content="Вставить" Click="PasteButton_Click"/>
</StackPanel>
<StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Right" Margin="5">
<Button Content="Копировать" Click="CopyButton_Click"/>
<Button Content="Удалить метаданные и сохранить" Click="DeleteButton_Click" Width="193"/>
<Button Content="Очистить" Click="ClearButton_Click"/>
</StackPanel>
<Grid Grid.Row="1" Grid.ColumnSpan="2" Margin="5,10,5,5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<ScrollViewer Grid.Column="0" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" Margin="0,0,5,0">
<TextBox x:Name="MetadataTextBox" IsReadOnly="True" TextWrapping="Wrap" />
</ScrollViewer>
<Border Grid.Column="1" BorderBrush="#FF555555" BorderThickness="1" Background="#FF252526">
<Image x:Name="ImagePreview" Stretch="Uniform" Margin="5"/>
</Border>
</Grid>
</Grid>
</DockPanel>
</Window>