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>

  • 相关阅读:
    串口通讯编程一日通2(Overlapped IO模型)
    串口通讯编程一日通1(整合资料)
    Overlapped I/O模型深入分析(转)
    JVM7、8详解及优化
    vmstat工具
    spring 每个jar的作用
    Linux查看内存使用情况
    mysql datetime与timestamp精确到毫秒的问题
    eclipse UTF-8
    java.security
  • 原文地址:https://www.cnblogs.com/mrfangzheng/p/1335643.html
Copyright © 2011-2022 走看看