■ CommandBinding 엘리먼트 사용하기

----------------------------------------------------------------------------------------------------

<Window

    x:Class="TestProject.MainWindow"

    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

    Title="도움말 테스트">

    <DockPanel>

        <Menu DockPanel.Dock="Top">

            <MenuItem Header="_Help">

                <MenuItem Header="_Help for Generic..." Command="Help" />

            </MenuItem>

        </Menu>

        <TextBox AcceptsReturn="True" />

    </DockPanel>

    <Window.CommandBindings>

        <CommandBinding Command="Help" Executed="Help_Executed" />

    </Window.CommandBindings>

</Window>

----------------------------------------------------------------------------------------------------

Posted by 사용자 icodebroker
TAG