Beispiel #1
1
        private void AntGrid(Grid g)
        {
            g.Width = 5;
            g.Height = 5;
            g.Visibility = Visibility.Visible;

            Storyboard sb = new Storyboard();
            DoubleAnimation da = new DoubleAnimation(5.0, gridmain.ActualWidth - 10, new Duration(TimeSpan.FromSeconds(2)));
            DoubleAnimation da1 = new DoubleAnimation(5.0, gridmain.RowDefinitions[0].ActualHeight - 10, new Duration(TimeSpan.FromSeconds(2)));

            DoubleAnimation da2 = new DoubleAnimation(0, 720, new Duration(TimeSpan.FromSeconds(2)));

            TransformGroup tg = new TransformGroup();
            RotateTransform rt = new RotateTransform(720);

            tg.Children.Add(rt);
            g.RenderTransform = tg;
            g.RenderTransformOrigin = new Point(0.5, 0.5);
            Storyboard.SetTarget(da2, g);
            Storyboard.SetTargetProperty(da2, new PropertyPath("(UIElement.RenderTransform).(TransformGroup.Children)[0].(RotateTransform.Angle)"));//RotateTransform.AngleProperty
            sb.Children.Add(da2);

            Storyboard.SetTarget(da, g);
            Storyboard.SetTargetProperty(da, new PropertyPath(Grid.WidthProperty));
            sb.Children.Add(da);

            Storyboard.SetTarget(da1, g);
            Storyboard.SetTargetProperty(da1, new PropertyPath(Grid.HeightProperty));
            sb.Children.Add(da1);

            if (!Resources.Contains("ShowAn"))
                Resources.Add("ShowAn", sb);
            sb.AccelerationRatio = 1.0;
            sb.Begin();
        }
Beispiel #2
0
        public static Sm.DrawingGroup ToGeometryGroup(this Drawing input)
        {
            Sm.DrawingGroup drawings = new Sm.DrawingGroup();

            double scale = input.GetScale();

            Rg.Curve curve = input.Frame.ToNurbsCurve();

            double x0 = input.Frame.Center.X - input.Width / scale / 2;
            double x1 = input.Frame.Center.X + input.Width / scale / 2;

            double y0 = input.Frame.Center.Y - input.Height / scale / 2;
            double y1 = input.Frame.Center.Y + input.Height / scale / 2;

            Rg.Rectangle3d rect = new Rg.Rectangle3d(Rg.Plane.WorldXY, new Rg.Point3d(x0, y0, 0), new Rg.Point3d(x1, y1, 0));

            drawings.Children.Add(new Shape(rect.ToNurbsCurve(), new Wg.Graphic(Wg.Strokes.Transparent, new Wg.Fill(input.Background))).ToGeometryDrawing());

            foreach (Shape shape in input.Shapes)
            {
                drawings.Children.Add(shape.ToGeometryDrawing());
            }

            drawings.ClipGeometry = input.Frame.ToPolyline().ToGeometry();

            Sm.TransformGroup xform = new Sm.TransformGroup();

            xform.Children.Add(new Sm.TranslateTransform(input.Frame.Center.X - input.Width / 2, input.Frame.Center.Y - input.Height / 2));
            xform.Children.Add(new Sm.ScaleTransform(1, -1));

            drawings.Transform = xform;

            return(drawings);
        }
Beispiel #3
0
        public static Sm.DrawingVisual ToGeometryVisual(this Drawing input)
        {
            Sm.DrawingVisual drawings = new Sm.DrawingVisual();

            double scale = input.GetScale();

            Rg.Curve curve = input.Frame.ToNurbsCurve();

            double x0 = input.Frame.Center.X - input.Width / scale / 2;
            double x1 = input.Frame.Center.X + input.Width / scale / 2;

            double y0 = input.Frame.Center.Y - input.Height / scale / 2;
            double y1 = input.Frame.Center.Y + input.Height / scale / 2;

            Rg.Rectangle3d rect = new Rg.Rectangle3d(Rg.Plane.WorldXY, new Rg.Point3d(x0, y0, 0), new Rg.Point3d(x1, y1, 0));

            drawings.Children.Add(new Shape(rect.ToNurbsCurve(), new Wg.Graphic(Wg.Strokes.Transparent, new Wg.Fill(input.Background))).ToVisualDrawing());

            foreach (Shape shape in input.Shapes)
            {
                drawings.Children.Add(shape.ToVisualDrawing());
            }

            Sm.TransformGroup xform = new Sm.TransformGroup();

            double shiftW = (input.Width / scale / 2 - input.Frame.Center.X);
            double shiftH = -(input.Height / scale / 2 + input.Frame.Center.Y);

            xform.Children.Add(new Sm.TranslateTransform(shiftW, shiftH));
            xform.Children.Add(new Sm.ScaleTransform(scale, (-1) * scale));

            drawings.Transform = xform;

            return(drawings);
        }
        public SpriteSheetDrawBehavior(string fileName, double frameTime, double angle, bool loop)
        {
            // Beginstate voor non-readonly variabelen
            Reset();

            // Sprites ophalen
            _sprites = SpriteSheetFactory.Instance.GetSprites(fileName);

            // Readonly variabelen
            _frameCount = _sprites.Length;
            _frameTime = frameTime;
            _loop = loop;

            // Transformgroups aanmaken (voor rechtzetten en spiegelen van de sprites)
            _transformRegular = new TransformGroup();
            _transformRegular.Children.Add(new ScaleTransform(1, 1));
            _transformRegular.Children.Add(new RotateTransform(angle));

            _transformFlipped = new TransformGroup();
            _transformFlipped.Children.Add(new ScaleTransform(-1, 1));
            _transformFlipped.Children.Add(new RotateTransform(-angle));

            // Graphics object aanmaken
            _gfx = new Image();
            _gfx.Source = _sprites[0];
            _gfx.RenderTransformOrigin = new Point(0.5, 0.5);
            _gfx.RenderTransform = _transformRegular;
        }
Beispiel #5
0
        private Media.Transform CreateAnimatedTransform2(double speed = 4)
        {
            var lightTrafo      = new Media.TransformGroup();
            var rotateAnimation = new Media.Animation.DoubleAnimation
            {
                RepeatBehavior = Media.Animation.RepeatBehavior.Forever,
                By             = 360,
                AutoReverse    = false,
                Duration       = TimeSpan.FromSeconds(speed / 4),
            };

            var rotateTransform = new Media.RotateTransform(0, 0, 0);

            rotateTransform.BeginAnimation(Media.RotateTransform.AngleProperty, rotateAnimation);
            lightTrafo.Children.Add(rotateTransform);


            var scaleAnimation = new Media.Animation.DoubleAnimation
            {
                RepeatBehavior = Media.Animation.RepeatBehavior.Forever,
                From           = 1, To = 5,
                AutoReverse    = true,
                Duration       = TimeSpan.FromSeconds(speed / 4),
            };
            var scaleTransform = new Media.ScaleTransform(1, 1, 0, 0);

            scaleTransform.BeginAnimation(Media.ScaleTransform.ScaleXProperty, scaleAnimation);
            scaleTransform.BeginAnimation(Media.ScaleTransform.ScaleYProperty, scaleAnimation);
            lightTrafo.Children.Add(scaleTransform);
            return(lightTrafo);
        }
        public ParkingSensorViewControl()
        {
            InitializeComponent();

            double scale = 1.0;

            for (int i = 0; i < 4; i++)
            {
                //double angle = -90.0d + 360.0d / 4.0d * (i + 0.5d);
                double angle = angles[i];

                // http://www.comanswer.com/question/silverlight-xamlwriter

                var dt = (DataTemplate)Resources["TemplateXaml"];
                Path pointer = (Path)dt.LoadContent();

                ScaleTransform st = new ScaleTransform(scale, 1.0d);
                beamsSt[i] = st;
                RotateTransform rt = new RotateTransform(angle, 0, 10);
                TranslateTransform tt = new TranslateTransform(50.0d, 0.0d);    // half the length of the beam
                TransformGroup tg = new TransformGroup();
                tg.Children.Add(st);
                tg.Children.Add(rt);
                tg.Children.Add(tt);
                pointer.RenderTransform = tg;

                mainGrid.Children.Add(pointer);
            }
        }
		public marker1dEditor() {
			InitializeComponent();

            ScaleFactor = 1.0f;

			group = new TransformGroup();
			trans = new TranslateTransform();

			group.Children.Add(trans);

			marker.RenderTransform = group;
			pointerUp.RenderTransform = group;
			pointerDown.RenderTransform = group;

            pointerUp.Cursor = Cursors.SizeNS;
            pointerDown.Cursor = Cursors.SizeNS;
            marker.Cursor = Cursors.SizeAll;

			marker.MouseDown += new MouseButtonEventHandler(marker_MouseDown);
			marker.MouseMove += new MouseEventHandler(marker_MouseMove);
			marker.MouseUp += new MouseButtonEventHandler(MouseUpHandler);

			pointerUp.MouseDown += new MouseButtonEventHandler(pointerUp_MouseDown);
			pointerUp.MouseMove += new MouseEventHandler(pointerUp_MouseMove);
			pointerUp.MouseUp += new MouseButtonEventHandler(MouseUpHandler);
			pointerDown.MouseDown += new MouseButtonEventHandler(pointerDown_MouseDown);
			pointerDown.MouseMove += new MouseEventHandler(pointerDown_MouseMove);
			pointerDown.MouseUp += new MouseButtonEventHandler(MouseUpHandler);
		}
Beispiel #8
0
        protected static FrameworkElement AnnotationFor(CoordinateSystem cs, Coordinate coord, double angle, Brush style, double size, double lengthInMeters, TextAlignment alignment, int extraDistance)
        {
            var realAngle  = 180 * angle / Math.PI;
            var annotation = new TextBlock()
            {
                Text          = "▼",
                FontSize      = size,
                TextAlignment = TextAlignment.Left,
                Foreground    = style,
                FontWeight    = FontWeights.ExtraBold,
            };


            var x = coord.X - System.Math.Cos(angle) * extraDistance;
            var y = coord.Y - System.Math.Sin(angle) * extraDistance;

            var txfm = new System.Windows.Media.TransformGroup();

            txfm.Children.Add(new RotateTransform {
                Angle = realAngle
            });
            txfm.Children.Add(new TranslateTransform {
                X = coord.X - 5, Y = coord.Y - 5
            });

            annotation.RenderTransform = txfm;
            return(annotation);
        }
        static Transform CreateNormalizeTransform(Rect bounds, Point location, Size size, double angle)
        {
            var t = new TransformGroup();

            var b = bounds;

            // Move center of the geometry to origin
            t.Children.Add(new TranslateTransform(-b.X - b.Width / 2, -b.Y - b.Height / 2));
            // Rotate around origin
            t.Children.Add(new RotateTransform(angle));

            b = t.TransformBounds(bounds);
            // Scale to requested size
            t.Children.Add(new ScaleTransform(size.Width / b.Width, size.Height / b.Height));

            b = t.TransformBounds(bounds);
            // Move to requested position
            t.Children.Add(new TranslateTransform(-b.X + location.X, -b.Y + location.Y));

            t.Freeze();

            b = t.TransformBounds(bounds);
            Debug.Assert(Math.Abs(b.X - location.X) < 0.0001);
            Debug.Assert(Math.Abs(b.Y - location.Y) < 0.0001);
            Debug.Assert(Math.Abs(b.Width - size.Width) < 0.0001);
            Debug.Assert(Math.Abs(b.Height - size.Height) < 0.0001);

            return t;
        }
