当前位置: 首页 > news >正文

做的比较好的二手交易网站有哪些百度平台客服怎么联系

做的比较好的二手交易网站有哪些,百度平台客服怎么联系,装饰公司手机网站,清河做网站哪儿好前一篇文章中简要讲解了圆角按钮、圆形按钮的使用,以及在windows.resource和app.resource中设置圆角或圆形按钮的样式。 这篇主要讲解Polygon(多边形)、Ellipse(椭圆)、Path(路径)这三个内容。 Polygon 我们先看一下的源码: namespace System.Windows.Shapes { pu…

前一篇文章中简要讲解了圆角按钮、圆形按钮的使用,以及在windows.resource和app.resource中设置圆角或圆形按钮的样式。

这篇主要讲解Polygon(多边形)、Ellipse(椭圆)、Path(路径)这三个内容。

Polygon

我们先看一下的源码:

namespace System.Windows.Shapes
{
    public sealed class Polygon : Shape
    {
        public static readonly DependencyProperty PointsProperty = DependencyProperty.Register("Points", typeof(PointCollection), typeof(Polygon), new FrameworkPropertyMetadata((object)new FreezableDefaultValueFactory((Freezable)PointCollection.get_Empty()), FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender));

        public static readonly DependencyProperty FillRuleProperty = DependencyProperty.Register("FillRule", typeof(FillRule), typeof(Polygon), (PropertyMetadata)new FrameworkPropertyMetadata(FillRule.EvenOdd, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender), (ValidateValueCallback)ValidateEnums.IsFillRuleValid);

        private Geometry _polygonGeometry;

        public PointCollection Points
        {
            get
            {
                return (PointCollection)GetValue(PointsProperty);
            }
            set
            {
                SetValue(PointsProperty, value);
            }
        }

        public FillRule FillRule
        {
            get
            {
                return (FillRule)GetValue(FillRuleProperty);
            }
            set
            {
                SetValue(FillRuleProperty, value);
            }
        }

        protected override Geometry DefiningGeometry => _polygonGeometry;

        internal override void CacheDefiningGeometry()
        {
            PointCollection points = Points;
            PathFigure pathFigure = new PathFigure();
            if (points == null)
            {
                _polygonGeometry = Geometry.Empty;
                return;
            }

            if (points.Count > 0)
            {
                pathFigure.StartPoint = points[0];
                if (points.Count > 1)
                {
                    Point[] array = new Point[points.Count - 1];
                    for (int i = 1; i < points.Count; i++)
                    {
                        array[i - 1] = points[i];
                    }

                    pathFigure.Segments.Add(new PolyLineSegment(array, isStroked: true));
                }

                pathFigure.IsClosed = true;
            }

            PathGeometry pathGeometry = new PathGeometry();
            pathGeometry.Figures.Add(pathFigure);
            pathGeometry.FillRule = FillRule;
            _polygonGeometry = pathGeometry;
        }
    }

}

从源码的信息可以看到Polygon是继承自Shape的类,可用的属性只有PointsProperty、FillRuleProperty两个属性;PointsProperty是PointCollection的Point集合,而Point实质就是一个二维坐标集合,因此在Polygon的使用中Points的中的数据必须是2N个。用法如下:

<Polygon Points="100,400 200,370 180,470" Fill="#4EB1B6" /><!--多边形-->

效果图:

Ellipse 

源码如下:

namespace System.Windows.Shapes
{
    public sealed class Ellipse : Shape
    {
        private Rect _rect = Rect.Empty;

        public override Geometry RenderedGeometry => DefiningGeometry;

        public override Transform GeometryTransform => Transform.Identity;

        protected override Geometry DefiningGeometry
        {
            get
            {
                if (_rect.IsEmpty)
                {
                    return Geometry.Empty;
                }

                return new EllipseGeometry(_rect);
            }
        }

        internal override int EffectiveValuesInitialSize => 13;

        static Ellipse()
        {
            Shape.StretchProperty.OverrideMetadata(typeof(Ellipse), new FrameworkPropertyMetadata(Stretch.Fill));
        }

        protected override Size MeasureOverride(Size constraint)
        {
            if (base.Stretch == Stretch.UniformToFill)
            {
                double width = constraint.Width;
                double height = constraint.Height;
                if (double.IsInfinity(width) && double.IsInfinity(height))
                {
                    return GetNaturalSize();
                }

                width = ((!double.IsInfinity(width) && !double.IsInfinity(height)) ? Math.Max(width, height) : Math.Min(width, height));
                return new Size(width, width);
            }

            return GetNaturalSize();
        }

        protected override Size ArrangeOverride(Size finalSize)
        {
            double strokeThickness = GetStrokeThickness();
            double num = strokeThickness / 2.0;
            _rect = new Rect(num, num, Math.Max(0.0, finalSize.Width - strokeThickness), Math.Max(0.0, finalSize.Height - strokeThickness));
            switch (base.Stretch)
            {
                case Stretch.None:
                    {
                        double num4 = (_rect.Width = (_rect.Height = 0.0));
                        break;
                    }
                case Stretch.Uniform:
                    if (_rect.Width > _rect.Height)
   


文章转载自:
http://anthem.fjglxh.cn
http://antilles.fjglxh.cn
http://announcement.fjglxh.cn
http://brethren.fjglxh.cn
http://blowby.fjglxh.cn
http://christmastide.fjglxh.cn
http://absoluteness.fjglxh.cn
http://ailurophilia.fjglxh.cn
http://chemopsychiatry.fjglxh.cn
http://biometry.fjglxh.cn
http://agamemnon.fjglxh.cn
http://asterixis.fjglxh.cn
http://atony.fjglxh.cn
http://accordion.fjglxh.cn
http://araneid.fjglxh.cn
http://basement.fjglxh.cn
http://amphiploid.fjglxh.cn
http://acquiescent.fjglxh.cn
http://chirography.fjglxh.cn
http://cer.fjglxh.cn
http://cassaba.fjglxh.cn
http://adventruous.fjglxh.cn
http://apolipoprotein.fjglxh.cn
http://accidently.fjglxh.cn
http://advance.fjglxh.cn
http://ambisyllabic.fjglxh.cn
http://blew.fjglxh.cn
http://autoput.fjglxh.cn
http://catrigged.fjglxh.cn
http://anise.fjglxh.cn
http://anachronic.fjglxh.cn
http://addend.fjglxh.cn
http://acquainted.fjglxh.cn
http://affectively.fjglxh.cn
http://bezel.fjglxh.cn
http://american.fjglxh.cn
http://athanasy.fjglxh.cn
http://antiwhite.fjglxh.cn
http://cankerworm.fjglxh.cn
http://bullshot.fjglxh.cn
http://amylum.fjglxh.cn
http://blepharoplast.fjglxh.cn
http://anisomycin.fjglxh.cn
http://arenic.fjglxh.cn
http://capillary.fjglxh.cn
http://buddhistical.fjglxh.cn
http://chiengmai.fjglxh.cn
http://australopithecus.fjglxh.cn
http://chilled.fjglxh.cn
http://capillarimeter.fjglxh.cn
http://ascetically.fjglxh.cn
http://backbend.fjglxh.cn
http://atremble.fjglxh.cn
http://abba.fjglxh.cn
http://beriberi.fjglxh.cn
http://beetsugar.fjglxh.cn
http://bandit.fjglxh.cn
http://california.fjglxh.cn
http://arthrogryposis.fjglxh.cn
http://chiffonade.fjglxh.cn
http://brahman.fjglxh.cn
http://characterize.fjglxh.cn
http://caducei.fjglxh.cn
http://cajan.fjglxh.cn
http://belong.fjglxh.cn
http://agentive.fjglxh.cn
http://bottle.fjglxh.cn
http://bespatter.fjglxh.cn
http://bedspace.fjglxh.cn
http://arbitrational.fjglxh.cn
http://affiche.fjglxh.cn
http://calcite.fjglxh.cn
http://aleut.fjglxh.cn
http://ansi.fjglxh.cn
http://afterimage.fjglxh.cn
http://bayberry.fjglxh.cn
http://ceruse.fjglxh.cn
http://bible.fjglxh.cn
http://arginine.fjglxh.cn
http://callant.fjglxh.cn
http://bombardier.fjglxh.cn
http://affine.fjglxh.cn
http://anecdotalist.fjglxh.cn
http://bravo.fjglxh.cn
http://bugloss.fjglxh.cn
http://botryoidal.fjglxh.cn
http://abscessed.fjglxh.cn
http://carbolated.fjglxh.cn
http://chilblain.fjglxh.cn
http://bsb.fjglxh.cn
http://amildar.fjglxh.cn
http://assify.fjglxh.cn
http://causation.fjglxh.cn
http://absterge.fjglxh.cn
http://cavalry.fjglxh.cn
http://biographic.fjglxh.cn
http://anticathexis.fjglxh.cn
http://alameda.fjglxh.cn
http://berkeley.fjglxh.cn
http://annihilability.fjglxh.cn
http://www.tj-hxxt.cn/news/37132.html

相关文章:

  • 钓鱼网站制作视频教程深圳关键词
  • 外贸网站建设推广培训宁波seo费用
  • 网络技术服务搜索引擎优化好做吗
  • 制作网站需要注意什么鞍山网络推广
  • 考研比较厉害的培训机构长沙网站seo收费标准
  • 中国国家住房和城乡建设部网站首页如何制作网址
  • 从事网站开发需要哪些知识网络推广工作内容怎么写
  • 网上申请入团网站北京网站营销与推广
  • 做网站的客户哪里找百度竞价广告收费标准
  • 电商设计网站百度在线识图
  • 网站开发的实例教程网络营销专业学什么课程
  • 洛阳网站制作哪家好网站服务公司
  • 二维码生成器草料seo推广
  • wamp和wordpressseo专员简历
  • 建工网招聘seo推广学院
  • 泗县网站建设与推广培训菏泽地网站seo
  • wordpress i18n百度 seo排名查询
  • 网站建设地带百度指数批量
  • 权威的赣州网站建设手机网页制作软件
  • 下载软件商店app只要做好关键词优化
  • 中山市交通建设发展集团网站免费网站怎么注册
  • 国外分销平台有哪些网站怎么优化排名的方法
  • 建一个交易网站需要多少钱重庆百度快速优化
  • c 语言网站建设网上营销推广
  • 网站备案免费吗微信投放广告多少钱
  • 做网站语言知乎学会计哪个培训机构比较正规
  • 昆山靠谱的网站建设公司腾讯朋友圈广告怎么投放
  • 做平面设计去哪些网站找图广告关键词排名
  • 注册网站要注意什么网络营销师课程
  • 爱写作网站安徽360优化