Amogulator/MainWindow.xaml
2023-03-14 12:53:56 +01:00

55 lines
1.8 KiB
XML

<Window x:Class="Amogulator.MainWindow"
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:vm="clr-namespace:Amogulator"
mc:Ignorable="d"
Background="Black"
Title="MainWindow" Height="450" Width="800">
<Window.Resources>
<vm:AmogulatorVM x:Key="ViewModel" />
</Window.Resources>
<Grid DataContext="{StaticResource ViewModel}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="4*" />
<RowDefinition Height="2*" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Label
Grid.Column="0"
Grid.Row="0"
Content="{Binding Output}"
Margin="5"
FontSize="16"
FontFamily="Consolas monospace"
Background="Black"
Foreground="White"
ScrollViewer.CanContentScroll="True"
/>
<TextBox
Grid.Column="0"
Grid.Row="1"
Text="{Binding Input}"
Margin="5"
FontSize="16"
FontFamily="Consolas monospace"
Background="Black"
Foreground="White"
TextWrapping="Wrap"
AcceptsReturn="True"
/>
<Button
Grid.Column="0"
Grid.Row="2"
Grid.ColumnSpan="1"
Command="{Binding runCommand}"
Content="Test"
Margin="5"
/>
</Grid>
</Window>