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>

  • 相关阅读:
    UVALive
    UVALive
    UVA
    UVALive
    BZOJ3597 SCOI2014方伯伯运椰子(分数规划+spfa)
    BZOJ3456 城市规划(多项式求逆)
    BZOJ4182 Shopping(点分治+树形dp)
    BZOJ4383 Pustynia(线段树+拓扑排序)
    BZOJ4445 SCOI2015小凸想跑步(半平面交)
    BZOJ5311 贞鱼(动态规划+wqs二分+决策单调性)
  • 原文地址:https://www.cnblogs.com/mrfangzheng/p/1335643.html
Copyright © 2011-2022 走看看