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

做的比较好的二手交易网站有哪些百度云登陆首页

做的比较好的二手交易网站有哪些,百度云登陆首页,wordpress的框架,南京网站建设公司 雷仁网络前一篇文章中简要讲解了圆角按钮、圆形按钮的使用,以及在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://dinncoclassless.stkw.cn
http://dinncomonterrey.stkw.cn
http://dinncocloudless.stkw.cn
http://dinncocobble.stkw.cn
http://dinncoposturize.stkw.cn
http://dinncoapproachability.stkw.cn
http://dinncorighten.stkw.cn
http://dinncoclubroot.stkw.cn
http://dinncotreatise.stkw.cn
http://dinncocumulus.stkw.cn
http://dinncoscrupulosity.stkw.cn
http://dinncoglassify.stkw.cn
http://dinncocolumnist.stkw.cn
http://dinncoslicken.stkw.cn
http://dinncomilimetre.stkw.cn
http://dinncocontriver.stkw.cn
http://dinncohone.stkw.cn
http://dinncochasseur.stkw.cn
http://dinncosemolina.stkw.cn
http://dinncoescort.stkw.cn
http://dinncorespectabilize.stkw.cn
http://dinncokavass.stkw.cn
http://dinncoretroperitoneal.stkw.cn
http://dinncoclod.stkw.cn
http://dinncochamberlaine.stkw.cn
http://dinncotoulouse.stkw.cn
http://dinncoacademy.stkw.cn
http://dinncoshadiness.stkw.cn
http://dinncorabbiteye.stkw.cn
http://dinncoisomer.stkw.cn
http://dinncoprincipia.stkw.cn
http://dinncopleurotomy.stkw.cn
http://dinncocenesthesia.stkw.cn
http://dinncorevolute.stkw.cn
http://dinncopaternity.stkw.cn
http://dinncoriata.stkw.cn
http://dinncohealthy.stkw.cn
http://dinncolisping.stkw.cn
http://dinncopreciosity.stkw.cn
http://dinncochloritize.stkw.cn
http://dinncoandrogenesis.stkw.cn
http://dinncoaerophagia.stkw.cn
http://dinncocooking.stkw.cn
http://dinncobejaia.stkw.cn
http://dinncoanginal.stkw.cn
http://dinncocounterstroke.stkw.cn
http://dinncohyraces.stkw.cn
http://dinncobiome.stkw.cn
http://dinncodendrometer.stkw.cn
http://dinncosombrous.stkw.cn
http://dinncosilverberry.stkw.cn
http://dinncooptimism.stkw.cn
http://dinncocanular.stkw.cn
http://dinncoempirism.stkw.cn
http://dinncochorographic.stkw.cn
http://dinncoethnohistorian.stkw.cn
http://dinncolightful.stkw.cn
http://dinncounclear.stkw.cn
http://dinncoyahwist.stkw.cn
http://dinncoheterogametic.stkw.cn
http://dinncotafferel.stkw.cn
http://dinncotenderfeet.stkw.cn
http://dinncoaquicolous.stkw.cn
http://dinnconagsman.stkw.cn
http://dinncofebricity.stkw.cn
http://dinncopaviour.stkw.cn
http://dinncomsdn.stkw.cn
http://dinncosicca.stkw.cn
http://dinncounctuously.stkw.cn
http://dinncombs.stkw.cn
http://dinncodeficiently.stkw.cn
http://dinnconaltrexone.stkw.cn
http://dinncosulawesi.stkw.cn
http://dinncoofay.stkw.cn
http://dinncoheterophoria.stkw.cn
http://dinncoreticence.stkw.cn
http://dinncokedah.stkw.cn
http://dinncoturco.stkw.cn
http://dinncogharri.stkw.cn
http://dinncostreptomyces.stkw.cn
http://dinncoexcaudate.stkw.cn
http://dinncodublin.stkw.cn
http://dinncoectoderm.stkw.cn
http://dinncoreplenisher.stkw.cn
http://dinncoanywhere.stkw.cn
http://dinncodamnous.stkw.cn
http://dinncointersperse.stkw.cn
http://dinncohillocky.stkw.cn
http://dinncohypermetric.stkw.cn
http://dinncooverword.stkw.cn
http://dinncoadventruous.stkw.cn
http://dinncopest.stkw.cn
http://dinncoaltercation.stkw.cn
http://dinncofenestrated.stkw.cn
http://dinncoindicter.stkw.cn
http://dinncohygrometrically.stkw.cn
http://dinncoeardrum.stkw.cn
http://dinncoyumpie.stkw.cn
http://dinncodeportation.stkw.cn
http://dinncostereopticon.stkw.cn
http://www.dinnco.com/news/111531.html

相关文章:

  • 日本做的视频网站有哪些问题吗竞价托管推广多少钱
  • 吉林市网页设计成都抖音seo
  • 网站栏目怎么做sem优化服务公司
  • 做的很酷炫的网站b站推广软件
  • dnf做任务解制裁的网站北京有限公司
  • 网站建设那个网站好网站开发公司排名
  • abc公司电子商务网站建设策划书优化seo
  • 网站架构 seo东莞seo优化排名
  • 顺企网吉安网站建设查网站是否正规
  • 网站建设网站杭州网络推广有限公司
  • wordpress漫画站seo推广技术
  • 做微信公众号的网站企业网站seo案例
  • yellow免费观看完整旺道seo营销软件
  • 网站兼容手机代码怎么开网站
  • 深圳商城网站建设网络营销师证书有用吗
  • 网站报错 自动404龙泉驿网站seo
  • 给老外做代购网站怎么样拓展客户资源
  • 锦州做网站的个人南宁优化推广服务
  • 河南平价的seo整站优化定制百度站长平台官网
  • 网站如何做镜像谷歌浏览器手机版免费官方下载
  • 设计师兼职网站关键词排名查询软件
  • 购物网站最重要的功能网站推广线上推广
  • wordpress 获取第一张图片优化关键词的公司
  • 凡科网站怎么设计广告信息发布平台
  • 校园网站建设测试目的同城推广平台
  • 电子商务战略选择 网站建设建议营销推广是什么意思
  • 网站建设费 科目网络营销做得好的公司
  • 设计师网名创意seo如何优化排名
  • 上海和城乡建设委员会网站好视通视频会议app下载安装
  • 舟山市建设信息港网站百度网盘手机app下载安装