39 lines
1.7 KiB
XML
39 lines
1.7 KiB
XML
<UserControl 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"
|
|
xmlns:utils="using:AutoCat.Utils"
|
|
xmlns:vm="using:AutoCat.ViewModels"
|
|
xmlns:ext="using:AutoCat.Extensions"
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
x:Class="AutoCat.Windows.CheckNumberDialog"
|
|
x:DataType="vm:CheckNumberViewModel"
|
|
x:CompileBindings="true"
|
|
DataContext="{utils:ViewModelProvider vm:CheckNumberViewModel}">
|
|
|
|
<StackPanel Orientation="Vertical"
|
|
HorizontalAlignment="Stretch"
|
|
Spacing="32"
|
|
Margin="0 16">
|
|
|
|
<Grid ColumnDefinitions="* 16 Auto" HorizontalAlignment="Stretch">
|
|
|
|
<TextBox Grid.Column="0"
|
|
Name="PlateNumberBox"
|
|
Watermark="Plate Number"
|
|
Text="{Binding PlateNumber}"
|
|
IsEnabled="{ReflectionBinding !CheckCommand.IsExecuting^}"/>
|
|
<Button Grid.Column="2"
|
|
Content="Check"
|
|
Command="{Binding CheckCommand}"
|
|
CommandParameter="{Binding #PlateNumberBox.Text}"
|
|
IsEnabled="{ReflectionBinding !CheckCommand.IsExecuting^}"/>
|
|
|
|
</Grid>
|
|
|
|
<ProgressBar IsIndeterminate="True"
|
|
IsVisible="{ReflectionBinding CheckCommand.IsExecuting^}"/>
|
|
</StackPanel>
|
|
|
|
</UserControl>
|