Beispiel #10
0
        public static void ParkHotelExplorer(bool restore, double width, Canvas canvas, double top, double left, double scale, double rotate)
        {
            _canvas = canvas;
            var hotelExplorer = HotelExplorer.GetInstance();
            hotelExplorer.IsFloating = !restore;
            hotelExplorer.HightLight(!restore);
            var ypos = restore ? top : Canvas.GetTop(hotelExplorer);
            var xpos = restore ? width - left - (hotelExplorer.ActualWidth * scale) : Canvas.GetLeft(hotelExplorer);
            var yTo = restore ? 55 : top;
            var xTo = restore ? 55 : width - left - (hotelExplorer.ActualWidth / scale);
            var zoomFrom = restore ? scale : 1;
            var zoomTo = restore ? 1 : scale;
            var rotateFrom = restore ? rotate : 0;
            var rotateTo = restore ? 0 : rotate;
            var yAnimation = new DoubleAnimation
                                 {
                                     From = ypos,
                                     To = yTo,
                                     Duration = new Duration(TimeSpan.FromMilliseconds(500))
                                 };
            var xAnimation = new DoubleAnimation
                                 {
                                     From = xpos,
                                     To = xTo,
                                     Duration = new Duration(TimeSpan.FromMilliseconds(1000))
                                 };

            hotelExplorer.BeginAnimation(Canvas.TopProperty, yAnimation);
            hotelExplorer.BeginAnimation(Canvas.LeftProperty, xAnimation);

            var zoom = new DoubleAnimation
                           {
                               From = zoomFrom,
                               To = zoomTo,
                               BeginTime = TimeSpan.FromMilliseconds(0),
                               Duration = new Duration(TimeSpan.FromMilliseconds(1000))
                           };

            var rotateAnimation = new DoubleAnimation
                             {
                                 From = rotateFrom,
                                 To = rotateTo,
                                 BeginTime = TimeSpan.FromMilliseconds(0),
                                 Duration = new Duration(TimeSpan.FromMilliseconds(1000))
                             };

            zoom.Completed += HotelZoomCompleted;

            var st = new ScaleTransform();
            var rt = new RotateTransform(rotateTo, 0, 0);

            var group = new TransformGroup();
            group.Children.Add(st);
            group.Children.Add(rt);

            hotelExplorer.Container.WorkingObject.RenderTransform = group;
            st.BeginAnimation(ScaleTransform.ScaleXProperty, zoom);
            st.BeginAnimation(ScaleTransform.ScaleYProperty, zoom);
            st.BeginAnimation(RotateTransform.AngleProperty, rotateAnimation);
        }
        public SingleChargeSolver()
        {
            InitializeComponent();
            Instance = this;

            for (int i = 0; i < 9; i++)
            {
                for (int j = 0; j < 6; j++)
                {
                    var newfPoint = new FieldVector
                                        {
                                            Height = 14,
                                            Width = 8,
                                            HorizontalAlignment = HorizontalAlignment.Left,
                                            VerticalAlignment = VerticalAlignment.Top,
                                            Margin = new Thickness((45*i) + 21, (45*j) + 12, 0, 0)
                                        };
                    gridField.Children.Add(newfPoint);
                }
            }

            var group = new TransformGroup();

            var transfer = new TranslateTransform
                               {
                                   X = 190,
                                   Y = 118
                               };

            group.Children.Add(transfer);
            positiveCharge1.RenderTransform = group;

            _charges.Add(positiveCharge1.MyCharge);
            CalculatePositions();
        }
Beispiel #12
0
		public void Value_Matrix (bool refresh)
		{
			MatrixTransform mt = new MatrixTransform ();

			TransformGroup tg = new TransformGroup ();
			tg.Children.Add (mt);
			Assert.AreEqual (1, tg.Children.Count, "Children-1");
			Assert.IsTrue (tg.Value.IsIdentity, "IsIdentity-1");

			mt.Matrix = new Matrix (2.0, 0.0, 0.0, 0.5, 0.0, 0.0);
			Assert.AreEqual (1, tg.Children.Count, "Children-2");
			// update was made inside TransformGroup...
			Assert.IsFalse ((tg.Children [0] as MatrixTransform).Matrix.IsIdentity, "IsIdentity-2");

			if (refresh) {
				// ... but Value is not refreshed if changed "indirectly" ...
				Assert.IsTrue (tg.Value.IsIdentity, "IsIdentity-3");
				Assert.IsFalse (mt.Matrix.Equals (tg.Value), "Matrix-3");
			}

			// ... unless the collection is changed
			tg.Children.Add (new MatrixTransform ());
			Assert.AreEqual (2, tg.Children.Count, "Children-4");
			Assert.IsTrue (mt.Matrix.Equals (tg.Value), "Matrix-4");
		}
 void CreateSubMagic(RoleBase caster,RoleBase startTarget, RoleBase endTarget, Space space, MagicArgs args)
 {
     AnimationBase animation = new AnimationBase() { Code = args.ResCode, Z = startTarget.Z + 1 };
     double offsetStartY = (startTarget.State == States.Riding ? (startTarget.Profession == Professions.Taoist ? 130 : 110) : 60) * args.Scale;
     double offsetEndY = (endTarget.State == States.Riding ? 100 : 50) * args.Scale;
     Point from = new Point(startTarget.Position.X, startTarget.Position.Y - offsetStartY);
     Point to = new Point(endTarget.Position.X, endTarget.Position.Y - offsetEndY);
     RotateTransform rotateTransform = new RotateTransform() {
         CenterX = animation.Center.X,
         CenterY = animation.Center.Y,
         Angle = GlobalMethod.GetAngle(to.Y - from.Y, to.X - from.X)
     };
     ScaleTransform scaleTransform = new ScaleTransform() {
         CenterX = animation.Center.X,
         CenterY = animation.Center.Y,
         ScaleX = (GlobalMethod.GetDistance(startTarget.Position, endTarget.Position) / Convert.ToInt32(args.Tag)),
         ScaleY = args.Scale
     };
     TransformGroup transformGroup = new TransformGroup();
     transformGroup.Children.Add(scaleTransform);
     transformGroup.Children.Add(rotateTransform);
     animation.RenderTransform = transformGroup;
     animation.Position = from;
     space.AddUIElement(animation);
     EventHandler handler = null;
     animation.End += handler = delegate {
         animation.End -= handler;
         space.RemoveAnimation(animation);
     };
     animation.HeartStart();
 }
        public RectangleEditor() {
            InitializeComponent();

            ScaleFactor = 1.0f;

            group = new TransformGroup();
            trans = new TranslateTransform();

            group.Children.Add(trans);

            marker.RenderTransform = group;
            pointerUp.RenderTransform = group;
            pointerDown.RenderTransform = group;

            pointerUp.Cursor = Cursors.SizeNWSE;
            pointerDown.Cursor = Cursors.SizeNWSE;
            marker.Cursor = Cursors.SizeAll;

            marker.MouseDown += new MouseButtonEventHandler(marker_MouseDown);
            marker.MouseMove += new MouseEventHandler(marker_MouseMove);
            marker.MouseUp += new MouseButtonEventHandler(MouseUpHandler);

            pointerUp.MouseDown += new MouseButtonEventHandler(pointerUp_MouseDown);
            pointerUp.MouseMove += new MouseEventHandler(pointerUp_MouseMove);
            pointerUp.MouseUp += new MouseButtonEventHandler(MouseUpHandler);
            pointerDown.MouseDown += new MouseButtonEventHandler(pointerDown_MouseDown);
            pointerDown.MouseMove += new MouseEventHandler(pointerDown_MouseMove);
            pointerDown.MouseUp += new MouseButtonEventHandler(MouseUpHandler);

            viewBox.SizeChanged += new SizeChangedEventHandler(viewBox_SizeChanged);
            Loaded += new RoutedEventHandler(RectangleEditor_Loaded);
        }
Beispiel #15
0
        public static UserControl NewUserControlFrom(FigureTemplate template)
        {
            UserControl retVal = null;

            if (template.Letter.Length == 1 && Char.IsLetterOrDigit(template.Letter[0]))
            {
                retVal = new CoolLetter(template.Fill.Clone(), template.Letter[0]);
            }
            else
            {
                retVal = template.GeneratorFunc(template.Fill.Clone());
            }

            var randomTransition1 = (Tweener.TransitionType)Utils.RandomBetweenTwoNumbers(1, (int)Tweener.TransitionType.EaseOutInBounce);
            var ani1 = Tweener.Tween.CreateAnimation(randomTransition1, 0, 1, new TimeSpan(0, 0, 0, 1), 30);
            var randomTransition2 = (Tweener.TransitionType)Utils.RandomBetweenTwoNumbers(1, (int)Tweener.TransitionType.EaseOutInBounce);
            var ani2 = Tweener.Tween.CreateAnimation(randomTransition2, 360, 0, new TimeSpan(0, 0, 0, 1), 30);
            retVal.RenderTransformOrigin = new Point(0.5, 0.5);
            var group = new TransformGroup();
            group.Children.Add(new ScaleTransform());
            group.Children.Add(new RotateTransform());
            retVal.RenderTransform = group;
            group.Children[0].BeginAnimation(ScaleTransform.ScaleXProperty, ani1);
            group.Children[0].BeginAnimation(ScaleTransform.ScaleYProperty, ani1);
            group.Children[1].BeginAnimation(RotateTransform.AngleProperty, ani2);

            if (Settings.Default.UseEffects)
            {
                retVal.Effect = template.Effect.Clone();
            }

            return retVal;
        }
 public override GeneralTransform GetDesiredTransform(GeneralTransform transform)
 {
     var group = new TransformGroup();
     group.Children.Add((Transform)transform);
     group.Children.Add(_tTranslate = new TranslateTransform(HorizontalOffset, VerticalOffset));
     return group;
 }
