<Window x:Class="DemoExam.windows.WindowChangePriority"
        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:local="clr-namespace:DemoExam.windows"
        mc:Ignorable="d"
        Title="Изменение приоритета" Height="170" Width="350"
        Closed="Window_Closed"
        >
    <Grid>
        <StackPanel Orientation="Vertical" VerticalAlignment="Center" HorizontalAlignment="Center">
            <StackPanel Orientation="Horizontal">
                <TextBlock Margin="0,0,50,0">Приоритет</TextBlock>
                <TextBox Width="150" Text="{Binding GetMaxPriority}"></TextBox>
            </StackPanel>
            <Button Margin="0,50,0,0" Click="Button_Click">Сохранить</Button>
        </StackPanel>
    </Grid>
</Window>
