对WPF的入门记录总结:Toolbar 工具栏菜单和命令
发布时间
阅读量:
阅读量
工具栏菜单与先前的menu菜单存在相似性,但一般嵌入于工具栏托盘控件之中。此外,工具栏托盘具备处理如定位及尺寸调节等类似功能的能力。
<Window x:Class="菜单.MainWindow"
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:菜单"
mc:Ignorable="d"
Title="MainWindow" Height="200" Width="200">
<Window.CommandBindings>
<CommandBinding Command="New" CanExecute="CommonComma
全部评论 (0)
还没有任何评论哟~