Beispiel #17
0
        /// <summary>
        /// Updates the canvas information (for if canvas size changes)
        /// </summary>
        public void Update(Size canvasSize, int gridSize)
        {
            var previousSize = CanvasSize;

            Center = new Point(canvasSize.Width / 2, canvasSize.Height / 2);

            RotationTransform = new RotateTransform(45, Center.X, Center.Y);
            FlipTransform = new ScaleTransform(1, -1, Center.X, Center.Y);
            Transforms = new TransformGroup();
            Transforms.Children.Add(RotationTransform);
            Transforms.Children.Add(FlipTransform);

            RotationTransformReverse = new RotateTransform(-45, Center.X, Center.Y);
            TransformsReverse = new TransformGroup();
            TransformsReverse.Children.Add(FlipTransform);
            TransformsReverse.Children.Add(RotationTransform);

            CanvasSize = canvasSize;
            Grid = new Size((int)(canvasSize.Width / gridSize), (int)(canvasSize.Height / gridSize));
            GridSquareSize = new Size(gridSize, gridSize);
            LastCanvas = this;

            ClipRegion = new RectangleGeometry(new Rect(new Point(20, 20), new Size(canvasSize.Width - 40, canvasSize.Height - 40)));

            if (OnCanvasSizeChanged != null && !previousSize.Equals(CanvasSize))
                OnCanvasSizeChanged(previousSize, CanvasSize);
        }
Beispiel #18
0
        public AnimatedFrame()
        {
            var transformGroup = new TransformGroup();
            var oldTransformGroup = RenderTransform as TransformGroup;
            if ((null != oldTransformGroup) && (3 <= oldTransformGroup.Children.Count))
            {
                var offsetTransform = oldTransformGroup.Children[0] as TranslateTransform;
                if (null != offsetTransform)
                {
                    transformGroup.Children.Add(offsetTransform);
                }
            }

            // Add custom transforms
            transformGroup.Children.Add(_rotateTransform);
            transformGroup.Children.Add(_translateTransform);

            // Replace existing transform(s)
            RenderTransform = transformGroup;

            // Set up animation
            _progressAnimation.From = 0;
            _progressAnimation.To = 1;
            Storyboard.SetTarget(_progressAnimation, this);
            Storyboard.SetTargetProperty(_progressAnimation, new PropertyPath("Progress"));
            _progressStoryboard.Children.Add(_progressAnimation);

            // Initialize variables
            EasingFunction = new QuarticEase(); // Initialized here to avoid a single shared instance

            // Hook events
            SizeChanged += HandleSizeChanged;
            OrientationChanged += HandleOrientationChanged;
        }
Beispiel #19
0
        public Window1()
        {
            InitializeComponent();
            TransformGroup group = new TransformGroup();

            TranslateTransform tt = new TranslateTransform();
            group.Children.Add(tt);

            image1.RenderTransform = group;

            TransformGroup group2 = new TransformGroup();

            TranslateTransform tt2 = new TranslateTransform();
            group2.Children.Add(tt2);
            image2.RenderTransform = group2;

            contactDataController = EmulatorContactDataController.Instance;

            Point p1 = new Point(12, 39);
            ContactDescriptor c1 = new ContactDescriptor(iPhoneID,(int) p1.X,(int) p1.Y, 180.0f);
            contactDataController.addContact(iPhoneID, c1);

            Point p2 = new Point(245, 190);
            ContactDescriptor c2 = new ContactDescriptor(iPadID, (int)p2.X, (int)p2.Y, 180.0f);
            contactDataController.addContact(iPadID, c2);

            //serverController = new ServerController(5);
            //Thread oThread = new Thread(new ThreadStart(serverController.startServer));
            SeverThread fetcher = new SeverThread(this.runServer);
            //oThread.Start();
            fetcher.BeginInvoke(null, null);
        }
        public static void MouseWheel(Canvas c, TransformGroup tg, MouseWheelEventArgs e)
        {
            int deltaValue;
            deltaValue = e.Delta;
            TranslateTransform tt = (TranslateTransform)tg.Children[1];
            ScaleTransform st = (ScaleTransform)tg.Children[0];
            double xSpot = e.GetPosition(c).X;
            double ySpot = e.GetPosition(c).Y;

            Double x = e.GetPosition(c).X - tt.X;
            Double y = e.GetPosition(c).Y - tt.Y;

            Double centerX = st.CenterX * (st.ScaleX - 1);
            Double centerY = st.CenterY * (st.ScaleY - 1);

            st.CenterX = x;
            st.CenterY = y;

            if (deltaValue > 0)
            {
                st.ScaleX *= 1.25;
                st.ScaleY *= 1.25;
            }
            else
            {

                st.ScaleX *= 0.75;
                st.ScaleY *= 0.75;
            }
        }
        protected override void OnMouseMove(MouseEventArgs e)
        {
            Window wnd = Window.GetWindow(this);
            Point currentLocation = e.MouseDevice.GetPosition(wnd);

            var move = new TranslateTransform(
                currentLocation.X - _previousLocation.X, currentLocation.Y - _previousLocation.Y);

            if (e.LeftButton == MouseButtonState.Pressed)
            {
                var group = new TransformGroup();
                if (_previousTransform != null)
                {
                    group.Children.Add(_previousTransform);
                }
                group.Children.Add(move);

                RenderTransform = group;
            }
            else
            {
                Cursor = Cursors.Hand;
            }

            _previousLocation = currentLocation;
            _previousTransform = RenderTransform;

            MainWindow.Instance.CalculatePositions();
            base.OnMouseMove(e);
        }
        public void Initialize(UIElement element)
        {

            this.child = element;
            if (child != null)
            {
                TransformGroup group = new TransformGroup();

                ScaleTransform st = new ScaleTransform();
                group.Children.Add(st);

                TranslateTransform tt = new TranslateTransform();

                group.Children.Add(tt);

                child.RenderTransform = group;
                child.RenderTransformOrigin = new Point(0.0, 0.0);

                child.MouseWheel += child_MouseWheel;
                child.MouseLeftButtonDown += child_MouseLeftButtonDown;
                child.MouseLeftButtonUp += child_MouseLeftButtonUp;
                child.MouseMove += child_MouseMove;
                child.PreviewMouseRightButtonDown += new MouseButtonEventHandler(child_PreviewMouseRightButtonDown);
            }
        }
Beispiel #23
0
        /// <summary>
        /// ImageControls constructor
        /// </summary>
        /// <param name="uiImage">User's Image</param>
        /// <param name="uiImageCanvas">Canvas the image is displayed on</param>
        /// <param name="uiProcImage">Processed Image</param>
        /// <param name="uiProcImageCanvas">Canvas that the processed image is displayed on</param>
        public ImageControls(Image uiImage, Canvas uiImageCanvas, Image uiProcImage, Canvas uiProcImageCanvas)
        {
            image = uiImage;
            imageCanvas = uiImageCanvas;

            procImage = uiProcImage;
            procImageCanvas = uiProcImageCanvas;

            //Create transform group that includes ScaleTransform (zooming) and TranslateTransform (panning)
            TransformGroup group = new TransformGroup();
            ScaleTransform xform = new ScaleTransform();
            group.Children.Add(xform);
            TranslateTransform tt = new TranslateTransform();
            TranslateTransform ttp = new TranslateTransform();
            group.Children.Add(tt);
            group.Children.Add(ttp);

            //Add transform group to both images. Cant add to canvas because there is no boundry for the canvas, thus the images will expand outside the GUI
            image.RenderTransform = group;
            image.MouseWheel += image_MouseWheel;
            image.MouseLeftButtonDown += image_MouseLeftButtonDown;
            image.MouseLeftButtonUp += image_MouseLeftButtonUp;
            image.MouseMove += image_MouseMove;

            procImage.RenderTransform = group;
            procImage.MouseWheel += procImage_MouseWheel;
            procImage.MouseLeftButtonDown += procImage_MouseLeftButtonDown;
            procImage.MouseLeftButtonUp += procImage_MouseLeftButtonUp;
            procImage.MouseMove += procImage_MouseMove;
        }
Beispiel #24
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/YueFM%20for%20Windows%20Phone%208;component/SettingPage.xaml", System.UriKind.Relative));
     this.LayoutRoot        = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.Pivot             = ((Microsoft.Phone.Controls.Pivot)(this.FindName("Pivot")));
     this.AccountTextBlock  = ((System.Windows.Controls.TextBlock)(this.FindName("AccountTextBlock")));
     this.LogoutButton      = ((System.Windows.Controls.Button)(this.FindName("LogoutButton")));
     this.SkyDriveTextBlock = ((System.Windows.Controls.TextBlock)(this.FindName("SkyDriveTextBlock")));
     this.ButtonSignin      = ((Microsoft.Live.Controls.SignInButton)(this.FindName("ButtonSignin")));
     this.accountControl    = ((Alexis.WindowsPhone.Social.AccountControl)(this.FindName("accountControl")));
     this.FontListPicker    = ((Microsoft.Phone.Controls.ListPicker)(this.FindName("FontListPicker")));
     this.SizeTextBlock     = ((System.Windows.Controls.TextBlock)(this.FindName("SizeTextBlock")));
     this.SliderFontSize    = ((System.Windows.Controls.Slider)(this.FindName("SliderFontSize")));
     this.ImageToggleSwitch = ((Microsoft.Phone.Controls.ToggleSwitch)(this.FindName("ImageToggleSwitch")));
     this.NightToggleSwitch = ((Microsoft.Phone.Controls.ToggleSwitch)(this.FindName("NightToggleSwitch")));
     this.NightStackPanel   = ((System.Windows.Controls.StackPanel)(this.FindName("NightStackPanel")));
     this.NightStackPanelFadeInStoryboard  = ((System.Windows.Media.Animation.Storyboard)(this.FindName("NightStackPanelFadeInStoryboard")));
     this.NightStackPanelFadeOutStoryboard = ((System.Windows.Media.Animation.Storyboard)(this.FindName("NightStackPanelFadeOutStoryboard")));
     this.NightStackPanelTransformGroup    = ((System.Windows.Media.TransformGroup)(this.FindName("NightStackPanelTransformGroup")));
     this.NightStackPanelScaleTransform    = ((System.Windows.Media.ScaleTransform)(this.FindName("NightStackPanelScaleTransform")));
     this.NightTextBlock    = ((System.Windows.Controls.TextBlock)(this.FindName("NightTextBlock")));
     this.SliderNight       = ((System.Windows.Controls.Slider)(this.FindName("SliderNight")));
     this.QuitToggleSwitch  = ((Microsoft.Phone.Controls.ToggleSwitch)(this.FindName("QuitToggleSwitch")));
     this.crashToggleSwitch = ((Microsoft.Phone.Controls.ToggleSwitch)(this.FindName("crashToggleSwitch")));
     this.marketButton      = ((System.Windows.Controls.Button)(this.FindName("marketButton")));
     this.mailButton        = ((System.Windows.Controls.Button)(this.FindName("mailButton")));
 }
        //Editor Ed = new Editor(Edit);

        public Manager(TabControl tabs, StackPanel Background, StackPanel Edit)
        {
            // TODO: Complete member initialization
            this.tabs = tabs;
            this.Background = Background;
            this.Edit = Edit;
            trSkw = new SkewTransform(0, 0);
            trRot = new RotateTransform(0);
            trTns = new TranslateTransform(0, 0);
            trScl = new ScaleTransform(1, 1);
            trSkw2 = new SkewTransform(0, 0);
            trRot2 = new RotateTransform(0);
            trTns2 = new TranslateTransform(0, 0);
            trScl2 = new ScaleTransform(1, 1);
            trGrp2 = new TransformGroup();
            trGrp2.Children.Add(trSkw2);
            trGrp2.Children.Add(trRot2);
            trGrp2.Children.Add(trTns2);
            trGrp2.Children.Add(trScl2);
            trGrp = new TransformGroup();
            trGrp.Children.Add(trSkw);
            trGrp.Children.Add(trRot);
            trGrp.Children.Add(trTns);
            trGrp.Children.Add(trScl);
        }
