Example #1
0
        public override void OnApplyTemplate() {
            base.OnApplyTemplate();

            if (_thumb != null) {
                _thumb.DragDelta -= Thumb_DragDelta;
                _thumb.DragStarted -= Thumb_DragStarted;
                _thumb.DragCompleted -= Thumb_DragCompleted;
            }

            if (_wrapper != null) {
                _wrapper.MouseWheel -= Wrapper_MouseWheel;
            }

            _thumb = GetTemplateChild(@"PART_Thumb") as Thumb;
            _wrapper = GetTemplateChild(@"PART_Wrapper") as FrameworkElement;

            if (_thumb != null) {
                _thumb.DragDelta += Thumb_DragDelta;
                _thumb.DragStarted += Thumb_DragStarted;
                _thumb.DragCompleted += Thumb_DragCompleted;
            }

            if (_wrapper != null) {
                _wrapper.MouseWheel += Wrapper_MouseWheel;
            }
        }
Example #2
0
        public ZoomSliderControl(BIT.AVL.Silver.Map.Map map)
        {
            _Map = map;
            DefaultStyleKey = typeof(ZoomSliderControl);

            if(HtmlPage.IsEnabled)
            {
                _Thumb = new Thumb();
                _Slider = this;

                // Slider Events
                _Slider.GotFocus += Slider_GotFocus;
                _Slider.LostFocus += Slider_LostFocus;
                _Slider.ValueChanged += ZoomControl_ValueChanged;

                // Map Events
                _Map.Events.MapMouseEnter += Events_MapMouseEnter;
                _Map.Events.MapMouseLeave += Events_MapMouseLeave;
                _Map.Events.MapZoomStarted += Events_MapZoomStarted;
                _Map.Events.MapZoomEnded += Events_MapZoomEnded;
                _Map.Events.MapZoomChanged += Events_MapZoomChanged;
                _Map.Events.MapMouseWheel += Events_MapMouseWheel;
                _Map.Events.MapDoubleClick += Events_MapDoubleClick;
                _Map.Events.MapTileSourceChanged += Events_MapTileSourceChanged;

                SetTileSourceZoomLevels();
                _UpdateSlider = true;
            }
        }
Example #3
0
        public override void OnApplyTemplate() {

            dragThumb = (Thumb) Template.FindName("PART_DragThumb", this);
            dragThumb.DragDelta += DragThumbOnDragDelta;

            base.OnApplyTemplate();
        }
Example #4
0
        /// <internalonly />
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            _horizontalThumb = GetTemplateChild("HorizontalThumb") as Thumb;
            _verticalThumb = GetTemplateChild("VerticalThumb") as Thumb;

            FrameworkElement leftTracker = GetTemplateChild("LeftTrack") as FrameworkElement;
            FrameworkElement rightTracker = GetTemplateChild("RightTrack") as FrameworkElement;
            if (leftTracker != null) {
                leftTracker.MouseLeftButtonDown += OnHorizontalTrackerMouseDown;
            }
            if (rightTracker != null) {
                rightTracker.MouseLeftButtonDown += OnHorizontalTrackerMouseDown;
            }

            FrameworkElement topTracker = GetTemplateChild("TopTrack") as FrameworkElement;
            FrameworkElement bottomTracker = GetTemplateChild("BottomTrack") as FrameworkElement;
            if (topTracker != null) {
                topTracker.MouseLeftButtonDown += OnVerticalTrackerMouseDown;
            }
            if (bottomTracker != null) {
                bottomTracker.MouseLeftButtonDown += OnVerticalTrackerMouseDown;
            }
        }
Example #5
0
		public void DefaultMethods ()
		{
			Thumb t = new Thumb ();
			t.CancelDrag ();
			t.OnApplyTemplate ();
			ControlTest.CheckDefaultMethods (t);
		}
Example #6
0
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            if (this.ScrollViewer == null)
                return;

            this.designerCanvas = this.ScrollViewer.Content as DesignerCanvas;
            if (this.designerCanvas == null)
                throw new Exception("DesignerCanvas must not be null!");

            this.zoomThumb = Template.FindName("PART_ZoomThumb", this) as Thumb;
            if (this.zoomThumb == null)
                throw new Exception("PART_ZoomThumb template is missing!");

            this.zoomCanvas = Template.FindName("PART_ZoomCanvas", this) as Canvas;
            if (this.zoomCanvas == null)
                throw new Exception("PART_ZoomCanvas template is missing!");

            this.zoomSlider = Template.FindName("PART_ZoomSlider", this) as Slider;
            if (this.zoomSlider == null)
                throw new Exception("PART_ZoomSlider template is missing!");

            this.designerCanvas.LayoutUpdated += new EventHandler(this.DesignerCanvas_LayoutUpdated);

            this.zoomThumb.DragDelta += new DragDeltaEventHandler(this.Thumb_DragDelta);

            this.zoomSlider.ValueChanged += new RoutedPropertyChangedEventHandler<double>(this.ZoomSlider_ValueChanged);

            this.scaleTransform = new ScaleTransform();
            this.designerCanvas.LayoutTransform = this.scaleTransform;
        }
Example #7
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.slider = ((Panuon.UI.PUSlider)(target));

            #line 10 "..\..\..\A1_SlideBar\PUSlider.xaml"
                this.slider.SizeChanged += new System.Windows.SizeChangedEventHandler(this.slider_SizeChanged);

            #line default
            #line hidden
                return;

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

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

            case 4:
                this.tmbToggle = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 23 "..\..\..\A1_SlideBar\PUSlider.xaml"
                this.tmbToggle.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.Thumb_DragDelta);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Example #8
0
		public override void OnApplyTemplate() {
			base.OnApplyTemplate();
			_mThumb = GetTemplateChild("PART_Thumb") as Thumb;
			if (_mThumb == null) return;
			UpdateThumbPosition();
			_mThumb.RenderTransform = _mThumbTransform;
		}
Example #9
0
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            Thumb left = GetTemplateChild("PART_LeftResizer") as Thumb;
            if (left != null)
            {
                PART_LeftResizer = left;
                PART_LeftResizer.DragDelta += Resizer_DragDelta;
                //PART_LeftResizer.MouseDown += (s,e) => Kernel.RunMxs("disableSceneRedraw()");
                //PART_LeftResizer.MouseUp += (s, e) => Kernel.RunMxs("enableSceneRedraw()");
                PART_LeftResizer.MouseUp += (s, e) => Width = PART_ResizeIndicator.ActualWidth;
            }

            Thumb right = GetTemplateChild("PART_RightResizer") as Thumb;
            if (right != null)
            {
                PART_RightResizer = right;
                PART_RightResizer.DragDelta += Resizer_DragDelta;
                PART_RightResizer.MouseUp += (s, e) => Width = PART_ResizeIndicator.ActualWidth;
            }

            Rectangle rect = GetTemplateChild("PART_ResizeIndicator") as Rectangle;
            if (rect != null)
            {
                PART_ResizeIndicator = rect;
            }
        }
Example #10
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 14 "..\..\..\..\OtherWindows\MainMenu.xaml"
                ((System.Windows.Controls.Grid)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Grid_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 2:
                this.CloseMainMenu = ((DesktopClock.Custom.CustomButton)(target));
                return;

            case 3:
                this.SizeThumbScope = ((System.Windows.Shapes.Path)(target));
                return;

            case 4:
                this.SizeThumb = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 27 "..\..\..\..\OtherWindows\MainMenu.xaml"
                this.SizeThumb.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.SizeThumb_DragDelta);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Example #11
