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

          

    1.
    <Canvas Width="18" Height="18" VerticalAlignment="Center">
        
    <Ellipse Canvas.Left="1" Canvas.Top="1" Width="16" Height="16"
                 Fill
    ="Yellow" Stroke="Black" />
        
    <Ellipse Canvas.Left="4.5" Canvas.Top="5" Width="2.5" Height="3"
                             Fill
    ="Black" />
        
    <Ellipse Canvas.Left="11" Canvas.Top="5" Width="2.5" Height="3"
                             Fill
    ="Black" />
        
    <Path Data="M 5,10 A 3,3 90 0 0 13,10" Stroke="Black" />
      
    </Canvas>



    2.
      <Viewbox>
        
    <Canvas Width="18" Height="18" VerticalAlignment="Center">
          
    <Ellipse Canvas.Left="1" Canvas.Top="1" Width="16" Height="16"
                   Fill
    ="Yellow" Stroke="Black" />
          
    <Ellipse Canvas.Left="4.5" Canvas.Top="5" Width="2.5" Height="3"
                               Fill
    ="Black" />
          
    <Ellipse Canvas.Left="11" Canvas.Top="5" Width="2.5" Height="3"
                               Fill
    ="Black" />
          
    <Path Data="M 5,10 A 3,3 90 0 0 13,10" Stroke="Black" />
        
    </Canvas>
        
      
    </Viewbox>




    3.Stretch属性

    <Viewbox Width="100" Stretch="Fill">
        
    <Canvas Width="18" Height="18" VerticalAlignment="Center">
          
    <Ellipse Canvas.Left="1" Canvas.Top="1" Width="16" Height="16"
                   Fill
    ="Yellow" Stroke="Black" />
          
    <Ellipse Canvas.Left="4.5" Canvas.Top="5" Width="2.5" Height="3"
                               Fill
    ="Black" />
          
    <Ellipse Canvas.Left="11" Canvas.Top="5" Width="2.5" Height="3"
                               Fill
    ="Black" />
          
    <Path Data="M 5,10 A 3,3 90 0 0 13,10" Stroke="Black" />
        
    </Canvas>
        
      
    </Viewbox>



     Stretch="UniformToFill"

  • 相关阅读:
    MySQL 一致性读 深入研究
    Operating System Error Codes
    5分钟了解MySQL5.7的Online DDL雷区
    pt-osc原理、限制、及与原生online-ddl比较
    学习笔记:Rick's RoTs -- Rules of Thumb for MySQL
    学习笔记:The Best of MySQL Forum
    学习笔记:Analyze MySQL Performance及慢日志的开启
    MySQL: Building the best INDEX for a given SELECT
    学习笔记:ALTERing a Huge MySQL Table
    Google common_schema 2.2 documentation
  • 原文地址:https://www.cnblogs.com/Clingingboy/p/663556.html
Copyright © 2011-2022 走看看