<Window x:Class="Demo1.View.ReaderEditNameView" x:Name="EditReaderNameWindow"
        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:viewModel="clr-namespace:Demo1.ViewModel"
        mc:Ignorable="d"
        Title="Rename Readername"
        Icon="/DemoLib;Component/Ressource/Logo.ico"
        ResizeMode="NoResize"
        SizeToContent="WidthAndHeight"
        WindowStartupLocation="CenterOwner">
    <Window.DataContext>
        <viewModel:ReaderEditNameViewModel />
    </Window.DataContext>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid Grid.Row="0" Background="#FFFFCC00" Height="10" />
        <StackPanel Grid.Row="1" Margin="10">
            <TextBlock Text="Readername:"></TextBlock>
            <TextBox Width="200" Text="{Binding ReaderName, UpdateSourceTrigger=PropertyChanged}" />
        </StackPanel>
        <StackPanel Grid.Row="2" Margin="5" Orientation="Horizontal" HorizontalAlignment="Right">
            <Button Content="Save"
                    Width="80"
                    Margin="5,0"
                    Command="{Binding SaveCommand}"
                    CommandParameter="{Binding ElementName=EditReaderNameWindow}"
                    IsDefault="True" />
            <Button Content="Close"
                    Width="80"
                    Command="{Binding CloseCommand}"
                    CommandParameter="{Binding ElementName=EditReaderNameWindow}"
                    IsCancel="True" />
        </StackPanel>
    </Grid>
</Window>