免费教程_免费网赚教程_破解版软件-寂涯网络学习基地

当前位置: 主页 > 系统综合 > 各类编程 > 浅谈WPF中的命令(6)

浅谈WPF中的命令(6)

时间:2012-01-22 19:46来源:未知 整理:寂涯网络 点击:

  1.  <Window x:Class="Cmd_Smpl2.Window1"  
  2.     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"  
  3.     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  
  4.     xmlns:c="clr-namespace:Cmd_Smpl2"  
  5.     Title="Window1" Height="300" Width="300">  
  6.     <Grid>  
  7.         <StackPanel Orientation="Vertical">  
  8.             <StackPanel.CommandBindings>  
  9.                 <CommandBinding Command="{x:Static c:Window1.MyCmdRoute}"  
  10.                                 CanExecute="Cmd_CanExecuteHandler"  
  11.                                 Executed="Cmd_ExecutedHandler"/>  
  12.             </StackPanel.CommandBindings>  
  13.             <Button x:Name="btnTest1" Width="100" Height="25"  
  14.                     Content="执行命令1"  

本页地址 http://www.jybase.net/biancheng/20120122758.html

百度搜索更多

谷歌搜索更多

顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------

评价:
昵称: 验证码:点击我更换图片
推荐内容
赞助商
赞助商


关于本站免责声明视频更新google百度地图视频地图RRS订阅

如有什么问题请在本站留言,或发邮件到 hxt167#foxmail.com