83 lines
2.5 KiB
XML
83 lines
2.5 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
|
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"
|
|
mc:Ignorable="d" d:DesignWidth="500" d:DesignHeight="450"
|
|
MinWidth="500" MinHeight="450"
|
|
Width="500" Height="450"
|
|
x:Class="LibationAvalonia.Dialogs.EditReplacementChars"
|
|
Title="Illegal Character Replacement">
|
|
|
|
<Grid
|
|
RowDefinitions="*,Auto"
|
|
ColumnDefinitions="*,Auto">
|
|
|
|
<DataGrid
|
|
Grid.Row="0"
|
|
Grid.ColumnSpan="2"
|
|
GridLinesVisibility="All"
|
|
Margin="5"
|
|
Name="replacementGrid"
|
|
AutoGenerateColumns="False"
|
|
IsReadOnly="False"
|
|
BeginningEdit="ReplacementGrid_BeginningEdit"
|
|
CellEditEnding="ReplacementGrid_CellEditEnding"
|
|
KeyDown="ReplacementGrid_KeyDown"
|
|
ItemsSource="{Binding replacements}">
|
|
|
|
<DataGrid.Columns>
|
|
|
|
|
|
<DataGridTemplateColumn Header="Char to
Replace">
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<TextBox IsReadOnly="{Binding Mandatory}" Text="{Binding CharacterToReplace, Mode=TwoWay}" />
|
|
</DataTemplate>
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
</DataGridTemplateColumn>
|
|
|
|
<DataGridTemplateColumn Header="Replacement
Text">
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<TextBox Text="{Binding ReplacementText, Mode=TwoWay}" />
|
|
</DataTemplate>
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
</DataGridTemplateColumn>
|
|
|
|
<DataGridTemplateColumn Width="*" Header="Description">
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<TextBox IsReadOnly="{Binding Mandatory}" Text="{Binding Description, Mode=TwoWay}" />
|
|
</DataTemplate>
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
</DataGridTemplateColumn>
|
|
|
|
</DataGrid.Columns>
|
|
</DataGrid>
|
|
|
|
<StackPanel
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Margin="5"
|
|
Orientation="Horizontal">
|
|
|
|
<Button Margin="0,0,10,0" Command="{Binding Defaults}" Content="Defaults" />
|
|
<Button Margin="0,0,10,0" Command="{Binding LoFiDefaults}" Content="LoFi Defaults" />
|
|
<Button Command="{Binding Barebones}" Content="Barebones" />
|
|
</StackPanel>
|
|
|
|
<StackPanel
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
Margin="5"
|
|
Orientation="Horizontal">
|
|
|
|
<Button Margin="0,0,10,0" Command="{Binding Close}" Content="Cancel" />
|
|
<Button Padding="20,5,20,6" Command="{Binding SaveAndClose}" Content="Save" />
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
|
|
</Window>
|