Beispiel #26
0
 public static void SetScrollEffect(DependencyObject obj, int value)
 {
     var elem = obj as FrameworkElement;
     var transGroup = new TransformGroup();
     transGroup.Children.Add(new ScaleTransform());
     transGroup.Children.Add(new SkewTransform());
     transGroup.Children.Add(new RotateTransform());
     transGroup.Children.Add(new TranslateTransform());
     elem.RenderTransform = transGroup;
     var sb = new Storyboard();
     var da = new DoubleAnimationUsingKeyFrames();
     Storyboard.SetTarget(da, obj);
     Storyboard.SetTargetProperty(da, new PropertyPath("(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)", new object[0]));
     da.KeyFrames.Add(new EasingDoubleKeyFrame { KeyTime = KeyTime.FromTimeSpan(TimeSpan.Zero), Value = 60 });
     da.KeyFrames.Add(new EasingDoubleKeyFrame { KeyTime = KeyTime.FromTimeSpan(TimeSpan.FromMilliseconds(value)), Value = 60 });
     da.KeyFrames.Add(new EasingDoubleKeyFrame { KeyTime = KeyTime.FromTimeSpan(TimeSpan.FromMilliseconds(value + 900)), Value = 0, EasingFunction = new CircleEase { EasingMode = EasingMode.EaseOut } });
     sb.Children.Add(da);
     var da2 = new DoubleAnimationUsingKeyFrames();
     Storyboard.SetTarget(da2, obj);
     Storyboard.SetTargetProperty(da2, new PropertyPath(UIElement.OpacityProperty));
     da2.KeyFrames.Add(new EasingDoubleKeyFrame { KeyTime = KeyTime.FromTimeSpan(TimeSpan.Zero), Value = 0 });
     da2.KeyFrames.Add(new EasingDoubleKeyFrame { KeyTime = KeyTime.FromTimeSpan(TimeSpan.FromMilliseconds(value)), Value = 0 });
     da2.KeyFrames.Add(new EasingDoubleKeyFrame { KeyTime = KeyTime.FromTimeSpan(TimeSpan.FromMilliseconds(value + 400)), Value = 1 });
     sb.Children.Add(da2);
     elem.Loaded += (a, b) =>
     {
         sb.Begin();
     };
     obj.SetValue(ScrollEffectProperty, value);
 }
		public ConveyorCornerShape(ConveyorCorner element)
		{
			InitializeComponent();

			if (element.speed == 2)
				this.Arrow.Fill = FastBrush;

			this.RenderTransformOrigin = new Point(0.5, 0.5);

			var transform = new TransformGroup();
			transform.Children.Add(new RotateTransform(DirectionToAngle(element)));
			if ((element.direcdtionIn == Direction.Right && element.direcdtionOut == Direction.Up) ||
				(element.direcdtionIn == Direction.Left && element.direcdtionOut == Direction.Down))
			{
				transform.Children.Add(new ScaleTransform(-1, -1));
				var arrowRotate = Arrow.RenderTransform;
				var groupTransform = new TransformGroup();
				groupTransform.Children.Add(arrowRotate);
				groupTransform.Children.Add(new ScaleTransform(-1, -1));
				Arrow.RenderTransform = groupTransform;
				this.Arrow.Fill = new SolidColorBrush(Colors.LightGreen);
			}
			if (element.direcdtionOut != Direction.Up && element.direcdtionIn > element.direcdtionOut)
			{
				//transform.Children.Add(new ScaleTransform(-1, -1));
				this.Arrow.Fill = new SolidColorBrush(Colors.Purple);
			}

			

			this.RenderTransform = transform;
		}
 public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
 {
     var group = new TransformGroup();
     group.Children.Add(new RotateTransform(random.Next(-10, 11)));
     group.Children.Add(new TranslateTransform(random.Next(-10, 11), random.Next(-10, 11)));
     return group;
 }
		protected override void OnRender(DrawingContext drawingContext) {
			// draw everything except the reflection
			base.OnRender(drawingContext);

			// set opacity
			drawingContext.PushOpacityMask(opacityMask);

			reflection.Visual = Child;
			var group = new TransformGroup();


			if (Child.RenderTransform is TransformGroup) {
				foreach (var child in ((TransformGroup)Child.RenderTransform).Children) {
					group.Children.Add(child);
				}
			}
			else {
				group.Children.Add(Child.RenderTransform);
			}

			scaleTransform.CenterY = (ActualHeight / 1.5) + ((ActualHeight / 1.5) / 4);
			scaleTransform.CenterX = ActualWidth / 2;
			group.Children.Add(scaleTransform);

			reflection.Transform = group;

			// draw the reflection
			drawingContext.DrawRectangle(
					reflection, null,
					new Rect(0, ActualHeight / 1.5, ActualWidth, ActualHeight / 3));

			// cleanup
			drawingContext.Pop();
		}
Beispiel #30
0
        private void Test()
        {
            var test = new TransformGroup
            {
                Children = new TransformCollection
                {
                    new TranslateTransform { X = 10, Y = 20 },
                    new RotateTransform { Angle = 45 }
                }
            };
            var v = test.Value;


            var st = new TransformGroup { Children = new TransformCollection { new SkewTransform { AngleX = 45 } } };
            var tt = new TranslateTransform { X = 1 };

            var tg1 = new TransformGroup { Children = new TransformCollection { st, tt } };
            var tg2 = new TransformGroup { Children = new TransformCollection { tt, st } };

            var tg3 = new TransformGroup { Children = new TransformCollection { st } };
            var tg4 = new TransformGroup { Children = new TransformCollection { tt } };

            var tg5 = new TransformGroup();
            tg5.Children.Add(new TranslateTransform { X = 1, Y = 2 });
            tg5.Children.Add(new RotateTransform { Angle = -90 });

            var tg6 = new TransformGroup();
            tg6.Children.Add(new RotateTransform { Angle = -90 });
            tg6.Children.Add(new TranslateTransform { X = 1, Y = 2 });

            var p = new RotateTransform { Angle = 90 }.Transform(new Point(1, 2));

            var m3 = new Matrix3DProjection();
        }
 void CreateSubMagic(RoleBase caster, Space space, MagicArgs args, int index)
 {
     AnimationBase animation = new AnimationBase() { Code = args.ResCode,  Z = targets[index].Z + 1, Effect = shiftHue };
     double offsetStartY = (caster.State == States.Riding ? (caster.Profession == Professions.Taoist ? 130 : 110) : 60) * caster.Scale;
     double offsetEndY = (targets[index].State == States.Riding ? 100 : 50) * caster.Scale;
     Point from = index == 0 ? new Point(args.Position.X, args.Position.Y - offsetStartY) : temp;
     Point to = new Point(targets[index].Position.X, targets[index].Position.Y - offsetEndY);
     temp = to;
     RotateTransform rotateTransform = new RotateTransform() {
         CenterX = animation.Center.X,
         CenterY = animation.Center.Y,
         Angle = GlobalMethod.GetAngle(to.Y - from.Y, to.X - from.X)
     };
     ScaleTransform scaleTransform = new ScaleTransform() {
         CenterX = animation.Center.X,
         CenterY = animation.Center.Y,
         ScaleX = (GlobalMethod.GetDistance(index == 0 ? args.Position : targets[index - 1].Position, targets[index].Position) / 440), //440为其实体宽度,这里用了硬编码
         ScaleY = caster.Scale
     };
     TransformGroup transformGroup = new TransformGroup();
     transformGroup.Children.Add(scaleTransform);
     transformGroup.Children.Add(rotateTransform);
     animation.RenderTransform = transformGroup;
     animation.Position = from;
     space.AddUIElement(animation);
     EventHandler handler = null;
     animation.End += handler = delegate {
         animation.End -= handler;
         space.RemoveAnimation(animation);
         if (index == targets.Count) { targets.Clear(); }
     };
     animation.HeartStart();
 }
Beispiel #32
0
        public Sprite(FrameworkElement content)
        {
            Content = content;
            Width = (float)content.Width;
            Height = (float)content.Height;

            TranslateTransform = new TranslateTransform();
            TranslateTransform.X = 0;
            TranslateTransform.Y = 0;

            RotateTransform = new RotateTransform();
            RotateTransform.CenterX = Origin.X;
            RotateTransform.CenterY = Origin.Y;
            RotateTransform.Angle = 0;

            ScaleTransform = new ScaleTransform();
            ScaleTransform.ScaleX = 1;
            ScaleTransform.ScaleY = 1;

            _transformGroup = new TransformGroup();
            _transformGroup.Children.Add(RotateTransform);
            _transformGroup.Children.Add(TranslateTransform);
            _transformGroup.Children.Add(ScaleTransform);
            RenderTransform = _transformGroup;
        }
