Exemple #1
0
        public PathDisplay()
        {
            this.InitializeComponent();
            _pathwidth            = 1.0;
            Grid                  = new RadialGrid(new Range(0, 10, 100));
            Grid.Foreground       = Colors.Blue;
            Grid.PropertyChanged += Grid_PropertyChanged;
            double s = ScaleFactor;

            (PathDisplayCanvas.RenderTransform as CompositeTransform).ScaleX = s;
            (PathDisplayCanvas.RenderTransform as CompositeTransform).ScaleY = s;
            Grid.Outline.StrokeThickness = (Math.Abs(s) > 0) ? _pathwidth / Math.Abs(s) : _pathwidth;
            PathDisplayCanvas.Children.Add(Grid.Outline);
            AddAxes();

            //AddHilightPoint(new Point(0, 0));
            this.RenderTransformOrigin = new Point(0.5, 0.5);
            this.PointerWheelChanged  += PathDisplay_PointerWheelChanged;
        }
Exemple #2
0
 public PathDisplay()
 {
     this.InitializeComponent();
     _pathwidth = 1.0;
     Grid = new RadialGrid(new Range(0,10,100));
     Grid.Foreground = Colors.Blue;
     Grid.PropertyChanged += Grid_PropertyChanged;
     double s = ScaleFactor;
     (PathDisplayCanvas.RenderTransform as CompositeTransform).ScaleX = s;
     (PathDisplayCanvas.RenderTransform as CompositeTransform).ScaleY = s;
     Grid.Outline.StrokeThickness = (Math.Abs(s) > 0) ? _pathwidth / Math.Abs(s) : _pathwidth; 
     PathDisplayCanvas.Children.Add(Grid.Outline);
     AddAxes();
     
     //AddHilightPoint(new Point(0, 0));
     this.RenderTransformOrigin = new Point(0.5, 0.5);
     this.PointerWheelChanged += PathDisplay_PointerWheelChanged;
 }