zoukankan      html  css  js  c++  java
  • wpf学习笔记DockPanel

          DockPanel为容器控件.主要了解其Dock属性和LastChildFill属性的使用

    下面以代码示例

    1.
    <DockPanel LastChildFill="True">
        
    <Button DockPanel.Dock="Top">Top</Button>
        
    <Button DockPanel.Dock="Bottom">Bottom</Button>
        
    <Button DockPanel.Dock="Left">Left</Button>
        
    <Button DockPanel.Dock="Right">Right</Button>
        
    <Button>Fill</Button>
    </DockPanel>




    2.调整顺序后的变化

    <DockPanel LastChildFill="True">
        
    <Button DockPanel.Dock="Left">Left</Button>
        
    <Button DockPanel.Dock="Right">Right</Button>
        
    <Button DockPanel.Dock="Top">Top</Button>
        
    <Button DockPanel.Dock="Bottom">Bottom</Button>
        
    <Button>Fill</Button>
    </DockPanel>



    3.当LastChildFill属性为Flase时的变化

      <DockPanel LastChildFill="False">
        
    <Button DockPanel.Dock="Left">Left</Button>
        
    <Button DockPanel.Dock="Right">Right</Button>
        
    <Button DockPanel.Dock="Top">Top</Button>
        
    <Button DockPanel.Dock="Bottom">Bottom</Button>
        
    <Button>Fill</Button>
      
    </DockPanel>



    结束
  • 相关阅读:
    禅道环境搭建
    java web自动化js控制滚动条
    Selenium启动项参数设置
    模糊定位
    eclipse设置UTF-8
    eclipse在线安装testNG
    3步在Linux虚拟机搭建Hadoop
    Linux系统下shell脚本中执行sql
    Linux操作系统中记录操作记录的地方
    awk命令看这一篇就够了
  • 原文地址:https://www.cnblogs.com/Clingingboy/p/663298.html
Copyright © 2011-2022 走看看