0
        public ResizingAdorner(UIElement adornedElement)
            : base(adornedElement)
        {
            IsClipEnabled = true;
            ClipToBounds = true;

            visualChildren = new VisualCollection(this);

            topLeft = CreateAdornerCorner(Cursors.SizeNWSE);

            topRight = CreateAdornerCorner(Cursors.SizeNESW);
            bottomLeft = CreateAdornerCorner(Cursors.SizeNESW);
            bottomRight = CreateAdornerCorner(Cursors.SizeNWSE);

            left = CreateAdornerCorner(Cursors.SizeWE);
            right = CreateAdornerCorner(Cursors.SizeWE);
            top = CreateAdornerCorner(Cursors.SizeNS);
            bottom = CreateAdornerCorner(Cursors.SizeNS);

            bottomLeft.DragDelta += HandleDrag;
            bottomRight.DragDelta += HandleDrag;
            topLeft.DragDelta += HandleDrag;
            topRight.DragDelta += HandleDrag;

            left.DragDelta += HandleDrag;
            right.DragDelta += HandleDrag;
            top.DragDelta += HandleDrag;
            bottom.DragDelta += HandleDrag;
        }
        /// <summary>
        ///     Creates an arrow (line and head) and connects two Thumbs in the given canvas
        /// </summary>
        /// <param name="canvas"></param>
        /// <param name="startElement"></param>
        /// <param name="destinationElement"></param>
        /// <param name="headWidth"></param>
        /// <param name="headHeight"></param>
        /// <author>Krystian Zielonka,Thomas Meents</author>
        protected void ConnectByArrow(Canvas canvas, Thumb startElement, Thumb destinationElement, int headWidth = 10,
            int headHeight = 4)
        {
            // Create the arrow
            Arrow arrow = new Arrow(startElement, destinationElement)
            {
                HeadWidth = headWidth,
                HeadHeight = headHeight,
                Stroke = Settings.Default.DefaultStrokeColor,
                StrokeThickness = Settings.Default.DefaultStrokeThickness
            };

            Binding x1 = new Binding();
            Binding x2 = new Binding();
            Binding y1 = new Binding();
            Binding y2 = new Binding();
            x1.Path = new PropertyPath(Canvas.LeftProperty);
            x2.Path = new PropertyPath(Canvas.LeftProperty);
            y1.Path = new PropertyPath(Canvas.TopProperty);
            y2.Path = new PropertyPath(Canvas.TopProperty);
            x1.Source = startElement;
            y1.Source = startElement;
            x2.Source = destinationElement;
            y2.Source = destinationElement;
            arrow.SetBinding(Arrow.X1Property, x1);
            arrow.SetBinding(Arrow.Y1Property, y1);
            arrow.SetBinding(Arrow.X2Property, x2);
            arrow.SetBinding(Arrow.Y2Property, y2);

            // Add the arrow to the canvas
            canvas.Children.Add(arrow);
        }
Example #13
0
        private Thumb BuildAdornerCorner(Cursor cursor, DragDeltaEventHandler dragHandler)
        {
            var thumb = new Thumb();

            // TODO: this thumb should be styled to look like a dotted triangle, 
            // similar to the one you can see on the bottom right corner of 
            // Internet Explorer window
            thumb.Cursor = cursor;
            thumb.Height = thumb.Width = 10;
            thumb.Opacity = 0.40;
            thumb.Background = new SolidColorBrush(Colors.MediumBlue);
            thumb.DragDelta += dragHandler;
            thumb.DragStarted += (s, e) =>
            {
                var handler = ResizeStarted;
                if (handler != null)
                {
                    handler(this, e);
                }
            };
            thumb.DragCompleted += (s, e) =>
            {
                var handler = ResizeCompleted;
                if (handler != null)
                {
                    handler(this, e);
                }
            };
            _visualChildren.Add(thumb);
            return thumb;
        }
Example #14
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 11 "..\..\dlgMain.xaml"
                ((onSoft.dlgMain)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 2:
                this.closeButton = ((System.Windows.Controls.Button)(target));

            #line 26 "..\..\dlgMain.xaml"
                this.closeButton.Click += new System.Windows.RoutedEventHandler(this.CloseButtonRectangle_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.resizeThumb = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 67 "..\..\dlgMain.xaml"
                this.resizeThumb.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.ResizeThumb_DragDelta);

            #line default
            #line hidden
                return;

            case 4:
                this.dfsInput = ((System.Windows.Controls.TextBox)(target));

            #line 103 "..\..\dlgMain.xaml"
                this.dfsInput.LostFocus += new System.Windows.RoutedEventHandler(this.DfsInput_OnLostFocus);

            #line default
            #line hidden
                return;

            case 5:
                this.lstResult = ((System.Windows.Controls.ListBox)(target));
                return;

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

            #line 111 "..\..\dlgMain.xaml"
                this.btnShowFormattedFile.Click += new System.Windows.RoutedEventHandler(this.BtnShowFormattedFile_OnClick);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
		public RotateThumbExtension()
		{
			adornerPanel = new AdornerPanel();
			adornerPanel.Order = AdornerOrder.Foreground;
			this.Adorners.Add(adornerPanel);
			
			thumb = CreateRotateThumb();
		}
Example #16
0
		public override void OnApplyTemplate()
		{
			thumb = GetTemplateChild("PART_Thumb") as Thumb;

			thumb.DragDelta += new DragDeltaEventHandler(thumb_DragDelta);

			base.OnApplyTemplate();
		}
        private void CompleteSinkMove(Thumb thumb, DragCompletedEventArgs e)
        {
            var sink = thumb.DataContext as SinkViewModel;
            if (sink == null)
                return;

            sink.UpdateSinkPosition();
        }
Example #18
0
 void BuildResizeThumb(Style thumbStyle)
 {
     if (_cornerThumb == null)
     {
         _cornerThumb = new Thumb { Style = thumbStyle };
         _visualChildren.Add(_cornerThumb);
     }
 }
        private void CompleteNodeMove(Thumb thumb, DragCompletedEventArgs e)
        {
            var node = thumb.DataContext as NodeElementViewModel;
            if (node == null)
                return;

            node.UpdateNodePosition();
        }
Example #20
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.conditionGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.grabThumb = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 13 "..\..\..\Condition\Node.xaml"
                this.grabThumb.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.Move);

            #line default
            #line hidden

            #line 14 "..\..\..\Condition\Node.xaml"
                this.grabThumb.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.grabThumb_MouseLeftButtonDown);

            #line default
            #line hidden

            #line 14 "..\..\..\Condition\Node.xaml"
                this.grabThumb.PreviewMouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.grabThumb_MouseLeftButtonUp);

            #line default
            #line hidden
                return;

            case 3:
                this.resizeThumb = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 21 "..\..\..\Condition\Node.xaml"
                this.resizeThumb.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.Resize);

            #line default
            #line hidden
                return;

            case 4:
                this.conditionList = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 5:
                this.conditionBranches = ((System.Windows.Controls.Grid)(target));
                return;

            case 6:
                this.trueLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.falseLabel = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
