Beispiel #1
0
 public Avalon(GeometryFactory Segments, Activation Attach, Activation Detach, ManipulationDeltaEventHandler Router,byte definition , bool Real = false)
 {
     if (!Real)
     {
         this.definition = definition;
         Data = Segments.Pattern();
         ManipulationMode = Windows.UI.Xaml.Input.ManipulationModes.All;
         RenderTransform = new CompositeTransform();
         RenderTransformOrigin = new Windows.Foundation.Point(0.5, 0.5);
         Fill = new SolidColorBrush(new Color { A = 0, R = 0, G = 0, B = 0 });
         this.Attach = Attach;
         this.Detach = Detach;
         this.Router = Router;
         Tapped += Avalon_Tapped;
         Holding += Avalon_Holding;
         Loaded += Avalon_Loaded;
         Unloaded += Avalon_Unloaded;
         ManipulationDelta += Avalon_ManipulationDelta;
         this.Real = new Avalon(Segments, Attach, Detach, null, definition,true);
         this.Real.RenderTransform = RenderTransform;
         this.Real.RenderTransformOrigin = RenderTransformOrigin;
         this.Real.Data = Segments.Pattern();
         this.Real.Fill = new SolidColorBrush(Colors.RosyBrown);
         Canvas.SetZIndex(this, 2);
         Canvas.SetZIndex(this.Real, 0);
         Avalon_Holding(null, null);
     }
 }