コード例 #1
0
 private PathStyle SolidStyle()
 {
     PathStyle style = new PathStyle();
     style.Stroke = Color;
     style.StrokeThickness = 1;
     return style;
 }
コード例 #2
0
 private PathStyle DotedStyle()
 {
     PathStyle style = new PathStyle();
     style.Stroke = Color;
     style.StrokeThickness = 1;
     style.StrokeDashArray = new DoubleCollection() { 5, 5 };
     return style;
 }
コード例 #3
0
ファイル: PathHelper.cs プロジェクト: syncfusion/uwp-demos
        private static void OnDataChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            Path path = d as Path;

            path.Loaded += (src, evt) =>
            {
                path.Data = PathStyle.Clone(e.NewValue.ToString());
            };
        }
コード例 #4
0
 private PathStyle InheritStyle()
 {
     PathStyle style = new PathStyle();
     this.TargetShape = Geometry.Parse("M2,0.5 L51.5,50 L2,99.5 L0.5,98 L0.5,2 z");
     //style.Data = "M2,0.5 L51.5,50 L2,99.5 L0.5,98 L0.5,2 z";
     style.Fill = "White";
     style.Stroke = Color;
     style.StrokeThickness = 1;
     style.Width = 20;
     style.Height = 15;
     style.Stretch = Stretch.Fill;
     return style;
 }
コード例 #5
0
 private PathStyle UniDirectionalStyle()
 {
     PathStyle style = new PathStyle();
     this.TargetShape = Geometry.Parse("M7,0.5 L56.5,50 L7,99.5 L0.5,93 L43.5,50 L0.5,7 z");
     //style.Data = "M0,0 L60,25 L0,50"; //"M7,0.5 L56.5,50 L7,99.5 L0.5,93 L43.5,50 L0.5,7 z";
     //style.Fill = Color;
     style.Stroke = Color;
     style.StrokeThickness = 1;
     style.Width = 15;
     style.Height = 15;
     style.Stretch = Stretch.Fill;
     return style;
 }
コード例 #6
0
 private PathStyle CompositionAggregateStyle()
 {
     PathStyle style = new PathStyle();
     this.SourceShape = Geometry.Parse("M50,0 L100,50 L50,100 L0,50 z");
     //style.Data = "M50,0 L100,50 L50,100 L0,50 z";
     style.Fill = Color;
     style.Stroke = Color;
     style.StrokeThickness = 1;
     style.Stretch = Stretch.Fill;
     style.Width = 20;
     style.Height = 15;
     return style;
 }
コード例 #7
0
        private PathStyle BasicAggregateStyle()
        {
            PathStyle style = new PathStyle();

            this.SourceShape = Shapes.Basic.ToGeometry();
            //style.Data = "M50,0 L100,50 L50,100 L0,50 z";
            style.Fill            = "White";
            style.Stroke          = Color;
            style.StrokeThickness = 1;
            style.Width           = 20;
            style.Height          = 15;
            style.Stretch         = Stretch.Fill;
            return(style);
        }