<Window x:Class="Wpf_Meni.Komande"
        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:Wpf_Meni"
        mc:Ignorable="d"
        Title="Window2" Height="450" Width="800">
    <Window.CommandBindings>
        <CommandBinding Command="New" CanExecute="CommandBinding_CanExecute" Executed="CommandBinding_Executed" />
    </Window.CommandBindings>
    <DockPanel>
        <Menu DockPanel.Dock="Top">
            <MenuItem Header="Opcije">
                <MenuItem Header="Resetuj" Command="New" />
                <Separator />
                <MenuItem Header="Izadji" Click="MenuItem_Click"/>
            </MenuItem>
            <MenuItem Header="Izmeni">
                <MenuItem Header="Iseci" Command="Cut" />
                <MenuItem Header="Kopiraj" Command="Copy" />
                <MenuItem Header="Nalepi" Command="Paste" />
            </MenuItem>
        </Menu>

        <TextBox AcceptsReturn="True" Name="txtEditor" />
    </DockPanel>
</Window>