Beispiel #33
0
 public void expand(Image control, String direction)
 {
     DoubleAnimationUsingKeyFrames dax = new DoubleAnimationUsingKeyFrames();
     DoubleAnimationUsingKeyFrames day = new DoubleAnimationUsingKeyFrames();
     TransformGroup tg = new TransformGroup();
     switch (direction)
     {
         case ("Left"):
             dax.KeyFrames.Add(new LinearDoubleKeyFrame(-80, KeyTime.FromTimeSpan(TimeSpan.FromSeconds(2))));
             day.KeyFrames.Add(new LinearDoubleKeyFrame(0, KeyTime.FromTimeSpan(TimeSpan.FromSeconds(2))));
             control.RenderTransform = leftTrans;
             leftTrans.BeginAnimation(TranslateTransform.XProperty, dax);
             break;
         case ("Top"):
             dax.KeyFrames.Add(new LinearDoubleKeyFrame(0, KeyTime.FromTimeSpan(TimeSpan.FromSeconds(2))));
             day.KeyFrames.Add(new LinearDoubleKeyFrame(-80, KeyTime.FromTimeSpan(TimeSpan.FromSeconds(2))));
             control.RenderTransform = topTrans;
             topTrans.BeginAnimation(TranslateTransform.YProperty, day);
             break;
         case ("Right"):
             dax.KeyFrames.Add(new LinearDoubleKeyFrame(80, KeyTime.FromTimeSpan(TimeSpan.FromSeconds(2))));
             day.KeyFrames.Add(new LinearDoubleKeyFrame(0, KeyTime.FromTimeSpan(TimeSpan.FromSeconds(2))));
             control.RenderTransform = rightTrans;
             rightTrans.BeginAnimation(TranslateTransform.XProperty, dax);
             break;
         case ("Bottom"):
             dax.KeyFrames.Add(new LinearDoubleKeyFrame(0, KeyTime.FromTimeSpan(TimeSpan.FromSeconds(2))));
             day.KeyFrames.Add(new LinearDoubleKeyFrame(80, KeyTime.FromTimeSpan(TimeSpan.FromSeconds(2))));
             control.RenderTransform = bottomTrans;
             bottomTrans.BeginAnimation(TranslateTransform.YProperty, day);
             break;
     }
         //tg.Children.Add(ttx);
         //tg.Children.Add(tty);
 }
        /// <summary>
        /// Initializes a new instance of the AnimateOrientationChangesFrame class.
        /// </summary>
        public OrientationChangingFrame()
        {
            // Find existing "offset transform" and take it over (if possible) to support SIP raise/lower
            var transformGroup = new TransformGroup();
            var oldTransformGroup = RenderTransform as TransformGroup;
            if ( ( null != oldTransformGroup ) && ( 3 <= oldTransformGroup.Children.Count ) )
            {
                var offsetTransform = oldTransformGroup.Children[0] as TranslateTransform;
                if ( null != offsetTransform )
                {
                    transformGroup.Children.Add( offsetTransform );
                }
            }
            // Add custom transforms
            transformGroup.Children.Add( _rotateTransform );
            transformGroup.Children.Add( _translateTransform );
            // Replace existing transform(s)
            RenderTransform = transformGroup;

            // Set up animation
            _progressAnimation.From = 0;
            _progressAnimation.To = 1;
            Storyboard.SetTarget( _progressAnimation, this );
            Storyboard.SetTargetProperty( _progressAnimation, new PropertyPath( "Progress" ) );
            _progressStoryboard.Children.Add( _progressAnimation );

            // Initialize variables
            EasingFunction = new QuarticEase(); // Initialized here to avoid a single shared instance

            // Hook events
            SizeChanged += new SizeChangedEventHandler( HandleSizeChanged );
            OrientationChanged += new EventHandler<OrientationChangedEventArgs>( HandleOrientationChanged );
        }
        public SolverOutput(BitmapSource data, List<Solver.Colorizer> colorpalette, IEnumerable<Charge> charges)
        {
            InitializeComponent();
            _outputdata = data;
            _charges = new List<Charge>(charges);
            gridField.Background = new ImageBrush(data);

            recMapHelper.Fill = Helper.ConvertToBrush(colorpalette);

            foreach (Charge charge in _charges)
            {
                if (charge.IsActive)
                {
                    var newfPoint = new FieldPoint
                                        {
                                            Height = 6,
                                            Width = 6,
                                            HorizontalAlignment = HorizontalAlignment.Left,
                                            VerticalAlignment = VerticalAlignment.Top,
                                            Margin = new Thickness(0, 0, 0, 0),
                                            Mcharge = charge
                                        };
                    var tgroup = new TransformGroup();
                    var tt = new TranslateTransform(charge.Location.X + 14, charge.Location.Y + 14);
                    tgroup.Children.Add(tt);

                    gridField.Children.Add(newfPoint);
                    newfPoint.RenderTransform = tgroup;
                }
            }
        }
Beispiel #36
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.GridImageBackground = ((System.Windows.Controls.Image)(target));
                return;

            case 3:
                this.GridContent = ((System.Windows.Controls.Grid)(target));
                return;

            case 4:
                this.GridImages = ((System.Windows.Controls.Grid)(target));
                return;

            case 5:
                this.StatusQualityInverted = ((System.Windows.Controls.Image)(target));
                return;

            case 6:
                this.StatusQuality = ((System.Windows.Controls.Image)(target));
                return;

            case 7:
                this.StatusNoTracking = ((System.Windows.Controls.Image)(target));
                return;

            case 8:
                this.DrawingCanvas = ((System.Windows.Controls.Canvas)(target));
                return;

            case 9:
                this.EyeRight = ((System.Windows.Controls.Image)(target));
                return;

            case 10:
                this.TransformEyeRight = ((System.Windows.Media.TransformGroup)(target));
                return;

            case 11:
                this.EyeLeft = ((System.Windows.Controls.Image)(target));
                return;

            case 12:
                this.TransformEyeLeft = ((System.Windows.Media.TransformGroup)(target));
                return;

            case 13:
                this.LabelDeviceConnected = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #37
0
            public sw.UIElement CreateVisual(msc.VirtualCanvas parent)
            {
                var transform = new swm.TransformGroup();

                transform.Children.Add(new swm.TranslateTransform(-Bounds.X, -Bounds.Y));
                Visual = new EtoCanvas {
                    Child = this,
                    SnapsToDevicePixels = true,
                    RenderTransform     = transform
                };
                return(Visual);
            }
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/YueFM%20for%20Windows%20Phone%208;component/AccountItem.xaml", System.UriKind.Relative));
     this.SelectedStoryBoard           = ((System.Windows.Media.Animation.Storyboard)(this.FindName("SelectedStoryBoard")));
     this.StackPanelTransformGroup     = ((System.Windows.Media.TransformGroup)(this.FindName("StackPanelTransformGroup")));
     this.StackPanelScaleTransform     = ((System.Windows.Media.ScaleTransform)(this.FindName("StackPanelScaleTransform")));
     this.StackPanelTranslateTransform = ((System.Windows.Media.TranslateTransform)(this.FindName("StackPanelTranslateTransform")));
     this.LayoutRoot = ((System.Windows.Controls.StackPanel)(this.FindName("LayoutRoot")));
     this.textBlock  = ((System.Windows.Controls.TextBlock)(this.FindName("textBlock")));
 }
Beispiel #39
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/YueFM%20for%20Windows%20Phone%208;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot                = ((System.Windows.Controls.Canvas)(this.FindName("LayoutRoot")));
     this.ArticleInStoryboard       = ((System.Windows.Media.Animation.Storyboard)(this.FindName("ArticleInStoryboard")));
     this.ArticleOutStoryboard      = ((System.Windows.Media.Animation.Storyboard)(this.FindName("ArticleOutStoryboard")));
     this.ArticleRestoreStoryboard  = ((System.Windows.Media.Animation.Storyboard)(this.FindName("ArticleRestoreStoryboard")));
     this.ArticleTransforms         = ((System.Windows.Media.TransformGroup)(this.FindName("ArticleTransforms")));
     this.ArticleScaleTransform     = ((System.Windows.Media.ScaleTransform)(this.FindName("ArticleScaleTransform")));
     this.ArticleTranslateTransform = ((System.Windows.Media.TranslateTransform)(this.FindName("ArticleTranslateTransform")));
     this.progressBar               = ((System.Windows.Controls.ProgressBar)(this.FindName("progressBar")));
     this.ContentPanel              = ((System.Windows.Controls.StackPanel)(this.FindName("ContentPanel")));
     this.ButtonSignin              = ((Microsoft.Live.Controls.SignInButton)(this.FindName("ButtonSignin")));
     this.scroll     = ((System.Windows.Controls.ScrollViewer)(this.FindName("scroll")));
     this.content    = ((System.Windows.Controls.StackPanel)(this.FindName("content")));
     this.popup      = ((System.Windows.Controls.Primitives.Popup)(this.FindName("popup")));
     this.floatPopup = ((YueFM.Controls.FloatControl)(this.FindName("floatPopup")));
 }