Example #21
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:

            #line 46 "..\..\..\..\UserControls\DateRangeSlider\DateRangeSlider.xaml"
                ((System.Windows.Controls.Primitives.Thumb)(target)).DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.CentreThumb_DragDelta);

            #line default
            #line hidden

            #line 46 "..\..\..\..\UserControls\DateRangeSlider\DateRangeSlider.xaml"
                ((System.Windows.Controls.Primitives.Thumb)(target)).DragCompleted += new System.Windows.Controls.Primitives.DragCompletedEventHandler(this.Thumb_DragCompleted);

            #line default
            #line hidden
                return;

            case 3:
                this.LeftThumb = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 55 "..\..\..\..\UserControls\DateRangeSlider\DateRangeSlider.xaml"
                this.LeftThumb.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.LeftThumb_DragDelta);

            #line default
            #line hidden

            #line 55 "..\..\..\..\UserControls\DateRangeSlider\DateRangeSlider.xaml"
                this.LeftThumb.DragCompleted += new System.Windows.Controls.Primitives.DragCompletedEventHandler(this.Thumb_DragCompleted);

            #line default
            #line hidden
                return;

            case 4:
                this.RightThumb = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 65 "..\..\..\..\UserControls\DateRangeSlider\DateRangeSlider.xaml"
                this.RightThumb.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.RightThumb_DragDelta);

            #line default
            #line hidden

            #line 66 "..\..\..\..\UserControls\DateRangeSlider\DateRangeSlider.xaml"
                this.RightThumb.DragCompleted += new System.Windows.Controls.Primitives.DragCompletedEventHandler(this.Thumb_DragCompleted);

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

            #line 28 "..\..\..\..\Views\Controls\ClipRect.xaml"
                ((System.Windows.Controls.Canvas)(target)).AddHandler(System.Windows.Controls.Primitives.Thumb.DragDeltaEvent, new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.Thumb_DragDelta));

            #line default
            #line hidden

            #line 28 "..\..\..\..\Views\Controls\ClipRect.xaml"
                ((System.Windows.Controls.Canvas)(target)).AddHandler(System.Windows.Controls.Primitives.Thumb.DragCompletedEvent, new System.Windows.Controls.Primitives.DragCompletedEventHandler(this.Thumb_DragCompleted));

            #line default
            #line hidden
                return;

            case 2:
                this.thumb0 = ((System.Windows.Controls.Primitives.Thumb)(target));
                return;

            case 3:
                this.thumb1 = ((System.Windows.Controls.Primitives.Thumb)(target));
                return;

            case 4:
                this.thumb2 = ((System.Windows.Controls.Primitives.Thumb)(target));
                return;

            case 5:
                this.thumb3 = ((System.Windows.Controls.Primitives.Thumb)(target));
                return;

            case 6:
                this.thumb4 = ((System.Windows.Controls.Primitives.Thumb)(target));
                return;

            case 7:
                this.thumb5 = ((System.Windows.Controls.Primitives.Thumb)(target));
                return;

            case 8:
                this.thumb6 = ((System.Windows.Controls.Primitives.Thumb)(target));
                return;

            case 9:
                this.thumb7 = ((System.Windows.Controls.Primitives.Thumb)(target));
                return;

            case 10:
                this.thumb8 = ((System.Windows.Controls.Primitives.Thumb)(target));
                return;
            }
            this._contentLoaded = true;
        }
Example #23
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.gridLayout = ((System.Windows.Controls.Grid)(target));

            #line 15 "..\..\..\..\Views\ChildWindows\ImageScanWindow.xaml"
                this.gridLayout.AddHandler(System.Windows.Controls.Primitives.ButtonBase.ClickEvent, new System.Windows.RoutedEventHandler(this.Grid_Click));

            #line default
            #line hidden
                return;

            case 2:
                this.btnMin = ((System.Windows.Controls.Button)(target));
                return;

            case 3:
                this.btnMax = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

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

            case 5:
                this.gridView = ((System.Windows.Controls.Grid)(target));
                return;

            case 6:
                this.gridScan = ((System.Windows.Controls.Grid)(target));
                return;

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

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

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

            case 10:
                this.img = ((IM.Emoje.Controls.GifImage)(target));
                return;

            case 11:
                this.thumb = ((System.Windows.Controls.Primitives.Thumb)(target));
                return;
            }
            this._contentLoaded = true;
        }
 public ModelOperationAdorner(ModelItem adorned)
     : base(adorned)
 {
     collection = new VisualCollection(this);
     collection.Add(tl = GetResizeThumb("LT"));
     collection.Add(tr = GetResizeThumb("RT"));
     collection.Add(bl = GetResizeThumb("LB"));
     collection.Add(br = GetResizeThumb("RB"));
     collection.Add(handler = GetMoveThumb());
 }
Example #25
0
		public void ReadOnlyProperties ()
		{
			Thumb t = new Thumb ();
			Assert.Throws<InvalidOperationException> (delegate {
				t.SetValue (Thumb.IsDraggingProperty, true);
			}, "IsDraggingProperty");
			Assert.Throws<InvalidOperationException> (delegate {
				t.SetValue (Thumb.IsFocusedProperty, true);
			}, "IsFocusedProperty");
		}
 private void GetTemplateChildren()
 {
     _horizontalPanel = GetTemplateChild(TimelineTemplateParts.HorizontalTemplate) as Panel;
     _horizontalThumb = GetTemplateChild(TimelineTemplateParts.HorizontalThumb) as Thumb;
     _horizontalAvailableBar = GetTemplateChild(TimelineTemplateParts.HorizontalAvailableBar) as Border;
     _largeChangeIncreaseButton =
         GetTemplateChild(TimelineTemplateParts.HorizontalTrackLargeChangeDecreaseRepeatButton) as RepeatButton;
     _largeChangeDecreaseButton =
         GetTemplateChild(TimelineTemplateParts.HorizontalTrackLargeChangeIncreaseRepeatButton) as RepeatButton;
 }
Example #27
0
 public override void OnApplyTemplate()
 {
     base.OnApplyTemplate();
     this.m_thumb = base.GetTemplateChild("PART_Thumb") as Thumb;
     if (this.m_thumb != null)
     {
         this.UpdateThumbPosition();
         this.m_thumb.RenderTransform = this.m_thumbTransform;
     }
 }
Example #28
0
 public MyCanvasAdorner(UIElement adorned)
     : base(adorned)
 {
     visCollec = new VisualCollection(this);
     visCollec.Add(tl = GetResizeThumb(Cursors.SizeNWSE, HorizontalAlignment.Left, VerticalAlignment.Top));
     visCollec.Add(tr = GetResizeThumb(Cursors.SizeNESW, HorizontalAlignment.Right, VerticalAlignment.Top));
     visCollec.Add(bl = GetResizeThumb(Cursors.SizeNESW, HorizontalAlignment.Left, VerticalAlignment.Bottom));
     visCollec.Add(br = GetResizeThumb(Cursors.SizeNWSE, HorizontalAlignment.Right, VerticalAlignment.Bottom));
     visCollec.Add(mov = GetMoveThumb());
 }
Example #29
0
 // hàm thực hiện một lệnh theo tên
 public static void CallItemCmd(string nameCmd, ref Canvas drawingCanvas, ref Thumb canvasResizerRightBottom, string fileName = null, RenderTargetBitmap renderBitmap = null)
 {
     try
     {
         ListCmd[nameCmd].Execute(ref drawingCanvas, ref canvasResizerRightBottom,fileName, renderBitmap);
     }
     catch (Exception)
     {
         MessageBox.Show("Lỗi: lệnh ngoài hệ thống", "Error", MessageBoxButton.OK);
     }
 }
Example #30
0
			public GetVisualChildTrack ()
			{
				Thumb = new Thumb ();
				Assert.AreEqual (GetVisualChild (0), Thumb, "GetVisualChild(0) 1");
				DecreaseRepeatButton = new RepeatButton ();
				Assert.AreEqual (GetVisualChild (0), Thumb, "GetVisualChild(0) 2");
				Thumb = Thumb;
				Assert.AreEqual (GetVisualChild (0), Thumb, "GetVisualChild(0) 2");
				Thumb = new Thumb ();
				Assert.AreEqual (GetVisualChild (0), DecreaseRepeatButton, "GetVisualChild(0) 3");
			}
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            _HorizontalThumb = GetTemplateChild("HorizontalThumb") as Thumb;

            left = GetTemplateChild("LeftTrack") as FrameworkElement;
            right = GetTemplateChild("RightTrack") as FrameworkElement;

            if (left != null) left.MouseLeftButtonDown += new MouseButtonEventHandler(OnMoveThumbToMouse);
            if (right != null) right.MouseLeftButtonDown += new MouseButtonEventHandler(OnMoveThumbToMouse);
        }
Example #32
0
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            leftBorder = (Grid)GetTemplateChild("LeftBorder");
            rightBorder = (Grid)GetTemplateChild("RightBorder");
            leftResizer = (Thumb)GetTemplateChild("LeftResizer");
            rightResizer = (Thumb)GetTemplateChild("RightResizer");

            leftResizer.DragDelta += Resizer_DragDelta;
            rightResizer.DragDelta += Resizer_DragDelta;
        }
