zoukankan      html  css  js  c++  java
  • WPF Style的例子

    <Window.Resources>
        <Style TargetType="CheckBox">
          <Setter Property="Height" Value="20"/>
          <Setter Property="Width" Value="50"/>
          <EventSetter Event="Checked" Handler="Checked_Click"/>
          <Setter Property="VerticalAlignment" Value="Center"/> 
        </Style>    
    </Window.Resources>
     
    继承
    <Style BasedOn="{StaticResource {x:Type CheckBox}}"
               TargetType="CheckBox"
               x:Key="WiderCheckBox">
          <Setter Property="Width" Value="70"/>
    </Style>
     
    使用

    <CheckBox Style="{StaticResource WiderCheckBox}">Win</CheckBox>

  • 相关阅读:
    PhoneGap+jQuery Mobile+Rest 访问远程数据
    VS2013 安装phonegap
    Visual Studio 2015 和 Apache Cordova
    Jquery Mobile 百度地图 Demo
    《C++ primer》--第11章
    十个顶级的C语言资源助你成为优秀的程序员
    转载:ofstream和ifstream详细用法
    总结c++ primer中的notes
    vim使用
    转载:fstream和ifstream详细用法
  • 原文地址:https://www.cnblogs.com/mrfangzheng/p/1335643.html
Copyright © 2011-2022 走看看