This repository has been archived by the owner on Jul 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSpriteLib.xaml
45 lines (40 loc) · 2.08 KB
/
SpriteLib.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
<Window x:Class="RustGuiEditor.SpriteLib"
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:RustGuiEditor"
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
mc:Ignorable="d"
Title="Добавить спрайт" Height="450" Width="800">
<Window.Resources>
<Stretch x:Key="previewStretch">Uniform</Stretch>
</Window.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="auto"></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition Height="auto"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<xctk:WatermarkTextBox x:Name="spriteSearch" Grid.Row="0" Grid.Column="0" Padding="5"
TextChanged="SpriteSearch_TextChanged" Watermark="Поиск..." />
<ListBox x:Name="spriteList" Grid.Column="0" Grid.Row="1" SelectionChanged="SpriteList_Selected">
</ListBox>
<WrapPanel Grid.Column="0" Grid.Row="2">
<Button Margin="2" Click="SaveButton">Выбрать</Button>
<Button Margin="2" Click="CancelButton">Отмена</Button>
<Button Margin="2" Click="CopyButton">Копировать путь</Button>
</WrapPanel>
<Border Grid.Column="1" Grid.RowSpan="2" Margin="5" Background="BlanchedAlmond">
<Image x:Name="spritePreview" Stretch="{DynamicResource previewStretch}"></Image>
</Border>
<WrapPanel Grid.Column="1" Grid.Row="2">
<Button Margin="2" Click="SetPreviewFill">Заполнить</Button>
<Button Margin="2" Click="SetPreviewNone">Реальный размер</Button>
</WrapPanel>
</Grid>
</Window>