Example #33
0
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();
            PART_Thumb = this.Template.FindName("PART_Thumb", this) as Thumb;

            if (PART_Thumb != null)
            {
                PART_Thumb.DragStarted += new DragStartedEventHandler(PART_Thumb_DragStarted);
                PART_Thumb.DragDelta += new DragDeltaEventHandler(PART_Thumb_DragDelta);
                PART_Thumb.DragCompleted += new DragCompletedEventHandler(PART_Thumb_DragCompleted);
            }
        }
Example #34
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Silverlight.ProcessEditor;component/Elements/Unit.xaml", System.UriKind.Relative));
     this.statusBorder = ((System.Windows.Controls.Border)(this.FindName("statusBorder")));
     this.grid         = ((System.Windows.Controls.Grid)(this.FindName("grid")));
     this.thumb        = ((System.Windows.Controls.Primitives.Thumb)(this.FindName("thumb")));
     this.ico          = ((System.Windows.Controls.Image)(this.FindName("ico")));
 }
Example #35
0
 public override void OnApplyTemplate()
 {
     base.OnApplyTemplate();
     root = (Grid)GetTemplateChild("ContentRoot");
     var th = new Thumb { Style = Application.Current.Resources["Thumb_ChildWindow2_Style"] as Style };
     th.DragStarted += delegate
     {
         h = new Point(RootWidth, RootHeight);
         m = new Point(0, 0);
     };
     th.DragDelta += DragDelta;
     root.Children.Add(th);
 }
Example #36
0
		public void Events ()
		{
			Thumb t = new Thumb ();
			t.DragStarted += delegate (object sender, DragStartedEventArgs e) {
				throw new InvalidOperationException ("DragStarted");
			};
			t.DragDelta += delegate (object sender, DragDeltaEventArgs e) {
				throw new InvalidOperationException ("DragDelta");
			};
			t.DragCompleted += delegate (object sender, DragCompletedEventArgs e) {
				throw new InvalidOperationException ("DragCompleted");
			};
			t.CancelDrag ();
		}
Example #37
0
        void MakeAdorner(ref Thumb tmb, Cursor customizedCursor)
        {
            if (tmb != null) return;

            tmb = new Thumb();
            
            // Decorate the adorner.
            tmb.Cursor = customizedCursor;
            tmb.Height = tmb.Width = 15;
            tmb.Opacity = .8;
            tmb.Background = new SolidColorBrush(Colors.Orange);

            visualChildren.Add(tmb);
        }
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            var ele = Template.FindName("thumb", this);
            var bar = ele as Thumb;
            if (ele == null || bar == null)
                throw new NotSupportedException("掴めません。");

            _thumb = bar;
            _thumb.DragStarted += dragBar_DragStarted;
            _thumb.DragDelta += dragBar_DragDelta;
            _thumb.DragCompleted += dragBar_DragCompleted;
        }
Example #39
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.@this = ((TraceLab.UI.WPF.Views.Nodes.ReadOnlyComponentNodeInfo)(target));
                return;

            case 2:
                this.resizeThumb = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 50 "..\..\..\..\Views\Nodes\ReadOnlyComponentNodeInfo.xaml"
                this.resizeThumb.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.resizeThumb_DragDelta);

            #line default
            #line hidden
                return;

            case 3:
                this.iospecRow = ((System.Windows.Controls.RowDefinition)(target));
                return;

            case 4:
                this.iospecExpander = ((System.Windows.Controls.Expander)(target));

            #line 63 "..\..\..\..\Views\Nodes\ReadOnlyComponentNodeInfo.xaml"
                this.iospecExpander.Expanded += new System.Windows.RoutedEventHandler(this.iospecExpander_Expanded);

            #line default
            #line hidden

            #line 63 "..\..\..\..\Views\Nodes\ReadOnlyComponentNodeInfo.xaml"
                this.iospecExpander.Collapsed += new System.Windows.RoutedEventHandler(this.iospecExpander_Collapsed);

            #line default
            #line hidden
                return;

            case 5:
                this.inputsLV = ((System.Windows.Controls.ListView)(target));
                return;

            case 7:
                this.outputsLV = ((System.Windows.Controls.ListView)(target));
                return;
            }
            this._contentLoaded = true;
        }
Example #40
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\OverViewWindow.xaml"
                ((mSlideViewer.OverViewWindow)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseDown);

            #line default
            #line hidden

            #line 10 "..\..\OverViewWindow.xaml"
                ((mSlideViewer.OverViewWindow)(target)).Closed += new System.EventHandler(this.Window_Closed);

            #line default
            #line hidden
                return;

            case 2:
                this.OverViewCanvas = ((System.Windows.Controls.Canvas)(target));

            #line 37 "..\..\OverViewWindow.xaml"
                this.OverViewCanvas.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Canvas_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 3:
                this.OverViewImageBrush = ((System.Windows.Media.ImageBrush)(target));
                return;

            case 4:
                this.overviewZoomRectThumb = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 42 "..\..\OverViewWindow.xaml"
                this.overviewZoomRectThumb.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.overviewZoomRectThumb_DragDelta);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Example #41
0
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            titleBarThumb = GetTemplateChild(PART_TitleBarThumb) as ThumbBase;
            titleBar      = GetTemplateChild(PART_TitleBar) as UIElement;
            icon          = GetTemplateChild(PART_Icon) as FrameworkElement;
            title         = GetTemplateChild(PART_Title) as UIElement;

            leftWindowCommands  = GetTemplateChild(PART_LeftWindowCommands) as ContentPresenter;
            rightWindowCommands = GetTemplateChild(PART_RightWindowCommands) as ContentPresenter;
            windowButtons       = GetTemplateChild(PART_WindowButtons) as ContentPresenter;

            if (LeftWindowCommands == null)
            {
                LeftWindowCommands = new WindowCommands();
            }
            if (RightWindowCommands == null)
            {
                RightWindowCommands = new WindowCommands();
            }
            if (WindowButtons == null)
            {
                WindowButtons = new WindowButtons();
            }

            LeftWindowCommands.ParentWindow  = this;
            RightWindowCommands.ParentWindow = this;
            WindowButtons.ParentWindow       = this;

            var windowChrome = GetValue(WindowChrome.WindowChromeProperty) as WindowChrome;

            if (windowChrome != null)
            {
                BindingOperations.SetBinding(
                    windowChrome,
                    WindowChrome.IgnoreTaskbarProperty,
                    new Binding {
                    Path = new PropertyPath(IgnoreTaskbarProperty), Source = this, Mode = BindingMode.OneWay
                }
                    );
            }

            ToggleNoneWindowStyle(UseNoneWindowStyle);
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 14 "..\..\OverviewWindow.xaml"
                ((SampleCode.OverviewWindow)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseDown);

            #line default
            #line hidden
                return;

            case 2:
                this.overview = ((ZoomAndPan.ZoomAndPanControl)(target));

            #line 156 "..\..\OverviewWindow.xaml"
                this.overview.Loaded += new System.Windows.RoutedEventHandler(this.overview_Loaded);

            #line default
            #line hidden

            #line 157 "..\..\OverviewWindow.xaml"
                this.overview.SizeChanged += new System.Windows.SizeChangedEventHandler(this.overview_SizeChanged);

            #line default
            #line hidden
                return;

            case 3:
                this.networkControl = ((NetworkUI.NetworkView)(target));
                return;

            case 4:
                this.overviewZoomRectThumb = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 191 "..\..\OverviewWindow.xaml"
                this.overviewZoomRectThumb.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.overviewZoomRectThumb_DragDelta);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Example #43
