translation files
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
Background="{Binding Theme.Background}"
|
||||
Loaded="Window_Loaded"
|
||||
Closed="Window_Closed"
|
||||
StateChanged="Window_StateChanged"
|
||||
>
|
||||
|
||||
<Window.Resources>
|
||||
@@ -136,6 +137,7 @@
|
||||
|
||||
<DataGridTextColumn
|
||||
Header="Command"
|
||||
x:Name="CommandColumn"
|
||||
Binding="{Binding Command}"
|
||||
MaxWidth="322"
|
||||
/>
|
||||
|
||||
@@ -168,4 +168,18 @@ public partial class InputWindow : Window
|
||||
|
||||
void DataGridCell_MouseLeftButtonUp(object sender, MouseButtonEventArgs e) =>
|
||||
ShowLearnWindow(_focusedBinding);
|
||||
|
||||
void Window_StateChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (WindowState == WindowState.Maximized)
|
||||
{
|
||||
CommandColumn.MaxWidth = 800;
|
||||
CommandColumn.Width = 800;
|
||||
}
|
||||
else
|
||||
{
|
||||
CommandColumn.MaxWidth = 322;
|
||||
CommandColumn.Width = 322;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user