<Window x:Class="WpfApp_Binding.Binding"
        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:WpfApp_Binding"
        mc:Ignorable="d"
        Title="Binding" Height="150" Width="300">
    <StackPanel Margin="15">
        <WrapPanel>
            <TextBlock Text="Naslov:  " />
            <TextBox Name="txtNaslov" Text="{Binding Title, UpdateSourceTrigger=Default}" Width="150" />
            <!--TextBox Name="txtNaslov" Text="{Binding Title, UpdateSourceTrigger=Explicit}" Width="150" /-->
        </WrapPanel>
        <Button Name="btnPromeni" Click="btnPromeni_Click" Margin="0 10" Padding="5,0">Promeni naslov</Button>
        <WrapPanel Margin="0,10,0,0">
            <TextBlock Text="Dimenzije prozora: " />
            <TextBox Text="{Binding Width, UpdateSourceTrigger=LostFocus}" Width="50" />
            <TextBlock Text=" x " />
            <TextBox Text="{Binding Height, UpdateSourceTrigger=PropertyChanged}" Width="50" />
        </WrapPanel>
    </StackPanel>
</Window>