0
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            if (ScrollViewer == null)
            {
                return;
            }

            VirtualCanvas virtualCanvas = ScrollViewer.Content as VirtualCanvas;

            if (virtualCanvas == null)
            {
                throw new Exception("DesignerCanvas must not be null!");
            }
            _canvas = virtualCanvas;

            zoomThumb = Template.FindName("PART_ZoomThumb", this) as Thumb;
            if (zoomThumb == null)
            {
                throw new Exception("PART_ZoomThumb template is missing!");
            }

            zoomCanvas = Template.FindName("PART_ZoomCanvas", this) as Canvas;
            if (zoomCanvas == null)
            {
                throw new Exception("PART_ZoomCanvas template is missing!");
            }

            zoomSlider = Template.FindName("PART_ZoomSlider", this) as Slider;
            if (zoomSlider == null)
            {
                throw new Exception("PART_ZoomSlider template is missing!");
            }

            virtualCanvas.ContentCanvas.LayoutUpdated += new EventHandler(DesignerCanvas_LayoutUpdated);

            zoomThumb.DragDelta += new DragDeltaEventHandler(Thumb_DragDelta);

            zoomSlider.ValueChanged += new RoutedPropertyChangedEventHandler <double>(ZoomSlider_ValueChanged);

            scaleTransform          = new ScaleTransform();
            _canvas.LayoutTransform = scaleTransform;
        }
Example #44
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Window = ((WPFThumb.MainWindow)(target));
                return;

            case 2:
                this.LayoutRoot = ((System.Windows.Controls.Canvas)(target));
                return;

            case 3:
                this.canvas1 = ((System.Windows.Controls.Canvas)(target));
                return;

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

            case 5:
                this.thumb1 = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 19 "..\..\MainWindow.xaml"
                this.thumb1.DragStarted += new System.Windows.Controls.Primitives.DragStartedEventHandler(this.thumb1_DragStarted);

            #line default
            #line hidden

            #line 19 "..\..\MainWindow.xaml"
                this.thumb1.DragCompleted += new System.Windows.Controls.Primitives.DragCompletedEventHandler(this.thumb1_DragCompleted);

            #line default
            #line hidden

            #line 19 "..\..\MainWindow.xaml"
                this.thumb1.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.thumb1_DragDelta);

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

            case 2:
                this.grabThumb = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 13 "..\..\StoryNode.xaml"
                this.grabThumb.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.Move);

            #line default
            #line hidden

            #line 13 "..\..\StoryNode.xaml"
                this.grabThumb.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.Click);

            #line default
            #line hidden
                return;

            case 3:
                this.resizeThumb = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 20 "..\..\StoryNode.xaml"
                this.resizeThumb.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.Resize);

            #line default
            #line hidden
                return;

            case 4:
                this.story = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 5:
                this.optionList = ((System.Windows.Controls.StackPanel)(target));
                return;
            }
            this._contentLoaded = true;
        }
Example #46
0
 private void ChangeThumb(object sender, RoutedEventArgs e)
 {
     spanel2.Children.Clear();
     thumb       = new Thumb();
     thumb.Width = 20;
     thumb.HorizontalAlignment = HorizontalAlignment.Left;
     spanel2.Children.Add(thumb);
     vscrollb                     = new ScrollBar();
     vscrollb.Orientation         = Orientation.Vertical;
     vscrollb.HorizontalAlignment = HorizontalAlignment.Left;
     vscrollb.Width               = (20);
     vscrollb.Height              = (80);
     Canvas.SetLeft(vscrollb, (50));
     spanel2.Children.Add(vscrollb);
     txt = new TextBlock();
     txt.TextWrapping = System.Windows.TextWrapping.WrapWithOverflow;
     txt.Text         = "A thumb is typically used in combination with other elements to create encapsulated components, such as scroll bars and sliders. For example, a thumb element enables basic drag functionality for a scroll bar (by creating a scroll box) or resizable window (by creating a window corner). The example shows a thumb and a thumb as it is typically used as an element of a scroll bar.";
     spanel2.Children.Add(txt);
 }
Example #47
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.myRoot = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 31 "..\..\Scene2.xaml"
                this.myRoot.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.MyRootDragDelta);

            #line default
            #line hidden
                return;

            case 2:
                this.translateTransform = ((System.Windows.Media.TranslateTransform)(target));
                return;
            }
            this._contentLoaded = true;
        }
Example #48
0
 /// <summary>
 /// 创建一层悬浮层
 /// </summary>
 /// <param name="Text_Size">最大字号</param>
 /// <param name="Layer_Top">最低顶距</param>
 public HoverLayer(double Text_Size, double Layer_Top)
 {
     TextSize    = Text_Size;
     LayerTop    = Layer_Top;
     layer_thumb = new System.Windows.Controls.Primitives.Thumb();
 }
Example #49
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.DesignScriptEditor = ((DesignScriptStudio.Graph.Ui.LibraryView)(target));
                return;

            case 2:

            #line 20 "..\..\..\LibraryView.xaml"
                ((System.Windows.Controls.Grid)(target)).PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.OnLibraryKeyDown);

            #line default
            #line hidden
                return;

            case 3:
                this.topThumb = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 37 "..\..\..\LibraryView.xaml"
                this.topThumb.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.OnTopThumbDragDelta);

            #line default
            #line hidden

            #line 38 "..\..\..\LibraryView.xaml"
                this.topThumb.PreviewMouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.OnTopThumbMouseUp);

            #line default
            #line hidden
                return;

            case 4:

            #line 47 "..\..\..\LibraryView.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnMaxiMinimizeClick);

            #line default
            #line hidden
                return;

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

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

            case 7:
                this.content = ((System.Windows.Controls.Border)(target));
                return;

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

            #line 356 "..\..\..\LibraryView.xaml"
                this.AddNew.Click += new System.Windows.RoutedEventHandler(this.OnAddNewClick);

            #line default
            #line hidden
                return;

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

            #line 365 "..\..\..\LibraryView.xaml"
                this.Expand.Click += new System.Windows.RoutedEventHandler(this.OnExpandClick);

            #line default
            #line hidden
                return;

            case 13:
                this.Collapse = ((System.Windows.Controls.Button)(target));

            #line 374 "..\..\..\LibraryView.xaml"
                this.Collapse.Click += new System.Windows.RoutedEventHandler(this.OnCollapseClick);

            #line default
            #line hidden
                return;

            case 14:

            #line 390 "..\..\..\LibraryView.xaml"
                ((System.Windows.Controls.Border)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.OnSearchBarClick);

            #line default
            #line hidden
                return;

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

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

            #line 477 "..\..\..\LibraryView.xaml"
                this.SearchTextBox.KeyUp += new System.Windows.Input.KeyEventHandler(this.OnSearchTextBoxKeyUp);

            #line default
            #line hidden
                return;

            case 18:
                this.InternalTreeView = ((System.Windows.Controls.TreeView)(target));

            #line 495 "..\..\..\LibraryView.xaml"
                this.InternalTreeView.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.OnLibraryTreeViewClick);

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

            case 2:
                this.target1 = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 30 "..\..\..\Views\TargetGame_p2.xaml"
                this.target1.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.Thumb1_DragDelta);

            #line default
            #line hidden
                return;

            case 3:
                this.target2 = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 41 "..\..\..\Views\TargetGame_p2.xaml"
                this.target2.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.Thumb2_DragDelta);

            #line default
            #line hidden
                return;

            case 4:
                this.target3 = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 49 "..\..\..\Views\TargetGame_p2.xaml"
                this.target3.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.Thumb3_DragDelta);

            #line default
            #line hidden
                return;

            case 5:
                this.target4 = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 57 "..\..\..\Views\TargetGame_p2.xaml"
                this.target4.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.Thumb4_DragDelta);

            #line default
            #line hidden
                return;

            case 6:
                this.target5 = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 65 "..\..\..\Views\TargetGame_p2.xaml"
                this.target5.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.Thumb5_DragDelta);

            #line default
            #line hidden
                return;

            case 7:
                this.startbutton = ((System.Windows.Controls.Button)(target));

            #line 74 "..\..\..\Views\TargetGame_p2.xaml"
                this.startbutton.Click += new System.Windows.RoutedEventHandler(this.start);

            #line default
            #line hidden
                return;

            case 8:

            #line 75 "..\..\..\Views\TargetGame_p2.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.back);

            #line default
            #line hidden
                return;

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

            case 10:
                this.count = ((System.Windows.Controls.Label)(target));
                return;

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

            #line 80 "..\..\..\Views\TargetGame_p2.xaml"
                this.rule.Click += new System.Windows.RoutedEventHandler(this.rule_Click);

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

            case 2:

            #line 24 "..\..\EVOLedColorManage.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

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

            case 4:
                this.cb_Led = ((System.Windows.Controls.ComboBox)(target));

            #line 43 "..\..\EVOLedColorManage.xaml"
                this.cb_Led.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cb_Led_SelectionChanged);

            #line default
            #line hidden
                return;

            case 5:
                this.sld_r = ((System.Windows.Controls.Slider)(target));

            #line 52 "..\..\EVOLedColorManage.xaml"
                this.sld_r.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.rgb_changed);

            #line default
            #line hidden
                return;

            case 6:
                this.sld_g = ((System.Windows.Controls.Slider)(target));

            #line 53 "..\..\EVOLedColorManage.xaml"
                this.sld_g.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.rgb_changed);

            #line default
            #line hidden
                return;

            case 7:
                this.sld_b = ((System.Windows.Controls.Slider)(target));

            #line 54 "..\..\EVOLedColorManage.xaml"
                this.sld_b.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.rgb_changed);

            #line default
            #line hidden
                return;

            case 8:
                this.color_show = ((System.Windows.Controls.Primitives.Thumb)(target));
                return;
            }
            this._contentLoaded = true;
        }
