csharp System.Windows.FigureLength类(方法)实例源码

下面列出了csharp System.Windows.FigureLength 类(方法)源码代码实例,从而了解它的用法。

作者:.NET开发    项目:System.Window   
//引入命名空间
using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;

namespace SDKSample
{
    public partial class FigureLengthExample : Page
    {

        void OnMouseDownDecreaseWidth(object sender, MouseButtonEventArgs args)
        {
            FigureLength myFigureLength = myFigure.Width;
            double widthValue = myFigureLength.Value;
            if (widthValue > 0)
            {
                myFigure.Width = new FigureLength((widthValue - 10), FigureUnitType.Pixel);
            }
        }
    }
}


问题


面经


文章

微信
公众号

扫码关注公众号