Beispiel #40
0
        //------------------------------------------------------
        //
        //  Public Properties
        //
        //------------------------------------------------------

        private static void ChildrenPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            // The first change to the default value of a mutable collection property (e.g. GeometryGroup.Children)
            // will promote the property value from a default value to a local value. This is technically a sub-property
            // change because the collection was changed and not a new collection set (GeometryGroup.Children.
            // Add versus GeometryGroup.Children = myNewChildrenCollection). However, we never marshalled
            // the default value to the compositor. If the property changes from a default value, the new local value
            // needs to be marshalled to the compositor. We detect this scenario with the second condition
            // e.OldValueSource != e.NewValueSource. Specifically in this scenario the OldValueSource will be
            // Default and the NewValueSource will be Local.
            if (e.IsASubPropertyChange &&
                (e.OldValueSource == e.NewValueSource))
            {
                return;
            }


            TransformGroup target = ((TransformGroup)d);


            // If this is both non-null and mutable, we need to unhook the Changed event.
            TransformCollection oldCollection = null;
            TransformCollection newCollection = null;

            if ((e.OldValueSource != BaseValueSourceInternal.Default) || e.IsOldValueModified)
            {
                oldCollection = (TransformCollection)e.OldValue;
                if ((oldCollection != null) && !oldCollection.IsFrozen)
                {
                    oldCollection.ItemRemoved  -= target.ChildrenItemRemoved;
                    oldCollection.ItemInserted -= target.ChildrenItemInserted;
                }
            }

            // If this is both non-null and mutable, we need to hook the Changed event.
            if ((e.NewValueSource != BaseValueSourceInternal.Default) || e.IsNewValueModified)
            {
                newCollection = (TransformCollection)e.NewValue;
                if ((newCollection != null) && !newCollection.IsFrozen)
                {
                    newCollection.ItemInserted += target.ChildrenItemInserted;
                    newCollection.ItemRemoved  += target.ChildrenItemRemoved;
                }
            }
            if (oldCollection != newCollection && target.Dispatcher != null)
            {
                using (CompositionEngineLock.Acquire())
                {
                    DUCE.IResource targetResource = (DUCE.IResource)target;
                    int            channelCount   = targetResource.GetChannelCount();

                    for (int channelIndex = 0; channelIndex < channelCount; channelIndex++)
                    {
                        DUCE.Channel channel = targetResource.GetChannel(channelIndex);
                        Debug.Assert(!channel.IsOutOfBandChannel);
                        Debug.Assert(!targetResource.GetHandle(channel).IsNull);
                        // resource shouldn't be null because
                        // 1) If the field is one of our collections, we don't allow null elements
                        // 2) Codegen already made sure the collection contains DUCE.IResources
                        // ... so we'll Assert it

                        if (newCollection != null)
                        {
                            int count = newCollection.Count;
                            for (int i = 0; i < count; i++)
                            {
                                DUCE.IResource resource = newCollection.Internal_GetItem(i) as DUCE.IResource;
                                Debug.Assert(resource != null);
                                resource.AddRefOnChannel(channel);
                            }
                        }

                        if (oldCollection != null)
                        {
                            int count = oldCollection.Count;
                            for (int i = 0; i < count; i++)
                            {
                                DUCE.IResource resource = oldCollection.Internal_GetItem(i) as DUCE.IResource;
                                Debug.Assert(resource != null);
                                resource.ReleaseOnChannel(channel);
                            }
                        }
                    }
                }
            }
            target.PropertyChanged(ChildrenProperty);
        }
