|
| 1 | +<UserControl xmlns="https://github.com/avaloniaui" |
| 2 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 3 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 4 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 5 | + mc:Ignorable="d" d:DesignWidth="680" d:DesignHeight="450" |
| 6 | + x:Class="ZXBasicStudio.DocumentEditors.ZXRamDisk.Controls.ZXRamDiskEditor"> |
| 7 | + <Grid RowDefinitions="90,*,40"> |
| 8 | + <Border Margin="5,14,5,5" BorderBrush="White" BorderThickness="1" CornerRadius="5"> |
| 9 | + <Grid RowDefinitions="5,*" ColumnDefinitions="96,*,64,160"> |
| 10 | + <TextBlock Grid.Row="1" Classes="dialog" VerticalAlignment="Center" HorizontalAlignment="Right">Disk name:</TextBlock> |
| 11 | + <TextBox Grid.Row="1" Grid.Column="1" Classes="dialog" HorizontalAlignment="Stretch" MaxWidth="Infinity" Margin="5,5,15,5" Name="txtDiskName"></TextBox> |
| 12 | + <TextBlock Grid.Row="1" Grid.Column="2" Classes="dialog" VerticalAlignment="Center" HorizontalAlignment="Right">Target bank:</TextBlock> |
| 13 | + <ComboBox Classes="dialog" Grid.Row="1" Grid.Column="3" Name="cbBank" Width="110" SelectedIndex="0" FontSize="10"> |
| 14 | + <ComboBoxItem>Bank 4</ComboBoxItem> |
| 15 | + <ComboBoxItem>Bank 6</ComboBoxItem> |
| 16 | + <ComboBoxItem>Bank 1</ComboBoxItem> |
| 17 | + <ComboBoxItem>Bank 3</ComboBoxItem> |
| 18 | + <ComboBoxItem>Bank 7</ComboBoxItem> |
| 19 | + </ComboBox> |
| 20 | + </Grid> |
| 21 | + </Border> |
| 22 | + <Border Grid.Row="1" Margin="5,14,5,5" BorderBrush="White" BorderThickness="1" CornerRadius="5"> |
| 23 | + <Grid RowDefinitions="5,24,*" ColumnDefinitions="320,*"> |
| 24 | + <TextBlock Grid.Row="1" Classes="dialog" HorizontalAlignment="Center" VerticalAlignment="Center">Add file</TextBlock> |
| 25 | + <TextBlock Grid.Row="1" Grid.Column="1" Classes="dialog" HorizontalAlignment="Center" VerticalAlignment="Center">File list</TextBlock> |
| 26 | + <ScrollViewer Grid.Row="2" VerticalScrollBarVisibility="Auto" Margin="10"> |
| 27 | + <Grid ColumnDefinitions="56,*,32" RowDefinitions="Auto,Auto,Auto,Auto,16,*"> |
| 28 | + <TextBlock Classes="dialog" HorizontalAlignment="Right" VerticalAlignment="Center">File:</TextBlock> |
| 29 | + <TextBox Grid.Column="1" Classes="dialog" HorizontalAlignment="Stretch" MaxWidth="Infinity" Margin="5,5,0,5" Name="txtFilePath"></TextBox> |
| 30 | + <Button Grid.Column="2" Classes="dialog" Margin="10,5,10,5" Width="32" Height="32" Name="btnSelectFile">...</Button> |
| 31 | + <TextBlock Grid.Row="1" Classes="dialog" HorizontalAlignment="Right" VerticalAlignment="Center">Name:</TextBlock> |
| 32 | + <TextBox Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" Classes="dialog" HorizontalAlignment="Stretch" MaxWidth="Infinity" Margin="5,5,10,5" MaxLength="10" Name="txtFileName"></TextBox> |
| 33 | + |
| 34 | + <Button Grid.Row="5" Grid.ColumnSpan="3" Classes="dialog" Margin="10,5,10,5" Height="32" Name="btnAddFile" VerticalAlignment="Bottom">Add file</Button> |
| 35 | + </Grid> |
| 36 | + </ScrollViewer> |
| 37 | + <Grid Grid.Row="2" Grid.Column="1" ColumnDefinitions="*,*,*,48" RowDefinitions="24,28,*,48"> |
| 38 | + <Border Background="#202020" BorderBrush="White" BorderThickness="1"> |
| 39 | + <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center">File name</TextBlock> |
| 40 | + </Border> |
| 41 | + <Border Grid.Column="1" Background="#202020" BorderBrush="White" BorderThickness="1"> |
| 42 | + <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center">Path</TextBlock> |
| 43 | + </Border> |
| 44 | + <Border Grid.Column="2" Background="#202020" BorderBrush="White" BorderThickness="1"> |
| 45 | + <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center">Size</TextBlock> |
| 46 | + </Border> |
| 47 | + <ListBox Grid.Row="1" Grid.RowSpan="3" Grid.ColumnSpan="3" Margin="0,0,0,15" ItemsSource="{Binding Files}" Name="lstFiles"> |
| 48 | + <ListBox.ItemTemplate> |
| 49 | + <DataTemplate> |
| 50 | + <Grid ColumnDefinitions="*,*,*"> |
| 51 | + <TextBlock HorizontalAlignment="Left" Classes="dialog" TextTrimming="CharacterEllipsis" Text="{Binding Name}">asas</TextBlock> |
| 52 | + <TextBlock Grid.Column="1" HorizontalAlignment="Left" Classes="dialog" TextTrimming="CharacterEllipsis" Text="{Binding SourcePath}"></TextBlock> |
| 53 | + <TextBlock Grid.Column="2" HorizontalAlignment="Left" Classes="dialog" TextTrimming="CharacterEllipsis" Text="{Binding Size}"></TextBlock> |
| 54 | + </Grid> |
| 55 | + </DataTemplate> |
| 56 | + </ListBox.ItemTemplate> |
| 57 | + </ListBox> |
| 58 | + <Button Classes="dialog" Grid.Column="3" Grid.Row="1" Grid.RowSpan="3" VerticalAlignment="Stretch" Margin="10,5,10,15" Name="btnRemoveFile"> |
| 59 | + <Svg Path="/Svg/White/minus-solid.svg"></Svg> |
| 60 | + </Button> |
| 61 | + </Grid> |
| 62 | + </Grid> |
| 63 | + </Border> |
| 64 | + <TextBlock Grid.Row="1" Margin="15,0,0,0" Padding="5" Background="#202020" HorizontalAlignment="Left" VerticalAlignment="Top">Files</TextBlock> |
| 65 | + <Grid ColumnDefinitions="*,*" Grid.Row="2"> |
| 66 | + <Button Classes="dialog" Name="btnSave">Save changes</Button> |
| 67 | + <Button Classes="dialog" Grid.Column="1" Name="btnDiscard">Discard changes</Button> |
| 68 | + </Grid> |
| 69 | + </Grid> |
| 70 | +</UserControl> |
0 commit comments