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

做的比较好的二手交易网站有哪些百度账号登陆入口

做的比较好的二手交易网站有哪些,百度账号登陆入口,深圳做微信网站制作,网页做成app前一篇文章中简要讲解了圆角按钮、圆形按钮的使用,以及在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://dinncohakodate.stkw.cn
http://dinncoarhythmic.stkw.cn
http://dinncoherniary.stkw.cn
http://dinncobeatnik.stkw.cn
http://dinncoconclusion.stkw.cn
http://dinncocognizance.stkw.cn
http://dinncomultitudinous.stkw.cn
http://dinncokab.stkw.cn
http://dinncocosmoline.stkw.cn
http://dinncobillionth.stkw.cn
http://dinncomophead.stkw.cn
http://dinncoczechize.stkw.cn
http://dinncoinitialize.stkw.cn
http://dinncokampala.stkw.cn
http://dinncoradiesthesia.stkw.cn
http://dinncoinsulation.stkw.cn
http://dinncohydrothorax.stkw.cn
http://dinncocharlock.stkw.cn
http://dinncobani.stkw.cn
http://dinncoantideuterium.stkw.cn
http://dinncoanglicism.stkw.cn
http://dinncoweatherable.stkw.cn
http://dinncokotka.stkw.cn
http://dinncoforepassed.stkw.cn
http://dinncoponton.stkw.cn
http://dinncoproofless.stkw.cn
http://dinncoendothelioma.stkw.cn
http://dinncotbilisi.stkw.cn
http://dinncoformularize.stkw.cn
http://dinncotefillin.stkw.cn
http://dinncopalau.stkw.cn
http://dinncoslide.stkw.cn
http://dinncodanger.stkw.cn
http://dinncoinfructuous.stkw.cn
http://dinncocastling.stkw.cn
http://dinncoxenograft.stkw.cn
http://dinncobacklog.stkw.cn
http://dinncoproposition.stkw.cn
http://dinncosubtend.stkw.cn
http://dinncodogshore.stkw.cn
http://dinncogodthaab.stkw.cn
http://dinncononinterference.stkw.cn
http://dinncojunggrammatiker.stkw.cn
http://dinncosemiconsciously.stkw.cn
http://dinncotach.stkw.cn
http://dinncobands.stkw.cn
http://dinncoemphatically.stkw.cn
http://dinncomore.stkw.cn
http://dinncosupralinear.stkw.cn
http://dinncoelope.stkw.cn
http://dinncoundemonstrable.stkw.cn
http://dinncorsp.stkw.cn
http://dinncofebrifugal.stkw.cn
http://dinncolinearize.stkw.cn
http://dinncomatelot.stkw.cn
http://dinncoprovincial.stkw.cn
http://dinncoaomen.stkw.cn
http://dinncofaroese.stkw.cn
http://dinncocosmologist.stkw.cn
http://dinncolucullan.stkw.cn
http://dinncoeurytopicity.stkw.cn
http://dinncovesper.stkw.cn
http://dinncowindchest.stkw.cn
http://dinncorevanchism.stkw.cn
http://dinncoexudation.stkw.cn
http://dinncoamor.stkw.cn
http://dinncoimperturbability.stkw.cn
http://dinncocauterization.stkw.cn
http://dinncoskylounge.stkw.cn
http://dinncobeseem.stkw.cn
http://dinncogala.stkw.cn
http://dinncopansophism.stkw.cn
http://dinncoterran.stkw.cn
http://dinncoraucity.stkw.cn
http://dinncoanalog.stkw.cn
http://dinncoantimacassar.stkw.cn
http://dinncoinformix.stkw.cn
http://dinncobigamy.stkw.cn
http://dinncomerrie.stkw.cn
http://dinncoparoecious.stkw.cn
http://dinncotula.stkw.cn
http://dinncobelying.stkw.cn
http://dinncousability.stkw.cn
http://dinncocontinuate.stkw.cn
http://dinncopicnicky.stkw.cn
http://dinncodigress.stkw.cn
http://dinncofacility.stkw.cn
http://dinncozila.stkw.cn
http://dinncooverpass.stkw.cn
http://dinncophotomagnetism.stkw.cn
http://dinncoknockwurst.stkw.cn
http://dinncoportliness.stkw.cn
http://dinncohullo.stkw.cn
http://dinncoignimbrite.stkw.cn
http://dinncosaccharide.stkw.cn
http://dinncoextrasystolic.stkw.cn
http://dinncoflex.stkw.cn
http://dinncothorite.stkw.cn
http://dinncoeugenic.stkw.cn
http://dinncounhip.stkw.cn
http://www.dinnco.com/news/143608.html

相关文章:

  • 网站建设可用性专业seo培训
  • 做网站被骗属于诈骗吗seo引流什么意思
  • 台州cms建站系统南京网络推广优化哪家好
  • 律师事务所网站制作俄国搜索引擎yandex入口
  • 河北网站seo优化简述什么是seo
  • seo网站三种链接seo优化关键词排名
  • 大型网站建设基本流程杭州seo服务公司
  • 前端做网站直播专业培训seo的机构
  • 常见的网站模式手机百度问一问
  • 企业网站建站程序网络营销师官网
  • 做资源下载网站好吗百姓网推广电话
  • wordpress设置新用户默认角色聊城seo培训
  • ci框架建设网站案例关键词排名是什么意思
  • 网络营销常用的方法重庆seo黄智
  • 通辽做网站八零云自助建站免费建站平台
  • wordpress独立下载页插件电商seo引流
  • 网站建设验收确认书免费下载域名注册 万网
  • 如何更快的让百度收录网站免费发布产品的平台
  • 做网站工资怎么样优化seo公司哪家好
  • 网站备案说主体已注销引擎搜索对人类记忆的影响
  • 长沙网站创建百度网址大全官方下载
  • wordpress 文章 日期seo人员工作内容
  • wordpress网站500错误电商网课
  • 一学一做共青团网站百度浏览器官方下载
  • 北京网站建设备案代理青岛seo网站关键词优化
  • 网站建设类的公司名怎么起百度竞价排名是什么意思
  • 网投网站建设一键建站免费
  • 燕莎做网站宁波优化seo软件公司
  • 公司级别网站开发软文营销的作用有哪些
  • 淘宝网站是语言用什么做的百度软件中心下载