<?xml version="1.0" encoding="utf-8" ?>
<Data xmlns="">
<Operation Name="文件" Gesture="F">
<Operation Name="新建" Gesture="N">
<Operation Name="项目" Gesture="Control + P"/>
<Operation Name="网站" Gesture="Control + W"/>
<Operation Name="文档" Gesture="Control + D"/>
</Operation>
<Operation Name="保存" Gesture="S"/>
<Operation Name="打印" Gesture="P"/>
<Operation Name="退出" Gesture="X"/>
</Operation>
<Operation Name="编辑" Gesture="E">
<Operation Name="拷贝" Gesture="Control + C"/>
<Operation Name="剪切" Gesture="Control + X"/>
<Operation Name="粘贴" Gesture="Control + S"/>
</Operation>
</Data>
<Window x:Class="工具栏功能的样式.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Window.Resources>
<!--数据源-->
<XmlDataProvider x:Key="Ds" Source="Data.xml" XPath="Data/Operation"/>
<!--Operation模板-->
<HierarchicalDataTemplate DataType="Operation" ItemsSource="{Binding XPath=Operation}">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding XPath=@Name}" Margin="10,0"/>
<TextBlock Text="{Binding XPath=@Gesture}"/>
</StackPanel>
</HierarchicalDataTemplate>
</Window.Resources>
<StackPanel>
<Menu ItemsSource="{Binding Source={StaticResource Ds}}"></Menu>
</StackPanel>
</Window>

最新文章

  1. [Xilinx]Modelsim独立仿真Vivado生成的PLL核
  2. PHP的CURL方法curl_setopt()函数案例介绍(抓取网页,POST数据)
  3. fstream使用简介
  4. JDK 1.5 1.6 override区别
  5. [cb] Assetbundle打包(一)
  6. nice和taskset命令
  7. HDU 1217 Arbitrage (Floyd)
  8. python list去重的方法
  9. java.lang.OutOfMemory总结分析
  10. 30 个 Python 语言的特点技巧
  11. javascript中this、apply、call、bind的用法和区别
  12. HttpClient4的使用,模拟浏览器登陆新浪微博,发表微博和文字+图片微博
  13. 用Vue自己造个组件轮子,以及实践背后带来的思考
  14. ---————for循环打印爱心
  15. 脑残式网络编程入门(四):快速理解HTTP/2的服务器推送(Server Push)
  16. python +百度语音识别+图灵对话
  17. 2017-2018-2 20155314《网络对抗技术》Exp3 免杀原理与实践
  18. 【iCore4 双核心板_ARM】例程三:EXTI中断输入实验——读取ARM按键状态
  19. 【函数】SAS宏的特殊字符引用【转载】
  20. python编码(七)

热门文章

  1. Nginx 反向代理,流量转发到固定内网 IP 方法
  2. Oracle数据库查看执行计划
  3. angularJs中筛选功能-angular.filter-1
  4. 查询score中选学多门课程的同学中分数为非最高分成绩的记录。
  5. 【JS Note】字符串截取
  6. 零碎记录Hadoop平台各组件使用
  7. Android TintResources Leak
  8. phpmailer使用163邮件发送邮件例子
  9. 【SNMP】Linux系统下安装net-snmp
  10. [老老实实学WCF] 第九篇 消息通信模式(上) 请求应答与单向