Beispiel #41
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Image_Group = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 2:
                this.ImageBorder = ((System.Windows.Controls.Border)(target));
                return;

            case 3:
                this.imageBox = ((System.Windows.Controls.Image)(target));

            #line 23 "..\..\MainWindow.xaml"
                this.imageBox.MouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.Zoom);

            #line default
            #line hidden

            #line 23 "..\..\MainWindow.xaml"
                this.imageBox.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.image_MouseLeftButtonDown);

            #line default
            #line hidden

            #line 23 "..\..\MainWindow.xaml"
                this.imageBox.MouseMove += new System.Windows.Input.MouseEventHandler(this.image_MouseMove);

            #line default
            #line hidden

            #line 23 "..\..\MainWindow.xaml"
                this.imageBox.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.image_MouseLeftButtonUp);

            #line default
            #line hidden
                return;

            case 4:
                this.TG = ((System.Windows.Media.TransformGroup)(target));
                return;

            case 5:
                this.Save = ((System.Windows.Controls.Button)(target));

            #line 32 "..\..\MainWindow.xaml"
                this.Save.Click += new System.Windows.RoutedEventHandler(this.Save_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.XTxt = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 7:
                this.YTxt = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 8:
                this.ValueTxt = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 9:
                this.Reset = ((System.Windows.Controls.Button)(target));

            #line 36 "..\..\MainWindow.xaml"
                this.Reset.Click += new System.Windows.RoutedEventHandler(this.Reset_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.openFileButton = ((System.Windows.Controls.Button)(target));

            #line 37 "..\..\MainWindow.xaml"
                this.openFileButton.Click += new System.Windows.RoutedEventHandler(this.openFileButton_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.groupBox1 = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 12:
                this.Median = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 13:
                this.GaussianFilter = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 14:
                this.GaussSize_Slide = ((System.Windows.Controls.Slider)(target));
                return;

            case 15:
                this.GaussSize = ((System.Windows.Controls.TextBox)(target));
                return;

            case 16:
                this.GaussSigma_Slide = ((System.Windows.Controls.Slider)(target));
                return;

            case 17:
                this.GaussSigma = ((System.Windows.Controls.TextBox)(target));
                return;

            case 18:
                this.HiPass = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 19:
                this.Erode = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 20:
                this.Invert = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 21:
                this.EdgeDetector = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 22:
                this.More = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 23:
                this.comboBox = ((System.Windows.Controls.ComboBox)(target));

            #line 56 "..\..\MainWindow.xaml"
                this.comboBox.DropDownClosed += new System.EventHandler(this.comboBox_DropDownClosed);

            #line default
            #line hidden
                return;

            case 24:
                this.Dilate = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 25:
                this.Threshold = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 26:
                this.slider = ((System.Windows.Controls.Slider)(target));
                return;

            case 27:
                this.SliderValue = ((System.Windows.Controls.TextBox)(target));
                return;

            case 28:
                this.Go = ((System.Windows.Controls.Button)(target));

            #line 71 "..\..\MainWindow.xaml"
                this.Go.Click += new System.Windows.RoutedEventHandler(this.Go_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #42
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 8 "..\..\MainWindow.xaml"
                ((ImasgeViewer_v2.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.tabs = ((System.Windows.Controls.TabControl)(target));
                return;

            case 3:
                this.mainTab = ((System.Windows.Controls.TabItem)(target));
                return;

            case 4:
                this.mainTabLB = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.txtPath = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 6:
                this.btnBrowse = ((System.Windows.Controls.Button)(target));

            #line 36 "..\..\MainWindow.xaml"
                this.btnBrowse.Click += new System.Windows.RoutedEventHandler(this.btnBrowse_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.txbnumberOfImages = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 8:
                this.viewTab = ((System.Windows.Controls.TabItem)(target));
                return;

            case 9:
                this.viewTabLB = ((System.Windows.Controls.Label)(target));
                return;

            case 10:
                this.txtImagePreview = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 11:
                this.lstB = ((System.Windows.Controls.ListView)(target));

            #line 88 "..\..\MainWindow.xaml"
                this.lstB.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.lstB_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 12:
                this.grB2 = ((System.Windows.Controls.Grid)(target));
                return;

            case 13:
                this.border = ((System.Windows.Controls.Border)(target));
                return;

            case 14:
                this.imgVe = ((System.Windows.Controls.Image)(target));

            #line 116 "..\..\MainWindow.xaml"
                this.imgVe.MouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.imgVe_MouseWheel);

            #line default
            #line hidden

            #line 117 "..\..\MainWindow.xaml"
                this.imgVe.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.imgVe_MouseLeftButtonDown);

            #line default
            #line hidden

            #line 118 "..\..\MainWindow.xaml"
                this.imgVe.MouseMove += new System.Windows.Input.MouseEventHandler(this.imgVe_MouseMove);

            #line default
            #line hidden

            #line 119 "..\..\MainWindow.xaml"
                this.imgVe.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.imgVe_MouseUp);

            #line default
            #line hidden
                return;

            case 15:
                this.grupe1 = ((System.Windows.Media.TransformGroup)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 29 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.CommandBinding_Executed);

            #line default
            #line hidden
                return;

            case 2:
                this.ToolBarRow = ((System.Windows.Controls.ToolBar)(target));

            #line 41 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                this.ToolBarRow.Loaded += new System.Windows.RoutedEventHandler(this.ToolBarRow_Loaded);

            #line default
            #line hidden
                return;

            case 3:
                this.TBBRefresh = ((System.Windows.Controls.Button)(target));

            #line 42 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                this.TBBRefresh.Click += new System.Windows.RoutedEventHandler(this.cmdRefresh_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.TBBPrint = ((System.Windows.Controls.Button)(target));

            #line 46 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                this.TBBPrint.Click += new System.Windows.RoutedEventHandler(this.cmdPrint_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.TBBPrintWithProperties = ((System.Windows.Controls.Button)(target));

            #line 49 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                this.TBBPrintWithProperties.Click += new System.Windows.RoutedEventHandler(this.TBBPrintWithProperties_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.ExportDefault = ((System.Windows.Controls.Button)(target));

            #line 58 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                this.ExportDefault.Click += new System.Windows.RoutedEventHandler(this.ExportDefault_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.ExportMenu = ((System.Windows.Controls.Menu)(target));
                return;

            case 8:

            #line 66 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItemWord_Click);

            #line default
            #line hidden
                return;

            case 9:

            #line 71 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItemExcel_Click);

            #line default
            #line hidden
                return;

            case 10:

            #line 76 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItemPNG_Click);

            #line default
            #line hidden
                return;

            case 11:

            #line 81 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ExportDefault_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.ZoomInfoStackPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 13:
                this.ZoomValueTextBloc = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 14:
                this.ZoomPopupButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 94 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                this.ZoomPopupButton.Click += new System.Windows.RoutedEventHandler(this.ZoomPopupButton_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.ActualSizeButton = ((System.Windows.Controls.Button)(target));

            #line 97 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                this.ActualSizeButton.Click += new System.Windows.RoutedEventHandler(this.ActualSizeButton_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.PagerSeparator = ((System.Windows.Controls.Separator)(target));
                return;

            case 17:
                this.FirstImage = ((System.Windows.Controls.Button)(target));

            #line 102 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                this.FirstImage.Click += new System.Windows.RoutedEventHandler(this.FirstImage_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.PreviousImage = ((System.Windows.Controls.Button)(target));

            #line 105 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                this.PreviousImage.Click += new System.Windows.RoutedEventHandler(this.PreviousImage_Click);

            #line default
            #line hidden
                return;

            case 19:
                this.PageSpinner = ((DSoft.RDLCReport.LightIntergerSpinner)(target));
                return;

            case 20:
                this.NextImage = ((System.Windows.Controls.Button)(target));

            #line 111 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                this.NextImage.Click += new System.Windows.RoutedEventHandler(this.NextImage_Click);

            #line default
            #line hidden
                return;

            case 21:
                this.LastImage = ((System.Windows.Controls.Button)(target));

            #line 114 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                this.LastImage.Click += new System.Windows.RoutedEventHandler(this.LastImage_Click);

            #line default
            #line hidden
                return;

            case 22:
                this.ZoomPopup = ((System.Windows.Controls.Primitives.Popup)(target));

            #line 120 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                this.ZoomPopup.Closed += new System.EventHandler(this.ZoomPopup_Closed);

            #line default
            #line hidden
                return;

            case 23:
                this.ZoomSlider = ((System.Windows.Controls.Slider)(target));

            #line 132 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                this.ZoomSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.ZoomSlider_ValueChanged);

            #line default
            #line hidden

            #line 134 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                this.ZoomSlider.MouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.ZoomSlider_MouseWheel);

            #line default
            #line hidden
                return;

            case 24:
                this.fixToWindowLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 25:
                this.FitToWindowButton = ((System.Windows.Controls.Button)(target));

            #line 140 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                this.FitToWindowButton.Click += new System.Windows.RoutedEventHandler(this.FitToWindowButton_Click);

            #line default
            #line hidden
                return;

            case 26:
                this.ZoomReglageLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 27:
                this.PerCent50Button = ((System.Windows.Controls.Button)(target));

            #line 149 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                this.PerCent50Button.Click += new System.Windows.RoutedEventHandler(this.PerCent50Button_Click);

            #line default
            #line hidden
                return;

            case 28:
                this.PerCent100Button = ((System.Windows.Controls.Button)(target));

            #line 155 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                this.PerCent100Button.Click += new System.Windows.RoutedEventHandler(this.PerCent100Button_Click);

            #line default
            #line hidden
                return;

            case 29:
                this.PerCent150Button = ((System.Windows.Controls.Button)(target));

            #line 161 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                this.PerCent150Button.Click += new System.Windows.RoutedEventHandler(this.PerCent150Button_Click);

            #line default
            #line hidden
                return;

            case 30:
                this.PerCent200Button = ((System.Windows.Controls.Button)(target));

            #line 167 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                this.PerCent200Button.Click += new System.Windows.RoutedEventHandler(this.PerCent200Button_Click);

            #line default
            #line hidden
                return;

            case 31:
                this.PerCent250Button = ((System.Windows.Controls.Button)(target));

            #line 173 "..\..\..\..\RDLCPrinter\MrDSoft.RDLC\RDLCReportViewer.xaml"
                this.PerCent250Button.Click += new System.Windows.RoutedEventHandler(this.PerCent250Button_Click);

            #line default
            #line hidden
                return;

            case 32:
                this.ImageScrollViewer = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 33:
                this.ImgBorber = ((System.Windows.Controls.Border)(target));
                return;

            case 34:
                this.PreviewImage = ((System.Windows.Controls.Image)(target));
                return;

            case 35:
                this.ZoomGroup = ((System.Windows.Media.TransformGroup)(target));
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #44
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.CloseMenu_BeginStoryboard = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 2:
                this.paleta_colores = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.StackPanelMenu = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 4:

            #line 98 "..\..\..\..\Interfaz\Administrador\Admin.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1);

            #line default
            #line hidden
                return;

            case 5:
                this.button = ((System.Windows.Controls.Button)(target));

            #line 101 "..\..\..\..\Interfaz\Administrador\Admin.xaml"
                this.button.Click += new System.Windows.RoutedEventHandler(this.button_Click_2);

            #line default
            #line hidden
                return;

            case 6:
                this.listViewItem = ((System.Windows.Controls.ListViewItem)(target));

            #line 119 "..\..\..\..\Interfaz\Administrador\Admin.xaml"
                this.listViewItem.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.listViewItem_PreviewMouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 7:
                this.preview = ((System.Windows.Media.TransformGroup)(target));
                return;

            case 8:
                this.listViewItem1 = ((System.Windows.Controls.ListViewItem)(target));

            #line 133 "..\..\..\..\Interfaz\Administrador\Admin.xaml"
                this.listViewItem1.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.listViewItem1_PreviewMouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 9:
                this.listViewItem2 = ((System.Windows.Controls.ListViewItem)(target));

            #line 147 "..\..\..\..\Interfaz\Administrador\Admin.xaml"
                this.listViewItem2.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.listViewItem2_PreviewMouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 10:
                this.listViewItem3 = ((System.Windows.Controls.ListViewItem)(target));

            #line 162 "..\..\..\..\Interfaz\Administrador\Admin.xaml"
                this.listViewItem3.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.listViewItem3_PreviewMouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 11:
                this.listViewItem5 = ((System.Windows.Controls.ListViewItem)(target));

            #line 177 "..\..\..\..\Interfaz\Administrador\Admin.xaml"
                this.listViewItem5.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.listViewItem5_PreviewMouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 12:
                this.listViewItem6 = ((System.Windows.Controls.ListViewItem)(target));

            #line 192 "..\..\..\..\Interfaz\Administrador\Admin.xaml"
                this.listViewItem6.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.listViewItem6_PreviewMouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 13:
                this.listViewItem7 = ((System.Windows.Controls.ListViewItem)(target));

            #line 207 "..\..\..\..\Interfaz\Administrador\Admin.xaml"
                this.listViewItem7.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.listViewItem7_PreviewMouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 14:
                this.listViewItem4 = ((System.Windows.Controls.ListViewItem)(target));

            #line 222 "..\..\..\..\Interfaz\Administrador\Admin.xaml"
                this.listViewItem4.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.listViewItem4_PreviewMouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 15:
                this.GridMain = ((System.Windows.Controls.Grid)(target));
                return;

            case 16:
                this.ButtonCloseMenu = ((System.Windows.Controls.Button)(target));

            #line 266 "..\..\..\..\Interfaz\Administrador\Admin.xaml"
                this.ButtonCloseMenu.Click += new System.Windows.RoutedEventHandler(this.ButtonCloseMenu_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.ButtonOpenMenu = ((System.Windows.Controls.Button)(target));

            #line 269 "..\..\..\..\Interfaz\Administrador\Admin.xaml"
                this.ButtonOpenMenu.Click += new System.Windows.RoutedEventHandler(this.ButtonOpenMenu_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.Main = ((System.Windows.Controls.Frame)(target));
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #45
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 11 "..\..\MainWindow.xaml"
                ((practicingLabels.MainWindow)(target)).PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.Window_PreviewKeyDown);

            #line default
            #line hidden

            #line 12 "..\..\MainWindow.xaml"
                ((practicingLabels.MainWindow)(target)).KeyUp += new System.Windows.Input.KeyEventHandler(this.Window_KeyUp);

            #line default
            #line hidden
                return;

            case 2:

            #line 3006 "..\..\MainWindow.xaml"
                ((System.Windows.Media.Animation.ObjectAnimationUsingKeyFrames)(target)).Completed += new System.EventHandler(this.chunWalkf_Completed);

            #line default
            #line hidden
                return;

            case 3:

            #line 3182 "..\..\MainWindow.xaml"
                ((System.Windows.Media.Animation.ObjectAnimationUsingKeyFrames)(target)).Completed += new System.EventHandler(this.chunTaunt_Completed);

            #line default
            #line hidden
                return;

            case 4:

            #line 3326 "..\..\MainWindow.xaml"
                ((System.Windows.Media.Animation.ObjectAnimationUsingKeyFrames)(target)).Completed += new System.EventHandler(this.chunMK_Completed);

            #line default
            #line hidden
                return;

            case 5:

            #line 3420 "..\..\MainWindow.xaml"
                ((System.Windows.Media.Animation.ObjectAnimationUsingKeyFrames)(target)).Completed += new System.EventHandler(this.chunMK_Completed);

            #line default
            #line hidden
                return;

            case 6:
                this.qcf_BeginStoryboard = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 7:
                this.pushButton1_BeginStoryboard = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 8:
                this.pushButton2_BeginStoryboard = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 9:
                this.pressButton3_BeginStoryboard = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 10:
                this.pressButton4_BeginStoryboard = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 11:
                this.pressButton5_BeginStoryboard = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 12:
                this.pressButton6_BeginStoryboard = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 13:
                this.canvas = ((System.Windows.Controls.Canvas)(target));
                return;

            case 14:
                this.VisualStateGroup = ((System.Windows.VisualStateGroup)(target));
                return;

            case 15:
                this.up = ((System.Windows.VisualState)(target));
                return;

            case 16:
                this.pressed = ((System.Windows.VisualState)(target));
                return;

            case 17:
                this.polygon = ((System.Windows.Shapes.Polygon)(target));
                return;

            case 18:
                this.joystick = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 19:
                this.button1 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 20:
                this.button2 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 21:
                this.button3 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 22:
                this.button4 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 23:
                this.button5 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 24:
                this.button6 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 25:
                this.inputs = ((System.Windows.Controls.TextBlock)(target));

            #line 3663 "..\..\MainWindow.xaml"
                this.inputs.Loaded += new System.Windows.RoutedEventHandler(this.inputs_Loaded);

            #line default
            #line hidden
                return;

            case 26:
                this.image = ((System.Windows.Controls.Image)(target));
                return;

            case 27:
                this.transformGroup = ((System.Windows.Media.TransformGroup)(target));
                return;

            case 28:
                this.chun = ((System.Windows.Controls.Image)(target));
                return;

            case 29:
                this.move = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 30:
                this.W = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 31:
                this.A = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 32:
                this.D = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 33:
                this.S = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 34:
                this.U = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 35:
                this.I = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 36:
                this.O = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 37:
                this.L = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 38:
                this.K = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 39:
                this.J = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 40:
                this.instructions = ((System.Windows.Controls.TextBlock)(target));

            #line 3707 "..\..\MainWindow.xaml"
                this.instructions.Loaded += new System.Windows.RoutedEventHandler(this.instructions_Loaded);

            #line default
            #line hidden
                return;

            case 41:
                this.perfect = ((System.Windows.Controls.Button)(target));

            #line 3708 "..\..\MainWindow.xaml"
                this.perfect.Click += new System.Windows.RoutedEventHandler(this.perfect_Click);

            #line default
            #line hidden
                return;

            case 42:
                this.guideButton = ((System.Windows.Controls.Button)(target));

            #line 3709 "..\..\MainWindow.xaml"
                this.guideButton.Click += new System.Windows.RoutedEventHandler(this.guideButton_Click);

            #line default
            #line hidden
                return;

            case 43:
                this.inputMode = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 44:
                this.moveName = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 5 "..\..\..\MainWindow.xaml"
                ((magnifier.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.RootImgGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.imgViewBox = ((System.Windows.Controls.Viewbox)(target));
                return;

            case 4:
                this.imgCanvas = ((System.Windows.Controls.Canvas)(target));
                return;

            case 5:
                this.imgObj = ((System.Windows.Controls.Image)(target));

            #line 12 "..\..\..\MainWindow.xaml"
                this.imgObj.MouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.img_MouseWheel);

            #line default
            #line hidden

            #line 12 "..\..\..\MainWindow.xaml"
                this.imgObj.MouseMove += new System.Windows.Input.MouseEventHandler(this.Img_MouseMove);

            #line default
            #line hidden

            #line 12 "..\..\..\MainWindow.xaml"
                this.imgObj.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Img_MouseDown);

            #line default
            #line hidden

            #line 12 "..\..\..\MainWindow.xaml"
                this.imgObj.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.Img_MouseUp);

            #line default
            #line hidden
                return;

            case 6:
                this.imgTransformGroup = ((System.Windows.Media.TransformGroup)(target));
                return;

            case 7:
                this.imgScaleTransform = ((System.Windows.Media.ScaleTransform)(target));
                return;

            case 8:
                this.imgTranslateTransform = ((System.Windows.Media.TranslateTransform)(target));
                return;

            case 9:
                this.imgRotateTransform = ((System.Windows.Media.RotateTransform)(target));
                return;

            case 10:
                this.imgViewBoxMagnifier = ((System.Windows.Controls.Viewbox)(target));
                return;

            case 11:
                this.imgCanvasMagnifier = ((System.Windows.Controls.Canvas)(target));
                return;

            case 12:
                this.imgMagnifier = ((System.Windows.Controls.Image)(target));
                return;

            case 13:
                this.imgMagnifierTransformGroup = ((System.Windows.Media.TransformGroup)(target));
                return;

            case 14:
                this.imgMagnifierScaleTransform = ((System.Windows.Media.ScaleTransform)(target));
                return;

            case 15:
                this.imgMagnifierTranslateTransform = ((System.Windows.Media.TranslateTransform)(target));
                return;

            case 16:
                this.imgMagnifierRotateTransform = ((System.Windows.Media.RotateTransform)(target));
                return;

            case 17:
                this.sldZoom = ((System.Windows.Controls.Slider)(target));

            #line 56 "..\..\..\MainWindow.xaml"
                this.sldZoom.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Slider_ValueChanged);

            #line default
            #line hidden
                return;

            case 18:
                this.btnZoomIn = ((System.Windows.Controls.Button)(target));

            #line 57 "..\..\..\MainWindow.xaml"
                this.btnZoomIn.Click += new System.Windows.RoutedEventHandler(this.btnZoomIn_Click);

            #line default
            #line hidden
                return;

            case 19:
                this.btnZoomOut = ((System.Windows.Controls.Button)(target));

            #line 58 "..\..\..\MainWindow.xaml"
                this.btnZoomOut.Click += new System.Windows.RoutedEventHandler(this.btnZoomOut_Click);

            #line default
            #line hidden
                return;

            case 20:
                this.btnRotate = ((System.Windows.Controls.Button)(target));

            #line 59 "..\..\..\MainWindow.xaml"
                this.btnRotate.Click += new System.Windows.RoutedEventHandler(this.btnRotate_Click);

            #line default
            #line hidden
                return;

            case 21:
                this.btnFTW = ((System.Windows.Controls.Button)(target));

            #line 60 "..\..\..\MainWindow.xaml"
                this.btnFTW.Click += new System.Windows.RoutedEventHandler(this.btnFTW_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #47
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.CloseMenu_BeginStoryboard = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 2:
                this.StackPanelMenu = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 3:
                this.button = ((System.Windows.Controls.Button)(target));
                return;

            case 4:
                this.listViewItem = ((System.Windows.Controls.ListViewItem)(target));

            #line 119 "..\..\..\..\Interfaz\Recepcionista\Recep.xaml"
                this.listViewItem.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.listViewItem_PreviewMouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 5:
                this.preview = ((System.Windows.Media.TransformGroup)(target));
                return;

            case 6:
                this.listViewItem1 = ((System.Windows.Controls.ListViewItem)(target));

            #line 133 "..\..\..\..\Interfaz\Recepcionista\Recep.xaml"
                this.listViewItem1.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.listViewItem1_PreviewMouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 7:
                this.listViewItem2 = ((System.Windows.Controls.ListViewItem)(target));

            #line 147 "..\..\..\..\Interfaz\Recepcionista\Recep.xaml"
                this.listViewItem2.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.listViewItem2_PreviewMouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 8:
                this.listViewItem3 = ((System.Windows.Controls.ListViewItem)(target));

            #line 157 "..\..\..\..\Interfaz\Recepcionista\Recep.xaml"
                this.listViewItem3.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.listViewItem3_PreviewMouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 9:
                this.listViewItem4 = ((System.Windows.Controls.ListViewItem)(target));
                return;

            case 10:
                this.GridMain = ((System.Windows.Controls.Grid)(target));
                return;

            case 11:
                this.ButtonCloseMenu = ((System.Windows.Controls.Button)(target));

            #line 209 "..\..\..\..\Interfaz\Recepcionista\Recep.xaml"
                this.ButtonCloseMenu.Click += new System.Windows.RoutedEventHandler(this.ButtonCloseMenu_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.ButtonOpenMenu = ((System.Windows.Controls.Button)(target));

            #line 212 "..\..\..\..\Interfaz\Recepcionista\Recep.xaml"
                this.ButtonOpenMenu.Click += new System.Windows.RoutedEventHandler(this.ButtonOpenMenu_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.Main3 = ((System.Windows.Controls.Frame)(target));
                return;

            case 14:
                this.ButtonClose = ((System.Windows.Controls.Button)(target));

            #line 269 "..\..\..\..\Interfaz\Recepcionista\Recep.xaml"
                this.ButtonClose.Click += new System.Windows.RoutedEventHandler(this.ButtonClose_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #48
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 8 "..\..\..\Form\Item_wnd.xaml"
                ((Anything_wpf_main_.Form.Item_wnd)(target)).StateChanged += new System.EventHandler(this.Window_StateChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.Bdr = ((System.Windows.Controls.Border)(target));
                return;

            case 3:
                this.tg = ((System.Windows.Media.TransformGroup)(target));
                return;

            case 4:
                this.scb = ((System.Windows.Media.SolidColorBrush)(target));
                return;

            case 5:
                this.dock = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 6:
                this.Img = ((System.Windows.Controls.Image)(target));
                return;

            case 7:

            #line 45 "..\..\..\Form\Item_wnd.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.OpenMenuItem_Click);

            #line default
            #line hidden
                return;

            case 8:

            #line 46 "..\..\..\Form\Item_wnd.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.AdminOpenMenuItem_Click);

            #line default
            #line hidden
                return;

            case 9:

            #line 47 "..\..\..\Form\Item_wnd.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.DeleteMenuItem_Click);

            #line default
            #line hidden
                return;

            case 10:

            #line 48 "..\..\..\Form\Item_wnd.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.LocationMenuItem_Click);

            #line default
            #line hidden
                return;

            case 11:

            #line 49 "..\..\..\Form\Item_wnd.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.CreateShortcutMenuItem_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.CanvasX = ((System.Windows.Controls.Canvas)(target));
                return;

            case 13:
                this.Txt = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 14:

            #line 72 "..\..\..\Form\Item_wnd.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ReNameMenuItem_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.TxtWrite = ((System.Windows.Controls.TextBox)(target));

            #line 86 "..\..\..\Form\Item_wnd.xaml"
                this.TxtWrite.LostFocus += new System.Windows.RoutedEventHandler(this.TxtWrite_LostFocus);

            #line default
            #line hidden

            #line 86 "..\..\..\Form\Item_wnd.xaml"
                this.TxtWrite.KeyUp += new System.Windows.Input.KeyEventHandler(this.TxtWrite_KeyUp);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 5 "..\..\MainWindow.xaml"
                ((PhotoImpression.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.onLoad);

            #line default
            #line hidden

            #line 5 "..\..\MainWindow.xaml"
                ((PhotoImpression.MainWindow)(target)).SizeChanged += new System.Windows.SizeChangedEventHandler(this.Window_SizeChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.parentGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.mainMenu = ((System.Windows.Controls.Menu)(target));

            #line 8 "..\..\MainWindow.xaml"
                this.mainMenu.Loaded += new System.Windows.RoutedEventHandler(this.mainMenu_Loaded);

            #line default
            #line hidden
                return;

            case 4:
                this.browserIcon = ((System.Windows.Controls.Image)(target));
                return;

            case 5:
                this.exitIcon = ((System.Windows.Controls.Image)(target));
                return;

            case 6:
                this.imageContainer = ((System.Windows.Controls.Image)(target));

            #line 23 "..\..\MainWindow.xaml"
                this.imageContainer.MouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.imageContainer_MouseWheel);

            #line default
            #line hidden

            #line 23 "..\..\MainWindow.xaml"
                this.imageContainer.MouseMove += new System.Windows.Input.MouseEventHandler(this.imageContainer_MouseMove);

            #line default
            #line hidden

            #line 23 "..\..\MainWindow.xaml"
                this.imageContainer.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.imageContainer_MouseLeftButtonDown);

            #line default
            #line hidden

            #line 23 "..\..\MainWindow.xaml"
                this.imageContainer.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.imageContainer_MouseLeftButtonUp);

            #line default
            #line hidden
                return;

            case 7:
                this.imageTransformGroup = ((System.Windows.Media.TransformGroup)(target));
                return;

            case 8:
                this.autoRun = ((System.Windows.Controls.Button)(target));

            #line 35 "..\..\MainWindow.xaml"
                this.autoRun.Click += new System.Windows.RoutedEventHandler(this.autoRun_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.autoRunIcon = ((System.Windows.Controls.Image)(target));
                return;

            case 10:
                this.nextButton = ((System.Windows.Controls.Button)(target));

            #line 38 "..\..\MainWindow.xaml"
                this.nextButton.Click += new System.Windows.RoutedEventHandler(this.nextButton_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.nextButtonIcon = ((System.Windows.Controls.Image)(target));
                return;

            case 12:
                this.background = ((System.Windows.Controls.Button)(target));

            #line 42 "..\..\MainWindow.xaml"
                this.background.Click += new System.Windows.RoutedEventHandler(this.backgroundButton_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.wallPaperButtonIcon = ((System.Windows.Controls.Image)(target));
                return;

            case 14:
                this.previous = ((System.Windows.Controls.Button)(target));

            #line 45 "..\..\MainWindow.xaml"
                this.previous.Click += new System.Windows.RoutedEventHandler(this.previousButton_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.previousButtonIcon = ((System.Windows.Controls.Image)(target));
                return;

            case 16:
                this.rightRotate = ((System.Windows.Controls.Button)(target));

            #line 48 "..\..\MainWindow.xaml"
                this.rightRotate.Click += new System.Windows.RoutedEventHandler(this.rightRotate_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.rightRotateIcon = ((System.Windows.Controls.Image)(target));
                return;

            case 18:
                this.leftRotate = ((System.Windows.Controls.Button)(target));

            #line 51 "..\..\MainWindow.xaml"
                this.leftRotate.Click += new System.Windows.RoutedEventHandler(this.leftRotate_Click);

            #line default
            #line hidden
                return;

            case 19:
                this.leftRotateIcon = ((System.Windows.Controls.Image)(target));
                return;
            }
            this._contentLoaded = true;
        }