Example #52
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\..\..\TimeLine\ControlTimeLine.xaml"
                ((jg.Editor.ControlTimeLine)(target)).Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded);

            #line default
            #line hidden

            #line 10 "..\..\..\..\TimeLine\ControlTimeLine.xaml"
                ((jg.Editor.ControlTimeLine)(target)).SizeChanged += new System.Windows.SizeChangedEventHandler(this.UserControl_SizeChanged);

            #line default
            #line hidden
                return;

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

            case 3:
                this.rowHead = ((System.Windows.Controls.RowDefinition)(target));
                return;

            case 4:
                this.rowBody = ((System.Windows.Controls.RowDefinition)(target));
                return;

            case 5:
                this.column0 = ((System.Windows.Controls.ColumnDefinition)(target));
                return;

            case 6:
                this.column1 = ((System.Windows.Controls.ColumnDefinition)(target));
                return;

            case 7:
                this.column2 = ((System.Windows.Controls.ColumnDefinition)(target));
                return;

            case 8:
                this.gridItem = ((System.Windows.Controls.Grid)(target));
                return;

            case 9:
                this.gridHead = ((System.Windows.Controls.Grid)(target));
                return;

            case 10:
                this.imageHead = ((System.Windows.Controls.Image)(target));
                return;

            case 11:
                this.gridBody = ((System.Windows.Controls.Grid)(target));
                return;

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

            #line 66 "..\..\..\..\TimeLine\ControlTimeLine.xaml"
                this.imageBody.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.imageBody_PreviewMouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 13:
                this.thumb = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 70 "..\..\..\..\TimeLine\ControlTimeLine.xaml"
                this.thumb.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.Thumb_DragDelta);

            #line default
            #line hidden

            #line 70 "..\..\..\..\TimeLine\ControlTimeLine.xaml"
                this.thumb.DragCompleted += new System.Windows.Controls.Primitives.DragCompletedEventHandler(this.Thumb_DragCompleted);

            #line default
            #line hidden
                return;

            case 14:
                this.scrollBarV = ((System.Windows.Controls.Primitives.ScrollBar)(target));

            #line 103 "..\..\..\..\TimeLine\ControlTimeLine.xaml"
                this.scrollBarV.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.scrollBarV_ValueChanged);

            #line default
            #line hidden
                return;

            case 15:
                this.scrollBarH = ((System.Windows.Controls.Primitives.ScrollBar)(target));

            #line 104 "..\..\..\..\TimeLine\ControlTimeLine.xaml"
                this.scrollBarH.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.scrollBarH_ValueChanged);

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

            #line 8 "..\..\..\..\..\FLOWeR\UIDesigner\Component\UIComponent.xaml"
                ((FLOWeR_Garden_Ver02.FLOWeR.UIDesigner.Component.UIComponent)(target)).Loaded += new System.Windows.RoutedEventHandler(this.OnLoaded);

            #line default
            #line hidden
                return;

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

            #line 14 "..\..\..\..\..\FLOWeR\UIDesigner\Component\UIComponent.xaml"
                this.grid.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Grid_PreviewMouseDown);

            #line default
            #line hidden

            #line 14 "..\..\..\..\..\FLOWeR\UIDesigner\Component\UIComponent.xaml"
                this.grid.PreviewMouseUp += new System.Windows.Input.MouseButtonEventHandler(this.Grid_PreviewMouseUp);

            #line default
            #line hidden
                return;

            case 3:
                this.contentPresenter = ((System.Windows.Controls.ContentPresenter)(target));
                return;

            case 4:
                this.controlText = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 5:
                this.SelectionThumb = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 20 "..\..\..\..\..\FLOWeR\UIDesigner\Component\UIComponent.xaml"
                this.SelectionThumb.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.SelectionThumb_DragDelta);

            #line default
            #line hidden
                return;

            case 6:
                this.TopLeftThumb = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 29 "..\..\..\..\..\FLOWeR\UIDesigner\Component\UIComponent.xaml"
                this.TopLeftThumb.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.ResizeThumb_DragDelta);

            #line default
            #line hidden
                return;

            case 7:
                this.TopThumb = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 43 "..\..\..\..\..\FLOWeR\UIDesigner\Component\UIComponent.xaml"
                this.TopThumb.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.ResizeThumb_DragDelta);

            #line default
            #line hidden
                return;

            case 8:
                this.TopRightThumb = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 56 "..\..\..\..\..\FLOWeR\UIDesigner\Component\UIComponent.xaml"
                this.TopRightThumb.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.ResizeThumb_DragDelta);

            #line default
            #line hidden
                return;

            case 9:
                this.LeftThumb = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 70 "..\..\..\..\..\FLOWeR\UIDesigner\Component\UIComponent.xaml"
                this.LeftThumb.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.ResizeThumb_DragDelta);

            #line default
            #line hidden
                return;

            case 10:
                this.RightThumb = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 83 "..\..\..\..\..\FLOWeR\UIDesigner\Component\UIComponent.xaml"
                this.RightThumb.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.ResizeThumb_DragDelta);

            #line default
            #line hidden
                return;

            case 11:
                this.BottomLeftThumb = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 96 "..\..\..\..\..\FLOWeR\UIDesigner\Component\UIComponent.xaml"
                this.BottomLeftThumb.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.ResizeThumb_DragDelta);

            #line default
            #line hidden
                return;

            case 12:
                this.BottomThumb = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 110 "..\..\..\..\..\FLOWeR\UIDesigner\Component\UIComponent.xaml"
                this.BottomThumb.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.ResizeThumb_DragDelta);

            #line default
            #line hidden
                return;

            case 13:
                this.BottomRightThumb = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 123 "..\..\..\..\..\FLOWeR\UIDesigner\Component\UIComponent.xaml"
                this.BottomRightThumb.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.ResizeThumb_DragDelta);

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

            case 2:
                this._dragWidget = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 371 "..\..\..\RichTextBoxFormatBar\RichTextBoxFormatBar.xaml"
                this._dragWidget.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.DragWidget_DragDelta);

            #line default
            #line hidden
                return;

            case 3:
                this._cmbFontFamilies = ((System.Windows.Controls.ComboBox)(target));

            #line 378 "..\..\..\RichTextBoxFormatBar\RichTextBoxFormatBar.xaml"
                this._cmbFontFamilies.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.FontFamily_SelectionChanged);

            #line default
            #line hidden
                return;

            case 4:
                this._cmbFontSizes = ((System.Windows.Controls.ComboBox)(target));

            #line 384 "..\..\..\RichTextBoxFormatBar\RichTextBoxFormatBar.xaml"
                this._cmbFontSizes.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.FontSize_SelectionChanged);

            #line default
            #line hidden
                return;

            case 5:
                this._btnBullets = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 393 "..\..\..\RichTextBoxFormatBar\RichTextBoxFormatBar.xaml"
                this._btnBullets.Click += new System.Windows.RoutedEventHandler(this.Bullets_Clicked);

            #line default
            #line hidden
                return;

            case 6:
                this._btnNumbers = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 402 "..\..\..\RichTextBoxFormatBar\RichTextBoxFormatBar.xaml"
                this._btnNumbers.Click += new System.Windows.RoutedEventHandler(this.Numbers_Clicked);

            #line default
            #line hidden
                return;

            case 7:
                this._btnBold = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 8:
                this._btnItalic = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 9:
                this._btnUnderline = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 10:
                this._btnAlignLeft = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 11:
                this._btnAlignCenter = ((System.Windows.Controls.RadioButton)(target));
                return;

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

            case 13:
                this._cmbFontBackgroundColor = ((Xceed.Wpf.Toolkit.ColorPicker)(target));
                return;

            case 14:
                this._cmbFontColor = ((Xceed.Wpf.Toolkit.ColorPicker)(target));
                return;
            }
            this._contentLoaded = true;
        }
