首页 > Windows开发 > 详细

WPF(x:Null 使用)

时间:2016-08-22 23:19:36      阅读:825      评论:0      收藏:0      [点我收藏+]
  1. <Window x:Class="TestOfNull.MainWindow"  
  2.         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"  
  3.         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  
  4.         Title="x:Null Sample" Height="350" Width="525">  
  5.     <Window.Resources>  
  6.         <Style x:Key="{x:Type Button}" TargetType="{x:Type Button}" >  
  7.             <Setter Property="Width" Value="60" />  
  8.             <Setter Property="Height" Value="36" />  
  9.             <Setter Property="Margin" Value="5" />  
  10.         </Style>  
  11.     </Window.Resources>  
  12.       
  13.     <StackPanel >  
  14.         <Button Content="OK" />  
  15.         <Button Content="OK" />  
  16.         <Button Content="OK" />  
  17.         <Button Content="OK" Style="{x:Null}" />  
  18.     </StackPanel>  
  19. </Window>  

WPF(x:Null 使用)

原文:http://www.cnblogs.com/lizhenlin/p/5797224.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!