Example #55
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\..\ExtendedPreview.xaml"
                ((System.Windows.Controls.Grid)(target)).MouseMove += new System.Windows.Input.MouseEventHandler(this.OnMouseMove);

            #line default
            #line hidden
                return;

            case 2:
                this.LeftThumb = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 34 "..\..\..\ExtendedPreview.xaml"
                this.LeftThumb.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.OnLeftThumbDragDelta);

            #line default
            #line hidden
                return;

            case 3:
                this.RightThumb = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 43 "..\..\..\ExtendedPreview.xaml"
                this.RightThumb.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.OnRightThumbDragDelta);

            #line default
            #line hidden
                return;

            case 4:
                this.LeftBottomThumb = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 52 "..\..\..\ExtendedPreview.xaml"
                this.LeftBottomThumb.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.OnLeftBubbtomThumbDragDelta);

            #line default
            #line hidden
                return;

            case 5:
                this.BottomThumb = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 60 "..\..\..\ExtendedPreview.xaml"
                this.BottomThumb.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.OnBottomThumbDragDelta);

            #line default
            #line hidden
                return;

            case 6:
                this.RightBubbtomThumb = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 71 "..\..\..\ExtendedPreview.xaml"
                this.RightBubbtomThumb.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.OnRightBubbtomThumbDragDelta);

            #line default
            #line hidden
                return;

            case 7:
                this.PreviewPanel = ((System.Windows.Controls.StackPanel)(target));

            #line 76 "..\..\..\ExtendedPreview.xaml"
                this.PreviewPanel.MouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.OnTextBoxGridMouseWheel);

            #line default
            #line hidden
                return;

            case 8:
                this.Top = ((System.Windows.Controls.Grid)(target));

            #line 229 "..\..\..\ExtendedPreview.xaml"
                this.Top.PreviewMouseMove += new System.Windows.Input.MouseEventHandler(this.OnTopMouseMove);

            #line default
            #line hidden
                return;

            case 9:
                this.TextBoxBorder = ((System.Windows.Controls.Border)(target));
                return;

            case 10:

            #line 245 "..\..\..\ExtendedPreview.xaml"
                ((System.Windows.Controls.Border)(target)).PreviewMouseMove += new System.Windows.Input.MouseEventHandler(this.OnDotsMouseMove);

            #line default
            #line hidden
                return;

            case 11:
                this.InternalTextBox = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Container = ((System.Windows.Controls.Border)(target));
                return;

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

            case 3:
                this.moveThumb = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 27 "..\..\..\Views\ColorPalette.xaml"
                this.moveThumb.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.moveThumb_DragDelta);

            #line default
            #line hidden
                return;

            case 4:

            #line 28 "..\..\..\Views\ColorPalette.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Cancel_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.borderColorChart = ((System.Windows.Controls.Border)(target));
                return;

            case 6:

            #line 42 "..\..\..\Views\ColorPalette.xaml"
                ((System.Windows.Controls.Image)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Image_MouseDown);

            #line default
            #line hidden

            #line 42 "..\..\..\Views\ColorPalette.xaml"
                ((System.Windows.Controls.Image)(target)).MouseMove += new System.Windows.Input.MouseEventHandler(this.Image_MouseMove);

            #line default
            #line hidden
                return;

            case 7:
                this.colorMarker = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 8:
                this.brightnessSliderBorder = ((System.Windows.Controls.Border)(target));
                return;

            case 9:
                this.brightnessSlider = ((System.Windows.Controls.Slider)(target));
                return;

            case 10:
                this.currentColorBorder = ((System.Windows.Controls.Border)(target));
                return;

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

            #line 58 "..\..\..\Views\ColorPalette.xaml"
                this.OK.Click += new System.Windows.RoutedEventHandler(this.Ok_Click);

            #line default
            #line hidden
                return;

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

            #line 59 "..\..\..\Views\ColorPalette.xaml"
                this.Cancel.Click += new System.Windows.RoutedEventHandler(this.Cancel_Click);

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

            case 2:
                this.MeasuringCanvas = ((System.Windows.Controls.Canvas)(target));
                return;

            case 3:
                this.Thumbie1 = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 25 "..\..\..\OtherWindows\MeasureWindow.xaml"
                this.Thumbie1.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.Thumbie1_DragDelta);

            #line default
            #line hidden
                return;

            case 4:
                this.Thumbie2 = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 26 "..\..\..\OtherWindows\MeasureWindow.xaml"
                this.Thumbie2.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.Thumbie2_DragDelta);

            #line default
            #line hidden
                return;

            case 5:
                this.AnalysisTypeRadioTreadmill = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 6:
                this.AnalysisTypeRadioFreeWalking = ((System.Windows.Controls.RadioButton)(target));

            #line 33 "..\..\..\OtherWindows\MeasureWindow.xaml"
                this.AnalysisTypeRadioFreeWalking.Checked += new System.Windows.RoutedEventHandler(this.AnalysisTypeRadioFreeWalking_Checked);

            #line default
            #line hidden

            #line 33 "..\..\..\OtherWindows\MeasureWindow.xaml"
                this.AnalysisTypeRadioFreeWalking.Unchecked += new System.Windows.RoutedEventHandler(this.AnalysisTypeRadioFreeWalking_Unchecked);

            #line default
            #line hidden
                return;

            case 7:
                this.DistanceTextBox = ((System.Windows.Controls.TextBox)(target));

            #line 37 "..\..\..\OtherWindows\MeasureWindow.xaml"
                this.DistanceTextBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.DistanceTextBox_TextChanged);

            #line default
            #line hidden
                return;

            case 8:
                this.TreadmillSpeedTextBox = ((System.Windows.Controls.TextBox)(target));

            #line 41 "..\..\..\OtherWindows\MeasureWindow.xaml"
                this.TreadmillSpeedTextBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TreadmillSpeedTextBox_TextChanged);

            #line default
            #line hidden
                return;

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

            #line 44 "..\..\..\OtherWindows\MeasureWindow.xaml"
                this.CancelButton.Click += new System.Windows.RoutedEventHandler(this.CancelButton_Click);

            #line default
            #line hidden
                return;

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

            #line 45 "..\..\..\OtherWindows\MeasureWindow.xaml"
                this.ContinueButton.Click += new System.Windows.RoutedEventHandler(this.ContinueButton_Click);

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

            #line 8 "..\..\..\Components\UIFrame.xaml"
                this.uiFrame.DragOver += new System.Windows.DragEventHandler(this.grFrame_DragOver);

            #line default
            #line hidden

            #line 8 "..\..\..\Components\UIFrame.xaml"
                this.uiFrame.Drop += new System.Windows.DragEventHandler(this.grFrame_Drop);

            #line default
            #line hidden

            #line 8 "..\..\..\Components\UIFrame.xaml"
                this.uiFrame.DragLeave += new System.Windows.DragEventHandler(this.grFrame_DragLeave);

            #line default
            #line hidden

            #line 9 "..\..\..\Components\UIFrame.xaml"
                this.uiFrame.PreviewMouseMove += new System.Windows.Input.MouseEventHandler(this.grFrame_PreviewMouseMove);

            #line default
            #line hidden

            #line 9 "..\..\..\Components\UIFrame.xaml"
                this.uiFrame.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.grFrame_PreviewMouseButtonDown);

            #line default
            #line hidden

            #line 10 "..\..\..\Components\UIFrame.xaml"
                this.uiFrame.Loaded += new System.Windows.RoutedEventHandler(this.uiFrame_Loaded);

            #line default
            #line hidden
                return;

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

            case 3:
                this.recBord = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 4:
                this.recFill = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 5:
                this.tmbSize = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 75 "..\..\..\Components\UIFrame.xaml"
                this.tmbSize.DragCompleted += new System.Windows.Controls.Primitives.DragCompletedEventHandler(this.Thumb_DragCompleted);

            #line default
            #line hidden

            #line 76 "..\..\..\Components\UIFrame.xaml"
                this.tmbSize.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.Thumb_DragDelta_MiddleRight);

            #line default
            #line hidden

            #line 76 "..\..\..\Components\UIFrame.xaml"
                this.tmbSize.DragStarted += new System.Windows.Controls.Primitives.DragStartedEventHandler(this.tmbSize_DragStarted);

            #line default
            #line hidden
                return;

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

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

            #line 6 "..\..\..\..\TimeLine\副本 ControlTimeLine.xaml"
                ((jg.Editor.ControlTimeLine)(target)).SizeChanged += new System.Windows.SizeChangedEventHandler(this.UserControl_SizeChanged);

            #line default
            #line hidden

            #line 8 "..\..\..\..\TimeLine\副本 ControlTimeLine.xaml"
                ((jg.Editor.ControlTimeLine)(target)).Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.gridHead = ((System.Windows.Controls.WrapPanel)(target));
                return;

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

            #line 37 "..\..\..\..\TimeLine\副本 ControlTimeLine.xaml"
                this.btnFirst.Click += new System.Windows.RoutedEventHandler(this.btnFirst_Click);

            #line default
            #line hidden
                return;

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

            #line 38 "..\..\..\..\TimeLine\副本 ControlTimeLine.xaml"
                this.btnPrevious.Click += new System.Windows.RoutedEventHandler(this.btnPrevious_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.btnPlay = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 39 "..\..\..\..\TimeLine\副本 ControlTimeLine.xaml"
                this.btnPlay.Click += new System.Windows.RoutedEventHandler(this.btnPlay_Click);

            #line default
            #line hidden
                return;

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

            #line 40 "..\..\..\..\TimeLine\副本 ControlTimeLine.xaml"
                this.btnNext.Click += new System.Windows.RoutedEventHandler(this.btnNext_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.btnLast = ((System.Windows.Controls.Button)(target));

            #line 41 "..\..\..\..\TimeLine\副本 ControlTimeLine.xaml"
                this.btnLast.Click += new System.Windows.RoutedEventHandler(this.btnLast_Click);

            #line default
            #line hidden
                return;

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

            #line 45 "..\..\..\..\TimeLine\副本 ControlTimeLine.xaml"
                this.btnAdd.Click += new System.Windows.RoutedEventHandler(this.btnAdd_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.grid = ((System.Windows.Controls.Grid)(target));
                return;

            case 10:

            #line 62 "..\..\..\..\TimeLine\副本 ControlTimeLine.xaml"
                ((System.Windows.Controls.ScrollViewer)(target)).ScrollChanged += new System.Windows.Controls.ScrollChangedEventHandler(this.ScrollViewer_ScrollChanged);

            #line default
            #line hidden
                return;

            case 11:
                this.gridList = ((System.Windows.Controls.Grid)(target));
                return;

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

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

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

            case 15:
                this.path = ((System.Windows.Shapes.Path)(target));
                return;

            case 16:
                this.thumb = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 115 "..\..\..\..\TimeLine\副本 ControlTimeLine.xaml"
                this.thumb.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.Thumb_DragDelta);

            #line default
            #line hidden

            #line 116 "..\..\..\..\TimeLine\副本 ControlTimeLine.xaml"
                this.thumb.DragCompleted += new System.Windows.Controls.Primitives.DragCompletedEventHandler(this.Thumb_DragCompleted);

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

            case 2:
                this.target1 = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 20 "..\..\..\Views\TargetGame_Hard.xaml"
                this.target1.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.Thumb1_DragDelta);

            #line default
            #line hidden
                return;

            case 3:
                this.target2 = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 28 "..\..\..\Views\TargetGame_Hard.xaml"
                this.target2.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.Thumb2_DragDelta);

            #line default
            #line hidden
                return;

            case 4:
                this.target3 = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 36 "..\..\..\Views\TargetGame_Hard.xaml"
                this.target3.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.Thumb3_DragDelta);

            #line default
            #line hidden
                return;

            case 5:
                this.target4 = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 44 "..\..\..\Views\TargetGame_Hard.xaml"
                this.target4.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.Thumb4_DragDelta);

            #line default
            #line hidden
                return;

            case 6:
                this.target5 = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 52 "..\..\..\Views\TargetGame_Hard.xaml"
                this.target5.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.Thumb5_DragDelta);

            #line default
            #line hidden
                return;

            case 7:
                this.target6 = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 61 "..\..\..\Views\TargetGame_Hard.xaml"
                this.target6.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.Thumb6_DragDelta);

            #line default
            #line hidden
                return;

            case 8:
                this.target7 = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 70 "..\..\..\Views\TargetGame_Hard.xaml"
                this.target7.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.Thumb7_DragDelta);

            #line default
            #line hidden
                return;

            case 9:
                this.target8 = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 78 "..\..\..\Views\TargetGame_Hard.xaml"
                this.target8.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.Thumb8_DragDelta);

            #line default
            #line hidden
                return;

            case 10:
                this.target9 = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 86 "..\..\..\Views\TargetGame_Hard.xaml"
                this.target9.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.Thumb9_DragDelta);

            #line default
            #line hidden
                return;

            case 11:
                this.target10 = ((System.Windows.Controls.Primitives.Thumb)(target));

            #line 94 "..\..\..\Views\TargetGame_Hard.xaml"
                this.target10.DragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.Thumb10_DragDelta);

            #line default
            #line hidden
                return;

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

            #line 104 "..\..\..\Views\TargetGame_Hard.xaml"
                this.startbutton.Click += new System.Windows.RoutedEventHandler(this.start);

            #line default
            #line hidden
                return;

            case 13:

            #line 105 "..\..\..\Views\TargetGame_Hard.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.back);

            #line default
            #line hidden
                return;

            case 14:
                this.time = ((System.Windows.Controls.Label)(target));
                return;

            case 15:
                this.count = ((System.Windows.Controls.Label)(target));
                return;

            case 16:
                this.zyuu = ((System.Windows.Controls.Label)(target));
                return;

            case 17:
                this.tar1 = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }