Beispiel #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.vScrollBar = ((System.Windows.Controls.Primitives.ScrollBar)(target));

            #line 9 "..\..\KTerminal.xaml"
                this.vScrollBar.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.vScrollBar_ValueChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.hScrollBar = ((System.Windows.Controls.Primitives.ScrollBar)(target));

            #line 10 "..\..\KTerminal.xaml"
                this.hScrollBar.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.hScrollBar_ValueChanged);

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

            case 2:
                this.mySlider = ((System.Windows.Controls.Slider)(target));

            #line 11 "..\..\..\Janelas\WndRanged.xaml"
                this.mySlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.mySlider_onValueChanged);

            #line default
            #line hidden
                return;

            case 3:
                this.bar = ((System.Windows.Controls.Primitives.ScrollBar)(target));

            #line 12 "..\..\..\Janelas\WndRanged.xaml"
                this.bar.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.bar_onValueChanged);

            #line default
            #line hidden
                return;

            case 4:
                this.progress = ((System.Windows.Controls.ProgressBar)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.TextVal = ((System.Windows.Controls.TextBox)(target));

            #line 14 "..\..\ScrollProp.xaml"
                this.TextVal.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_TextChanged_1);

            #line default
            #line hidden
                return;

            case 2:
                this.Scroll = ((System.Windows.Controls.Primitives.ScrollBar)(target));

            #line 15 "..\..\ScrollProp.xaml"
                this.Scroll.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.ScrollBar_ValueChanged_1);

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

            case 2:
                this.vscroll = ((System.Windows.Controls.Primitives.ScrollBar)(target));
                return;

            case 3:
                this.dockOuter = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 4:
                this.dockCube = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 5:
                this.viewCube = ((System.Windows.Controls.Viewport3D)(target));
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #5
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.channelNumberLB = ((System.Windows.Controls.Label)(target));
                return;

            case 2:
                this.valueTB = ((System.Windows.Controls.TextBox)(target));

            #line 18 "..\..\ChannelController.xaml"
                this.valueTB.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.valueTB_TextChanged);

            #line default
            #line hidden
                return;

            case 3:
                this.DimmerSB = ((System.Windows.Controls.Primitives.ScrollBar)(target));

            #line 19 "..\..\ChannelController.xaml"
                this.DimmerSB.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.DimmerSB_ValueChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #6
0
        public TextCanvas(ScrollBar horizontalScrollBar, ScrollBar verticalScrollBar)
        {
            _horizontalScrollBar = horizontalScrollBar;
            _horizontalScrollBar.ValueChanged += HorizontalScrollBarOnScroll;

            _verticalScrollBar = verticalScrollBar;
            _verticalScrollBar.ValueChanged += VerticalScrollBarOnValueChanged;

            _selectedIndices = new HashSet<LogLineIndex>();
            _hoveredIndices = new HashSet<LogLineIndex>();
            _visibleTextLines = new List<TextLine>();
            _searchResults = new DispatchedSearchResults();
            _timer = new DispatcherTimer();
            _timer.Tick += OnUpdate;
            _timer.Interval = TimeSpan.FromMilliseconds(1000.0/60);

            InputBindings.Add(new KeyBinding(new DelegateCommand(OnCopyToClipboard), Key.C, ModifierKeys.Control));
            InputBindings.Add(new KeyBinding(new DelegateCommand(OnMoveDown), Key.Down, ModifierKeys.None));
            InputBindings.Add(new KeyBinding(new DelegateCommand(OnMoveUp), Key.Up, ModifierKeys.None));
            InputBindings.Add(new KeyBinding(new DelegateCommand(OnMovePageDown), Key.PageDown, ModifierKeys.None));
            InputBindings.Add(new KeyBinding(new DelegateCommand(OnMovePageUp), Key.PageUp, ModifierKeys.None));
            InputBindings.Add(new KeyBinding(new DelegateCommand(OnMoveStart), Key.Home, ModifierKeys.Control));
            InputBindings.Add(new KeyBinding(new DelegateCommand(OnMoveEnd), Key.End, ModifierKeys.Control));
            InputBindings.Add(new MouseBinding(new DelegateCommand(OnMouseWheelUp), MouseWheelGesture.WheelUp));
            InputBindings.Add(new MouseBinding(new DelegateCommand(OnMouseWheelDown), MouseWheelGesture.WheelDown));

            SizeChanged += OnSizeChanged;
            GotFocus += OnGotFocus;
            LostFocus += OnLostFocus;
            Loaded += OnLoaded;
            Unloaded += OnUnloaded;

            Focusable = true;
            ClipToBounds = true;
        }
Beispiel #7
0
        public UiDxViewport()
        {
            _grid = UiGridFactory.Create(2, 2);
            _grid.ColumnDefinitions[1].Width = GridLength.Auto;
            _grid.RowDefinitions[1].Height = GridLength.Auto;

            _verticalScrollBar = new ScrollBar {Orientation = Orientation.Vertical};
            {
                _verticalScrollBar.ValueChanged += OnVerticalScroll;
                _grid.AddUiElement(_verticalScrollBar, 0, 1);
            }

            _horizontalScrollBar = new ScrollBar {Orientation = Orientation.Horizontal};
            {
                _horizontalScrollBar.ValueChanged += OnHorizontalScroll;
                _grid.AddUiElement(_horizontalScrollBar, 1, 0);
            }

            DxControl = new UiDxControl();
            {
                DxControl.SizeChanged += OnDxControlSizeChanged;
                _grid.AddUiElement(DxControl, 0, 0);
            }

            VerticalAlignment = VerticalAlignment.Stretch;
            HorizontalAlignment = HorizontalAlignment.Stretch;

            Content = _grid;
        }
Beispiel #8
0
        /// <summary>
        /// Überschreibt Template-Definition
        /// </summary>
        public override void OnApplyTemplate()
        {
            // Call base class
            base.OnApplyTemplate();

            // Obtain the vertical scrollbar
            this.verticalScrollbar = this.GetTemplateChild("PART_VerticalScrollBar") as ScrollBar;
        }
Beispiel #9
0
		public ScrollBarAutomationPeer (ScrollBar owner)
			: base (owner)
		{
			owner.LayoutUpdated += (o, e) => { 
				children = null; 
				// This usually happends when orientation changes.
				RaiseAutomationEvent (AutomationEvents.StructureChanged);
			};
		}
Beispiel #10
0
        void LoadingListBox_Loaded(object sender, RoutedEventArgs e)
        {
             _viewer = this.GetVisualChildren().OfType<ScrollViewer>().FirstOrDefault();

            _scrollBar = _viewer.GetVisualDescendents().OfType<ScrollBar>().First(s => s.Name == "VerticalScrollBar");

            _scrollBar.ValueChanged += _scrollBar_ValueChanged;
           
        }
Beispiel #11
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
 {
     switch (connectionId)
     {
     case 1:
         this.scroll = ((System.Windows.Controls.Primitives.ScrollBar)(target));
         return;
     }
     this._contentLoaded = true;
 }
		public void PartBounds ()
		{
			Window w = new Window ();
			ScrollBar s = new ScrollBar ();
			w.Content = s;
			w.Show ();
			s.Value = s.Maximum;
			Assert.AreEqual (s.Track.Thumb.ActualWidth, 17, "Track.Thumb.ActualWidth");
			Assert.AreEqual (s.Track.Thumb.ActualHeight, 8, "Track.Thumb.ActualHeight");
		}
		public void OnApplyTemplate ()
		{
			ScrollBar p = new ScrollBar ();
			Window w = new Window ();
			w.Content = p;
			p.OnApplyTemplate ();
			w.Show ();
			Assert.IsTrue (p.Track.IsEnabled, "Track.IsEnabled");
			Assert.IsTrue (p.Track.IncreaseRepeatButton.IsEnabled, "Track.IncreaseRepeatButton.IsEnabled");
		}
		public void Command ()
		{
			ScrollBar s = new ScrollBar ();
			ScrollBar.LineDownCommand.Execute (null, s);
			Assert.AreEqual (s.Value, s.SmallChange, "Value after LineDown");
			s.Value = s.Maximum;
			Assert.IsTrue (ScrollBar.LineDownCommand.CanExecute (null, s), "Can execute LineDown");
			ScrollBar.LineDownCommand.Execute (null, s);
			Assert.AreEqual (s.Value, s.Maximum, "Value after LineDown 2");
		}
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MyTabControl = ((System.Windows.Controls.TabControl)(target));
                return;

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

            case 3:
                this.inkRadio = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 4:
                this.eraseRadio = ((System.Windows.Controls.RadioButton)(target));
                return;

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

            case 6:
                this.comboColors = ((System.Windows.Controls.ComboBox)(target));
                return;

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

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

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

            case 10:
                this.MyInkCanvas = ((System.Windows.Controls.InkCanvas)(target));
                return;

            case 11:
                this.mySB = ((System.Windows.Controls.Primitives.ScrollBar)(target));
                return;

            case 12:
                this.labelSBThumb = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
 private void ScrollBar_ValueChanged(System.Windows.Controls.Primitives.ScrollBar ScrollBar)
 {
     if (ScrollBar == hScrollBar1)
     {
         Methods.Solution.SolutionState.Main.SetViewPositionX((int)(ScrollBar.Value));
     }
     else
     {
         Methods.Solution.SolutionState.Main.SetViewPositionY((int)(ScrollBar.Value));
     }
 }
Beispiel #17
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Canvas = ((System.Windows.Controls.Canvas)(target));

            #line 10 "..\..\..\MainWindow.xaml"
                this.Canvas.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.OnCanvasClick);

            #line default
            #line hidden
                return;

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

            #line 13 "..\..\..\MainWindow.xaml"
                this.Button1.Click += new System.Windows.RoutedEventHandler(this.Button1_click);

            #line default
            #line hidden
                return;

            case 3:
                this.TextBox1 = ((System.Windows.Controls.TextBox)(target));

            #line 14 "..\..\..\MainWindow.xaml"
                this.TextBox1.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox1_TextChanged);

            #line default
            #line hidden
                return;

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

            case 5:
                this.ServerPort = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.scale_bar = ((System.Windows.Controls.Primitives.ScrollBar)(target));

            #line 18 "..\..\..\MainWindow.xaml"
                this.scale_bar.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.ScrollScaler);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #18
0
 private void ChangeScrollBar(object sender, RoutedEventArgs e)
 {
     spanel2.Children.Clear();
     hscrollb             = new ScrollBar();
     hscrollb.Orientation = Orientation.Horizontal;
     spanel2.Children.Add(hscrollb);
     txt = new TextBlock();
     txt.TextWrapping = System.Windows.TextWrapping.WrapWithOverflow;
     txt.Text         = "A horizontal scroll bar is a composite control that encapsulates several buttons (thumb and two repeat buttons) to expose horizontal scrolling functionality in a user interface.";
     spanel2.Children.Add(txt);
 }
Beispiel #19
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

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

            #line default
            #line hidden
                return;

            case 2:
                this.Chart = ((LiveCharts.Wpf.CartesianChart)(target));
                return;

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

            #line 24 "..\..\MainWindow.xaml"
                this.b2.Click += new System.Windows.RoutedEventHandler(this.b2_Click);

            #line default
            #line hidden
                return;

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

            #line 25 "..\..\MainWindow.xaml"
                this.b1.Click += new System.Windows.RoutedEventHandler(this.b1_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.label1 = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.scrollbar1 = ((System.Windows.Controls.Primitives.ScrollBar)(target));

            #line 27 "..\..\MainWindow.xaml"
                this.scrollbar1.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.ScrollBar_ValueChanged);

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

            case 2:
                this.Label1 = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.TextBox1 = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 5:
                this.TextBox2 = ((System.Windows.Controls.TextBox)(target));
                return;

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

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

            case 8:
                this.Label4 = ((System.Windows.Controls.Label)(target));
                return;

            case 9:
                this.TextBox4 = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 11:
                this.TextBox5 = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
        static void FindVerticalScrollbar(DependencyObject element, ref ScrollBar scrollBar)
        {
            for (int i = 0; i < VisualTreeHelper.GetChildrenCount(element); i++)
            {

                Visual child = (Visual)VisualTreeHelper.GetChild(element, i);
                if (child is ScrollBar)
                {
                    scrollBar = child as ScrollBar;
                    return;
                }
                else
                    FindVerticalScrollbar(child, ref scrollBar);
            }
        }
		public void OnApplyTemplate ()
		{
			ScrollBar p = new ScrollBar ();
			p.OnApplyTemplate ();
			Assert.IsNull (p.Track, "Track");
			Assert.IsTrue (p.IsEnabled, "IsEnabled");
			Assert.AreEqual (p.CommandBindings.Count, 0, "CommandBindings.Count");
			Window w = new Window ();
			w.Content = p;
			p.OnApplyTemplate ();
			Assert.IsNull (p.Track, "Track 2");
			Assert.IsTrue (p.IsEnabled, "IsEnabled 2");
			Assert.AreEqual (p.CommandBindings.Count, 0, "CommandBindings.Count");
			w.Show ();
		}
		public void Creation ()
		{
			ScrollBar p = new ScrollBar ();
			Assert.AreEqual (p.Value, 0, "Value");
			Assert.AreEqual (p.Minimum, 0, "Minimum");
			Assert.AreEqual (p.Maximum, 1, "Maximum");
			Assert.AreEqual (p.SmallChange, 0.1, "SmallChange");
			Assert.AreEqual (p.LargeChange, 1, "LargeChange");
			Assert.AreEqual (p.Orientation, Orientation.Vertical, "Orientation");
			Assert.IsNull (p.Track, "Track");
			Assert.IsTrue (p.IsEnabled, "IsEnabled");
			Assert.AreEqual (p.CommandBindings.Count, 0, "CommandBindings.Count");
			Assert.IsNull (p.ContextMenu, "ContextMenu");
			Assert.IsFalse (p.Focusable, "Focusable");
		}
    public void RefreshTemplate()
    {
      this.UnregisterEvents();

      var template = m_scrollViewer.Template;
      if( template != null )
      {
        this.HorizontalScrollBar = template.FindName( "PART_HorizontalScrollBar", m_scrollViewer ) as ScrollBar;
        this.VerticalScrollBar = template.FindName( "PART_VerticalScrollBar", m_scrollViewer ) as ScrollBar;
      }

      if( m_dragScrollBeginCallback != null || m_dragScrollEndCallback != null )
      {
        this.RegisterEvents();
      }
    }
Beispiel #25
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.scrollBar = ((System.Windows.Controls.Primitives.ScrollBar)(target));

            #line 10 "..\..\..\UserControls\СBasketUserControl.xaml"
                this.scrollBar.Scroll += new System.Windows.Controls.Primitives.ScrollEventHandler(this.ScrollBar_Scroll);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #26
0
        private void PART_VerticalScrollBar_IsEnabledChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            System.Windows.Controls.Primitives.ScrollBar sb = sender as System.Windows.Controls.Primitives.ScrollBar;

            if (sb != null)
            {
                if (sb.IsVisible)
                {
                    HeaderScroll.VerticalScrollBarVisibility = ScrollBarVisibility.Visible;
                }
                else
                {
                    HeaderScroll.VerticalScrollBarVisibility = ScrollBarVisibility.Hidden;
                }
            }
        }
        public ViewManager(MainWindow window)
        {
            _window = window;
            _mainContainer = (Grid)window.FindName("mainGrid");
            _imageScrollBar = (ScrollBar)window.FindName("imageScrollBar");
            _progressScrollBar = (ScrollBar)window.FindName("progressScrollBar");
            _rotateTransform = (RotateTransform)window.FindName("displayRotateTransform");
            _imageTranslateTransform = (TranslateTransform)window.FindName("imageTranslateTransform");

            _comicImage = (Image)window.FindName("comicImage");

            /*
            // NOTE: keep this code as an example on how to monitor property changes
            // This code is required because WPF Image control does not have a ImageLoaded event.
            DependencyPropertyDescriptor dpd = DependencyPropertyDescriptor.FromProperty(Image.SourceProperty, typeof(Image));
            dpd.AddValueChanged(_comicImage, OnImageChanged);
            */

            _imageViewbox = (Viewbox)window.FindName("imageViewbox");
            _imageViewbox.SizeChanged += OnImageViewboxSizeChanged;

            _pixelMatrix = PresentationSource.FromVisual(_window).CompositionTarget.TransformToDevice;

            _portraitStoryboard = (Storyboard)_window.TryFindResource("portraitStoryboard");
            _landscapeStoryboard = (Storyboard)_window.TryFindResource("landscapeStoryboard");
            _portraitStoryboard.Completed += OnRotationStoryboardCompleted;
            _landscapeStoryboard.Completed += OnRotationStoryboardCompleted;

            _translateXStoryboard = (Storyboard)_window.TryFindResource("translateXStoryboard");
            _translateYStoryboard = (Storyboard)_window.TryFindResource("translateYStoryboard");
            _translateXDoubleAnimation = (DoubleAnimation)_translateXStoryboard.Children[0];
            _translateYDoubleAnimation = (DoubleAnimation)_translateYStoryboard.Children[0];

            // Assumes both X and Y double animation have the same duration
            TRANSLATE_DURATION = _translateXDoubleAnimation.Duration;

            _numberingContainer = (Border)window.FindName("numberingBorder");

            _imageScrollBarAnimation = new DoubleAnimation();
            _imageScrollBarAnimation.Duration = new Duration(TimeSpan.FromMilliseconds(300));
            _imageScrollBarAnimation.EasingFunction = new CubicEase() { EasingMode = EasingMode.EaseOut };

            //TODO: add gesture handling
            /*_window.PreviewMouseMove += _window_MouseMove;*/
        }
        /// <summary>
        /// Creates a new HtmlPanel and sets a basic css for it's styling.
        /// </summary>
        public HtmlPanel()
        {
            _verticalScrollBar = new ScrollBar();
            _verticalScrollBar.Orientation = Orientation.Vertical;
            _verticalScrollBar.Width = 18;
            _verticalScrollBar.Scroll += OnScrollBarScroll;
            AddVisualChild(_verticalScrollBar);
            AddLogicalChild(_verticalScrollBar);

            _horizontalScrollBar = new ScrollBar();
            _horizontalScrollBar.Orientation = Orientation.Horizontal;
            _horizontalScrollBar.Height = 18;
            _horizontalScrollBar.Scroll += OnScrollBarScroll;
            AddVisualChild(_horizontalScrollBar);
            AddLogicalChild(_horizontalScrollBar);

            _htmlContainer.ScrollChange += OnScrollChange;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.DataDisplay = ((System.Windows.Controls.DataGrid)(target));

            #line 6 "..\..\..\MainWindow.xaml"
                this.DataDisplay.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.dataGrid1_SelectionChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.QueryBox = ((System.Windows.Controls.TextBox)(target));

            #line 7 "..\..\..\MainWindow.xaml"
                this.QueryBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.QueryBox_TextChanged);

            #line default
            #line hidden
                return;

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

            #line 8 "..\..\..\MainWindow.xaml"
                this.GoButton.Click += new System.Windows.RoutedEventHandler(this.button1_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.scrollBar1 = ((System.Windows.Controls.Primitives.ScrollBar)(target));
                return;

            case 5:
                this.DBSelect = ((System.Windows.Controls.ComboBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.TrimmingSlideControl = ((ControlsUnit.TrimmingSlide)(target));
                return;

            case 2:
                this._Time = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this._TotalTime = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this._PlaySlider = ((System.Windows.Controls.Primitives.ScrollBar)(target));

            #line 25 "..\..\TrimmingSlide.xaml"
                this._PlaySlider.Scroll += new System.Windows.Controls.Primitives.ScrollEventHandler(this._PlaySlider_Scroll);

            #line default
            #line hidden
                return;

            case 5:
                this._RangeSlider = ((Xceed.Wpf.Toolkit.RangeSlider)(target));

            #line 37 "..\..\TrimmingSlide.xaml"
                this._RangeSlider.HigherValueChanged += new System.Windows.RoutedEventHandler(this._RangeSlider_HigherValueChanged);

            #line default
            #line hidden

            #line 37 "..\..\TrimmingSlide.xaml"
                this._RangeSlider.LowerValueChanged += new System.Windows.RoutedEventHandler(this._RangeSlider_LowerValueChanged);

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

            case 4:
                this.LeftAlignmentView = ((System.Windows.Controls.ListBox)(target));
                return;

            case 5:
                this.hsbLeft = ((System.Windows.Controls.Primitives.ScrollBar)(target));

            #line 452 "..\..\..\Views\AlignmentEditor.xaml"
                this.hsbLeft.Scroll += new System.Windows.Controls.Primitives.ScrollEventHandler(this.OnHorizontalScroll);

            #line default
            #line hidden
                return;

            case 6:
                this.RightHeader = ((System.Windows.Controls.GridViewHeaderRowPresenter)(target));
                return;

            case 7:
                this.RightAlignmentView = ((System.Windows.Controls.ListBox)(target));
                return;

            case 8:
                this.hsbRight = ((System.Windows.Controls.Primitives.ScrollBar)(target));

            #line 484 "..\..\..\Views\AlignmentEditor.xaml"
                this.hsbRight.Scroll += new System.Windows.Controls.Primitives.ScrollEventHandler(this.OnHorizontalScroll);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #32
0
        //taken from http://blogs.msdn.com/b/slmperf/archive/2011/06/30/windows-phone-mango-change-listbox-how-to-detect-compression-end-of-scroll-states.aspx
        private void artistInfoPage_Loaded(object sender, RoutedEventArgs e)
        {
            if (alreadyHookedScrollEvents)
                return;

            alreadyHookedScrollEvents = true;
            sb = (ScrollBar)FindElementRecursive(similarArtists, typeof(ScrollBar));
            sv = (ScrollViewer)FindElementRecursive(similarArtists, typeof(ScrollViewer));

            if (sv != null)
            {
                FrameworkElement element = VisualTreeHelper.GetChild(sv, 0) as FrameworkElement;
                if (element != null)
                {
                    VisualStateGroup vgroup = FindVisualState(element, "VerticalCompression");
                    if (vgroup != null)
                        vgroup.CurrentStateChanging += new EventHandler<VisualStateChangedEventArgs>(vgroup_CurrentStateChanging);
                }
            }
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this._scrollBar = ((System.Windows.Controls.Primitives.ScrollBar)(target));
     
     #line 10 "..\..\..\..\Controls\Trajectory\TimeAxisScrollbar.xaml"
     this._scrollBar.MouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.OnHorScrollBarMouseWheel);
     
     #line default
     #line hidden
     
     #line 10 "..\..\..\..\Controls\Trajectory\TimeAxisScrollbar.xaml"
     this._scrollBar.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.OnScrollbarValueChanged);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Beispiel #34
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.iMain = ((System.Windows.Controls.Image)(target));
                return;

            case 2:
                this.sbVerticalCenter = ((System.Windows.Controls.Primitives.ScrollBar)(target));
                return;

            case 3:
                this.sbHorizontalCenter = ((System.Windows.Controls.Primitives.ScrollBar)(target));
                return;

            case 4:
                this.slSize = ((System.Windows.Controls.Slider)(target));
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #35
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.statusBar1 = ((System.Windows.Controls.Primitives.StatusBar)(target));
                return;

            case 2:
                this.scrollBar1 = ((System.Windows.Controls.Primitives.ScrollBar)(target));
                return;

            case 3:
                this.gridSplitter1 = ((System.Windows.Controls.GridSplitter)(target));
                return;

            case 4:
                this.textBox1 = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #36
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.listView = ((System.Windows.Controls.ListView)(target));

            #line 12 "..\..\..\Pages\Rooms.xaml"
                this.listView.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.listView_SelectionChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.scrollBar = ((System.Windows.Controls.Primitives.ScrollBar)(target));
                return;

            case 3:
                this.label = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #37
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainwindow = ((Player2.Window1)(target));

            #line 5 "..\..\Window1.xaml"
                this.mainwindow.Drop += new System.Windows.DragEventHandler(this.Files_Drop);

            #line default
            #line hidden
                return;

            case 2:

            #line 85 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.OpenFile_Click);

            #line default
            #line hidden
                return;

            case 3:

            #line 86 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.OpenFolder_Click);

            #line default
            #line hidden
                return;

            case 4:

            #line 87 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.OpenPlaylist_Click);

            #line default
            #line hidden
                return;

            case 5:

            #line 88 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SavePlaylist_Click);

            #line default
            #line hidden
                return;

            case 6:

            #line 90 "..\..\Window1.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.CloseApp_Click);

            #line default
            #line hidden
                return;

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

            #line 93 "..\..\Window1.xaml"
                this.StopBtn.Click += new System.Windows.RoutedEventHandler(this.StopBtn_Click);

            #line default
            #line hidden
                return;

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

            #line 95 "..\..\Window1.xaml"
                this.PauseBtn.Click += new System.Windows.RoutedEventHandler(this.PauseBtn_Click);

            #line default
            #line hidden
                return;

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

            #line 96 "..\..\Window1.xaml"
                this.StartBtn.Click += new System.Windows.RoutedEventHandler(this.StartBtn_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.media = ((System.Windows.Controls.MediaElement)(target));

            #line 97 "..\..\Window1.xaml"
                this.media.MediaOpened += new System.Windows.RoutedEventHandler(this.Media_MediaOpened);

            #line default
            #line hidden

            #line 97 "..\..\Window1.xaml"
                this.media.MediaEnded += new System.Windows.RoutedEventHandler(this.Media_MediaEnded);

            #line default
            #line hidden

            #line 97 "..\..\Window1.xaml"
                this.media.MediaFailed += new System.EventHandler <System.Windows.ExceptionRoutedEventArgs>(this.Media_MediaFailed);

            #line default
            #line hidden
                return;

            case 11:
                this.volSlider = ((System.Windows.Controls.Slider)(target));

            #line 98 "..\..\Window1.xaml"
                this.volSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.VolSlider_ValueChanged);

            #line default
            #line hidden
                return;

            case 12:
                this.posSlider = ((System.Windows.Controls.Slider)(target));

            #line 99 "..\..\Window1.xaml"
                this.posSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.PosSlider_ValueChanged);

            #line default
            #line hidden

            #line 99 "..\..\Window1.xaml"
                this.posSlider.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.PosSlider_PreviewMouseDown);

            #line default
            #line hidden

            #line 99 "..\..\Window1.xaml"
                this.posSlider.PreviewMouseUp += new System.Windows.Input.MouseButtonEventHandler(this.PosSlider_PreviewMouseUp);

            #line default
            #line hidden
                return;

            case 13:
                this.label1 = ((System.Windows.Controls.Label)(target));
                return;

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

            case 15:
                this.speedSlider = ((System.Windows.Controls.Slider)(target));

            #line 102 "..\..\Window1.xaml"
                this.speedSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.SpeedSlider_ValueChanged);

            #line default
            #line hidden
                return;

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

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

            #line 104 "..\..\Window1.xaml"
                this.balanceSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.BalanceSlider_ValueChanged);

            #line default
            #line hidden
                return;

            case 18:
                this.label4 = ((System.Windows.Controls.Label)(target));
                return;

            case 19:
                this.trackLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 20:
                this.label6 = ((System.Windows.Controls.Label)(target));
                return;

            case 21:
                this.playlistBox = ((System.Windows.Controls.ListBox)(target));
                return;

            case 22:
                this.scrollBar1 = ((System.Windows.Controls.Primitives.ScrollBar)(target));
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #38
0
 public override void OnApplyTemplate()
 {
     base.OnApplyTemplate();
     this.verticalScrollBar = this.GetTemplateChild("VerticalScrollBar") as ScrollBar;
 }
Beispiel #39
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.gridBase = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.cbBoxAxis1 = ((System.Windows.Controls.ComboBox)(target));

            #line 37 "..\..\..\FitCurves\FitCurvesSetting.xaml"
                this.cbBoxAxis1.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbBoxAxis_SelectionChanged);

            #line default
            #line hidden
                return;

            case 3:
                this.txtAxis_1_Min = ((System.Windows.Controls.TextBox)(target));
                return;

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

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

            case 6:

            #line 41 "..\..\..\FitCurves\FitCurvesSetting.xaml"
                ((System.Windows.Controls.Label)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.TextBlock_MouseDown);

            #line default
            #line hidden
                return;

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

            case 8:
                this.scrollBar_1 = ((System.Windows.Controls.Primitives.ScrollBar)(target));
                return;

            case 9:
                this.cbBoxAxis2 = ((System.Windows.Controls.ComboBox)(target));

            #line 46 "..\..\..\FitCurves\FitCurvesSetting.xaml"
                this.cbBoxAxis2.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbBoxAxis_SelectionChanged);

            #line default
            #line hidden
                return;

            case 10:
                this.txtAxis_2_Min = ((System.Windows.Controls.TextBox)(target));
                return;

            case 11:
                this.txtAxis_2_Max = ((System.Windows.Controls.TextBox)(target));
                return;

            case 12:
                this.tbkUnit2 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 13:

            #line 50 "..\..\..\FitCurves\FitCurvesSetting.xaml"
                ((System.Windows.Controls.Label)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.TextBlock_MouseDown);

            #line default
            #line hidden
                return;

            case 14:
                this.txtAxis_2_Linest = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 16:
                this.cbBoxAxis3 = ((System.Windows.Controls.ComboBox)(target));

            #line 55 "..\..\..\FitCurves\FitCurvesSetting.xaml"
                this.cbBoxAxis3.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbBoxAxis_SelectionChanged);

            #line default
            #line hidden
                return;

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

            case 18:
                this.txtAxis_3_Max = ((System.Windows.Controls.TextBox)(target));
                return;

            case 19:
                this.tbkUnit3 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 20:

            #line 59 "..\..\..\FitCurves\FitCurvesSetting.xaml"
                ((System.Windows.Controls.Label)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.TextBlock_MouseDown);

            #line default
            #line hidden
                return;

            case 21:
                this.txtAxis_3_Linest = ((System.Windows.Controls.TextBox)(target));
                return;

            case 22:
                this.scrollBar_3 = ((System.Windows.Controls.Primitives.ScrollBar)(target));
                return;

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

            #line 64 "..\..\..\FitCurves\FitCurvesSetting.xaml"
                this.cbBoxAxis4.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbBoxAxis_SelectionChanged);

            #line default
            #line hidden
                return;

            case 24:
                this.txtAxis_4_Min = ((System.Windows.Controls.TextBox)(target));
                return;

            case 25:
                this.txtAxis_4_Max = ((System.Windows.Controls.TextBox)(target));
                return;

            case 26:
                this.tbkUnit4 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 27:

            #line 68 "..\..\..\FitCurves\FitCurvesSetting.xaml"
                ((System.Windows.Controls.Label)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.TextBlock_MouseDown);

            #line default
            #line hidden
                return;

            case 28:
                this.txtAxis_4_Linest = ((System.Windows.Controls.TextBox)(target));
                return;

            case 29:
                this.scrollBar_4 = ((System.Windows.Controls.Primitives.ScrollBar)(target));
                return;

            case 30:
                this.cbBoxAxis5 = ((System.Windows.Controls.ComboBox)(target));

            #line 75 "..\..\..\FitCurves\FitCurvesSetting.xaml"
                this.cbBoxAxis5.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbBoxAxis_SelectionChanged);

            #line default
            #line hidden
                return;

            case 31:
                this.txtAxis_5_Min = ((System.Windows.Controls.TextBox)(target));
                return;

            case 32:
                this.txtAxis_5_Max = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 34:

            #line 79 "..\..\..\FitCurves\FitCurvesSetting.xaml"
                ((System.Windows.Controls.Label)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.TextBlock_MouseDown);

            #line default
            #line hidden
                return;

            case 35:
                this.btnDone = ((System.Windows.Controls.Button)(target));

            #line 82 "..\..\..\FitCurves\FitCurvesSetting.xaml"
                this.btnDone.Click += new System.Windows.RoutedEventHandler(this.button_Click);

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

            case 2:
                this.mediaFild2 = ((System.Windows.Controls.MediaElement)(target));
                return;

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

            #line 25 "..\..\MainWindow.xaml"
                this.ADD.Click += new System.Windows.RoutedEventHandler(this.ADD_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.LamTex = ((System.Windows.Controls.ListBox)(target));

            #line 27 "..\..\MainWindow.xaml"
                this.LamTex.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.ListMed_MouseDoubleClick);

            #line default
            #line hidden
                return;

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

            case 6:
                this.mediaFild1 = ((System.Windows.Controls.MediaElement)(target));

            #line 33 "..\..\MainWindow.xaml"
                this.mediaFild1.MediaOpened += new System.Windows.RoutedEventHandler(this.mediaFild1_MediaOpened);

            #line default
            #line hidden
                return;

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

            #line 35 "..\..\MainWindow.xaml"
                this.video_value.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.video_value_ValueChanged);

            #line default
            #line hidden
                return;

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

            case 9:

            #line 46 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Open_Click);

            #line default
            #line hidden
                return;

            case 10:

            #line 49 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Go_Click);

            #line default
            #line hidden
                return;

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

            case 12:

            #line 54 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Stop_Click);

            #line default
            #line hidden
                return;

            case 13:

            #line 59 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_left_Click);

            #line default
            #line hidden
                return;

            case 14:

            #line 64 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_right_Click);

            #line default
            #line hidden
                return;

            case 15:

            #line 69 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.StackPanel)(target)).MouseLeave += new System.Windows.Input.MouseEventHandler(this.StackPanel_MouseLeave);

            #line default
            #line hidden
                return;

            case 16:

            #line 75 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).MouseEnter += new System.Windows.Input.MouseEventHandler(this.Button_MouseEnter);

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

            case 17:
                this.VolumScr = ((System.Windows.Controls.Primitives.ScrollBar)(target));

            #line 81 "..\..\MainWindow.xaml"
                this.VolumScr.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.VolumScr_ValueChanged);

            #line default
            #line hidden
                return;

            case 18:

            #line 82 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Play_list_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #41
0
        /// <summary>
        /// Initializes this instance.
        /// </summary>
        protected virtual void Initialize()
        {
            ColumnDefinitions.Add(new ColumnDefinition() { Width = GridLength.Auto });
            ColumnDefinitions.Add(new ColumnDefinition());
            ColumnDefinitions.Add(new ColumnDefinition() { Width = GridLength.Auto });

            label = new TextBlock();
            label.VerticalAlignment = VerticalAlignment.Center;
            SetColumn(label, 0);
            Children.Add(label);

            textBox = new TextBox();
            textBox.TextChanged += TextBoxTextChanged;
            SetColumn(textBox, 1);
            Children.Add(textBox);

            scrollBar = new ScrollBar();
            scrollBar.Focusable = true;
            scrollBar.ContextMenu = null;
            scrollBar.Scroll += ScrollBarScroll;
            scrollBar.Margin = new Thickness(0, 1, 0, 0);
            scrollBar.MouseRightButtonDown += ScrollBarMouseRightButtonDown;
            SetColumn(scrollBar, 2);
            Children.Add(scrollBar);

            FormatString = "F0";
            Minimum = 0;
            Maximum = 100;
            SmallChange = 1;
            LargeChange = 10;
        }
Beispiel #42
0
 /// <summary>Constructor</summary>
 /// <param name="adornedElement">Adorned element PropertySheet</param>
 /// <param name="vertical">The vertical scrollbar.</param>
 public PropertySheetScrollAdorner(PropertySheet adornedElement, ScrollBar vertical)
     : base(adornedElement)
 {
     _vertical = vertical;
     CheckControlForExistingParent(_vertical);
     AddVisualChild(_vertical);
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 31 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_1);
     
     #line default
     #line hidden
     return;
     case 2:
     
     #line 32 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     this.rt1 = ((System.Windows.Controls.RichTextBox)(target));
     
     #line 46 "..\..\MainWindow.xaml"
     this.rt1.MouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.rt1_MouseWheel);
     
     #line default
     #line hidden
     return;
     case 4:
     this.documentScroll = ((System.Windows.Controls.Primitives.ScrollBar)(target));
     
     #line 52 "..\..\MainWindow.xaml"
     this.documentScroll.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.Documentscroll_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 5:
     this.TextBlock1 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 6:
     this.TextBox1 = ((System.Windows.Controls.TextBox)(target));
     
     #line 75 "..\..\MainWindow.xaml"
     this.TextBox1.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_TextChanged);
     
     #line default
     #line hidden
     return;
     case 7:
     this.ls1 = ((System.Windows.Controls.ListView)(target));
     
     #line 79 "..\..\MainWindow.xaml"
     this.ls1.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ListView_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 8:
     this.button1 = ((System.Windows.Controls.Button)(target));
     
     #line 107 "..\..\MainWindow.xaml"
     this.button1.Click += new System.Windows.RoutedEventHandler(this.Button_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
        private ScrollBar GetVerticalScrollBar()
        {
            // wire up events for the scrollbar
            var explorerTreeView = ExplorerTreeView;
            var scrollBar = (explorerTreeView == null ? null : ExplorerUtility.FindFirstVerticalScrollBar(explorerTreeView));

            // Is cached scrollbar the same as the one in the visual tree?
            if (!ReferenceEquals(_vScrollBar, scrollBar))
            {
                if (_vScrollBar != null)
                {
                    UnhookScrollBarEvents(_vScrollBar);
                    _vScrollBar = null;
                    _scrollViewer = null;
                }

                // wire up events for the scrollbar
                _vScrollBar = scrollBar;
                if (_vScrollBar != null)
                {
                    _vScrollBar.SizeChanged += VScrollBar_SizeChanged;
                    _vScrollBar.IsVisibleChanged += VScrollBar_IsVisibleChanged;
                    _vScrollBar.Unloaded += VScrollBar_Unloaded;
                }
            }

            return _vScrollBar;
        }
Beispiel #45
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Name = ((System.Windows.Controls.ColumnDefinition)(target));
                return;

            case 2:
                this.Additional = ((System.Windows.Controls.ColumnDefinition)(target));
                return;

            case 3:
                this.Buttons = ((System.Windows.Controls.ColumnDefinition)(target));
                return;

            case 4:

            #line 118 "..\..\MainWindow.xaml"
                ((System.Windows.Shapes.Rectangle)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Rectangle_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

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

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

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

            case 8:
                this.labelTitle = ((System.Windows.Controls.Label)(target));

            #line 153 "..\..\MainWindow.xaml"
                this.labelTitle.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Rectangle_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 9:
                this.comboBoxScrollColor = ((System.Windows.Controls.ComboBox)(target));
                return;

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

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

            case 12:
                this.TextBlockStatus = ((System.Windows.Controls.TextBlock)(target));
                return;

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

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

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

            case 16:
                this.scrollBar = ((System.Windows.Controls.Primitives.ScrollBar)(target));
                return;

            case 17:
                this.dataGrid = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 18:
                this.listBox = ((System.Windows.Controls.ListView)(target));
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #46
0
 /// <summary>Constructor</summary>
 /// <param name="adornedElement">Adorned element EditForm</param>
 /// <param name="horizontal">The horizontal scrollbar.</param>
 /// <param name="vertical">The vertical scrollbar.</param>
 public EditFormScrollAdorner(EditForm adornedElement, ScrollBar horizontal, ScrollBar vertical)
     : base(adornedElement)
 {
     _horizontal = horizontal;
     _vertical = vertical;
     CheckControlForExistingParent(_horizontal);
     AddVisualChild(_horizontal);
     CheckControlForExistingParent(_vertical);
     AddVisualChild(_vertical);
 }
Beispiel #47
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 10 "..\..\..\HalfCirclePanel\HalfCircleExample.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.GoToNextItem);

            #line default
            #line hidden

            #line 11 "..\..\..\HalfCirclePanel\HalfCircleExample.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.CanGoToNextItem);

            #line default
            #line hidden
                return;

            case 2:

            #line 13 "..\..\..\HalfCirclePanel\HalfCircleExample.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.GoToPreviousItem);

            #line default
            #line hidden

            #line 14 "..\..\..\HalfCirclePanel\HalfCircleExample.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.CanGoToPreviousItem);

            #line default
            #line hidden
                return;

            case 3:
                this.ItemGapSlider = ((System.Windows.Controls.Slider)(target));
                return;

            case 4:
                this.ItemWidthSlider = ((System.Windows.Controls.Slider)(target));
                return;

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

            case 6:

            #line 84 "..\..\..\HalfCirclePanel\HalfCircleExample.xaml"
                ((System.Windows.Controls.RadioButton)(target)).Click += new System.Windows.RoutedEventHandler(this.ChangeOrientation);

            #line default
            #line hidden
                return;

            case 7:

            #line 88 "..\..\..\HalfCirclePanel\HalfCircleExample.xaml"
                ((System.Windows.Controls.RadioButton)(target)).Click += new System.Windows.RoutedEventHandler(this.ChangeOrientation);

            #line default
            #line hidden
                return;

            case 8:
                this.Scroller = ((System.Windows.Controls.Primitives.ScrollBar)(target));
                return;

            case 9:
                this.CircPanel = ((FluidKit.Controls.HalfCirclePanel)(target));
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #48
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Window = ((WpfFlashPlayer.MainWindow)(target));

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

            #line default
            #line hidden
                return;

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

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

            #line 11 "..\..\MainWindow.xaml"
                this.button.Click += new System.Windows.RoutedEventHandler(this.button_Click);

            #line default
            #line hidden
                return;

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

            #line 12 "..\..\MainWindow.xaml"
                this.button_Pause.Click += new System.Windows.RoutedEventHandler(this.button_Pause_Click);

            #line default
            #line hidden
                return;

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

            #line 13 "..\..\MainWindow.xaml"
                this.button_Play.Click += new System.Windows.RoutedEventHandler(this.button_Play_Click);

            #line default
            #line hidden
                return;

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

            #line 14 "..\..\MainWindow.xaml"
                this.button_Stop.Click += new System.Windows.RoutedEventHandler(this.button_Stop_Click);

            #line default
            #line hidden
                return;

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

            #line 15 "..\..\MainWindow.xaml"
                this.button_Repeat.Click += new System.Windows.RoutedEventHandler(this.button_Repeat_Click);

            #line default
            #line hidden
                return;

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

            #line 16 "..\..\MainWindow.xaml"
                this.button_Forward.Click += new System.Windows.RoutedEventHandler(this.button_Forward_Click);

            #line default
            #line hidden
                return;

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

            #line 17 "..\..\MainWindow.xaml"
                this.button_Back.Click += new System.Windows.RoutedEventHandler(this.button_Back_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.repeatforward = ((System.Windows.Controls.Primitives.RepeatButton)(target));

            #line 18 "..\..\MainWindow.xaml"
                this.repeatforward.Click += new System.Windows.RoutedEventHandler(this.repeatforward_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.repeatback = ((System.Windows.Controls.Primitives.RepeatButton)(target));

            #line 19 "..\..\MainWindow.xaml"
                this.repeatback.Click += new System.Windows.RoutedEventHandler(this.repeatback_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.wfh = ((System.Windows.Forms.Integration.WindowsFormsHost)(target));
                return;

            case 13:
                this.sbar = ((System.Windows.Controls.Primitives.ScrollBar)(target));

            #line 21 "..\..\MainWindow.xaml"
                this.sbar.Scroll += new System.Windows.Controls.Primitives.ScrollEventHandler(this.sbar_Scroll);

            #line default
            #line hidden
                return;

            case 14:
                this.tb = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 15:
                this.tb1 = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
        public PivotGridControl()
        {
            IsTabStop = true;

            LayoutRoot = new Grid();
            LayoutRoot.RowDefinitions.Add(new RowDefinition());
            LayoutRoot.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
            LayoutRoot.ColumnDefinitions.Add(new ColumnDefinition());
            LayoutRoot.ColumnDefinitions.Add(new ColumnDefinition() { Width = GridLength.Auto });

            StyleContainer styleContainer = new StyleContainer();

            m_HorizontalScroll = new ScrollBar();
            m_HorizontalScroll.Orientation = Orientation.Horizontal;
            LayoutRoot.Children.Add(m_HorizontalScroll);
            Grid.SetColumn(m_HorizontalScroll, 0);
            Grid.SetRow(m_HorizontalScroll, 1);
            m_HorizontalScroll.SmallChange = 1;
            m_HorizontalScroll.LargeChange = 1;
            m_HorizontalScroll.Minimum = 0;
            m_HorizontalScroll.Maximum = 0;
            m_HorizontalScroll.Scroll += new ScrollEventHandler(m_HorizontalScroll_Scroll);
            m_HorizontalScroll.ValueChanged += new RoutedPropertyChangedEventHandler<double>(m_HorizontalScroll_ValueChanged);
            m_HorizontalScroll.Visibility = Visibility.Collapsed;

            m_VerticalScroll = new ScrollBar();
            m_VerticalScroll.Orientation = Orientation.Vertical;
            LayoutRoot.Children.Add(m_VerticalScroll);
            Grid.SetColumn(m_VerticalScroll, 1);
            Grid.SetRow(m_VerticalScroll, 0);
            m_VerticalScroll.SmallChange = 1;
            m_VerticalScroll.LargeChange = 1;
            m_VerticalScroll.Minimum = 0;
            m_VerticalScroll.Maximum = 0;
            m_VerticalScroll.Scroll += new ScrollEventHandler(m_VerticalScroll_Scroll);
            m_VerticalScroll.ValueChanged += new RoutedPropertyChangedEventHandler<double>(m_VerticalScroll_ValueChanged);
            m_VerticalScroll.Visibility = Visibility.Collapsed;

            if (styleContainer.Resources != null &&
                styleContainer.Resources.Contains("ScrollBarGlowStyle"))
            {
                m_HorizontalScroll.Style = styleContainer.Resources["ScrollBarGlowStyle"] as Style;
                m_VerticalScroll.Style = styleContainer.Resources["ScrollBarGlowStyle"] as Style;
            }

            ItemsLayoutRoot = new Grid();
            // Чтобы работало колесо мыши льём цветом
            ItemsLayoutRoot.Background = new SolidColorBrush(Colors.White);
            LayoutRoot.Children.Add(ItemsLayoutRoot);
            this.Content = LayoutRoot;

            m_VericalScroll_Timer = new Storyboard();
            m_VericalScroll_Timer.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 250));
            m_VericalScroll_Timer.Completed += new EventHandler(m_VericalScroll_Timer_Completed);
            LayoutRoot.Resources.Add("m_VericalScroll_Timer", m_VericalScroll_Timer);

            m_HorizontalScroll_Timer = new Storyboard();
            m_HorizontalScroll_Timer.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 250));
            m_HorizontalScroll_Timer.Completed += new EventHandler(m_HorizontalScroll_Timer_Completed);
            LayoutRoot.Resources.Add("m_HorizontalScroll_Timer", m_HorizontalScroll_Timer);

            GradientStopCollection stops = new GradientStopCollection();
            GradientStop stop0 = new GradientStop();
            stop0.Color = Colors.White;
            GradientStop stop1 = new GradientStop();
            stop1.Color = Colors.LightGray;
            stop1.Offset = 1;
            stops.Add(stop0);
            stops.Add(stop1);
            m_MembersBackground = new LinearGradientBrush(stops, 90);

            m_CellsBackground = new SolidColorBrush(Colors.White);
            m_CellsBorder = new SolidColorBrush(Colors.DarkGray);

            m_MembersBorder = new SolidColorBrush(Colors.DarkGray);

            //ItemsLayoutRoot.AttachContextMenu(p => GetCurrentContextMenu(p));
            UseContextMenu = true;

            this.KeyDown += new KeyEventHandler(SpanCellsAreaControl_KeyDown);
            ItemsLayoutRoot.KeyDown += new KeyEventHandler(SpanCellsAreaControl_KeyDown);
            this.GotFocus += new RoutedEventHandler(PivotGridControl_GotFocus);

            ItemsLayoutRoot.MouseEnter += new MouseEventHandler(CellsAreaControl_MouseEnter);
            ItemsLayoutRoot.MouseLeave += new MouseEventHandler(CellsAreaControl_MouseLeave);
            SelectionManager.SelectionChanged += new EventHandler(SelectionManager_SelectionChanged);

            m_Refresh_Timer = new Storyboard();
            m_Refresh_Timer.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 50));
            m_Refresh_Timer.Completed += new EventHandler(m_Refresh_Timer_Completed);
            LayoutRoot.Resources.Add("m_Refresh_Timer", m_Refresh_Timer);

            this.SizeChanged += new SizeChangedEventHandler(PivotGridControl_SizeChanged);

            m_VericalMouseWhellSupport = new ScrollBarMouseWheelSupport();
            m_VericalMouseWhellSupport.AddMouseWheelSupport(m_VerticalScroll);

            m_HorizontalMouseWhellSupport = new ScrollBarMouseWheelSupport() { IsHorizontal = true };
            m_HorizontalMouseWhellSupport.AddMouseWheelSupport(m_HorizontalScroll);

            TooltipManager = new TooltipController(this);
            TooltipManager.BeforeOpen += new EventHandler<CustomEventArgs<Point>>(TooltipManager_BeforeOpen);
            TooltipManager.ToolTipContent = new ToolTipControl();
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 10 "..\..\MainWindow.xaml"
                ((FusionEditor.MainWindow)(target)).ContentRendered += new System.EventHandler(this.Window_ContentRendered);

            #line default
            #line hidden
                return;

            case 2:
                this.characterView = ((FusionEditor.CharacterView)(target));
                return;

            case 3:
                this.scaleSlider = ((System.Windows.Controls.Slider)(target));
                return;

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

            #line 30 "..\..\MainWindow.xaml"
                this.actors.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.actors_SelectionChanged);

            #line default
            #line hidden
                return;

            case 5:
                this.animations = ((System.Windows.Controls.ComboBox)(target));

            #line 31 "..\..\MainWindow.xaml"
                this.animations.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.animations_SelectionChanged);

            #line default
            #line hidden
                return;

            case 6:
                this.frames = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 7:
                this.checkAttackBoxes = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 8:
                this.checkBodyBoxes = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 9:
                this.checkBoundsBoxes = ((System.Windows.Controls.CheckBox)(target));
                return;

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

            case 11:
                this.animationsLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 12:
                this.framesLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 13:
                this.comboBoxType = ((System.Windows.Controls.ComboBox)(target));
                return;

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

            case 15:
                this.comboBoxItems = ((System.Windows.Controls.ComboBox)(target));
                return;

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

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

            case 18:
                this.boxWidthLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 19:
                this.boxHeightLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 20:
                this.boxHeight = ((System.Windows.Controls.TextBox)(target));
                return;

            case 21:
                this.boxX = ((System.Windows.Controls.TextBox)(target));
                return;

            case 22:
                this.boxXLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 23:
                this.boxYLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 24:
                this.boxY = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 26:
                this.checkBaseSprite = ((System.Windows.Controls.CheckBox)(target));
                return;

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

            case 28:
                this.labelOffX1 = ((System.Windows.Controls.Label)(target));
                return;

            case 29:
                this.labelOffY = ((System.Windows.Controls.Label)(target));
                return;

            case 30:
                this.frameY = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 32:
                this.label = ((System.Windows.Controls.Label)(target));
                return;

            case 33:
                this.label_Copy = ((System.Windows.Controls.Label)(target));
                return;

            case 34:
                this.spriteBoxX = ((System.Windows.Controls.TextBox)(target));
                return;

            case 35:
                this.labelSX = ((System.Windows.Controls.Label)(target));
                return;

            case 36:
                this.labelSY = ((System.Windows.Controls.Label)(target));
                return;

            case 37:
                this.spriteBoxY = ((System.Windows.Controls.TextBox)(target));
                return;

            case 38:
                this.label_Copy1 = ((System.Windows.Controls.Label)(target));
                return;

            case 39:
                this.scrollBar = ((System.Windows.Controls.Primitives.ScrollBar)(target));

            #line 72 "..\..\MainWindow.xaml"
                this.scrollBar.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.scrollBar_ValueChanged);

            #line default
            #line hidden
                return;

            case 40:
                this.btnAddBox = ((System.Windows.Controls.Button)(target));
                return;

            case 41:
                this.labelBaseProp = ((System.Windows.Controls.Label)(target));
                return;

            case 42:
                this.baseX = ((System.Windows.Controls.Label)(target));
                return;

            case 43:
                this.baseY = ((System.Windows.Controls.Label)(target));
                return;

            case 44:
                this.btnRemoveBox = ((System.Windows.Controls.Button)(target));
                return;

            case 45:
                this.baseTextX = ((System.Windows.Controls.TextBox)(target));
                return;

            case 46:
                this.baseTextY = ((System.Windows.Controls.TextBox)(target));

            #line 88 "..\..\MainWindow.xaml"
                this.baseTextY.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.textBox1_TextChanged);

            #line default
            #line hidden
                return;

            case 47:
                this.labelPosition = ((System.Windows.Controls.Label)(target));
                return;

            case 48:
                this.posXLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 49:
                this.posyLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 50:
                this.posTextX = ((System.Windows.Controls.TextBox)(target));
                return;

            case 51:
                this.posTextY = ((System.Windows.Controls.TextBox)(target));

            #line 93 "..\..\MainWindow.xaml"
                this.posTextY.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.textBox1_TextChanged);

            #line default
            #line hidden
                return;

            case 52:
                this.baseSave = ((System.Windows.Controls.Button)(target));
                return;

            case 53:
                this.posSave = ((System.Windows.Controls.Button)(target));
                return;

            case 54:
                this.labelShadow = ((System.Windows.Controls.Label)(target));
                return;

            case 55:
                this.shadowPosXLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 56:
                this.shadowPosYLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 57:
                this.shadowX = ((System.Windows.Controls.TextBox)(target));
                return;

            case 58:
                this.shadowY = ((System.Windows.Controls.TextBox)(target));

            #line 100 "..\..\MainWindow.xaml"
                this.shadowY.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.textBox1_TextChanged);

            #line default
            #line hidden
                return;

            case 59:
                this.shadowSave = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #51
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Button = ((System.Windows.Controls.Button)(target));

            #line 10 "..\..\MainWindow.xaml"
                this.Button.Click += new System.Windows.RoutedEventHandler(this.button_Click);

            #line default
            #line hidden
                return;

            case 2:
                this.DropListBox = ((System.Windows.Controls.ListBox)(target));

            #line 11 "..\..\MainWindow.xaml"
                this.DropListBox.Drop += new System.Windows.DragEventHandler(this.FilesDropped);

            #line default
            #line hidden
                return;

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

            #line 12 "..\..\MainWindow.xaml"
                this.button1.Click += new System.Windows.RoutedEventHandler(this.button1_Click);

            #line default
            #line hidden
                return;

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

            #line 13 "..\..\MainWindow.xaml"
                this.button2.Click += new System.Windows.RoutedEventHandler(this.button2_Click);

            #line default
            #line hidden
                return;

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

            #line 14 "..\..\MainWindow.xaml"
                this.button3.Click += new System.Windows.RoutedEventHandler(this.button3_Click);

            #line default
            #line hidden
                return;

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

            #line 15 "..\..\MainWindow.xaml"
                this.button4.Click += new System.Windows.RoutedEventHandler(this.button4_Click);

            #line default
            #line hidden
                return;

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

            case 8:
                this.scrollBar = ((System.Windows.Controls.Primitives.ScrollBar)(target));
                return;

            case 9:
                this.checkBox = ((System.Windows.Controls.CheckBox)(target));

            #line 18 "..\..\MainWindow.xaml"
                this.checkBox.Checked += new System.Windows.RoutedEventHandler(this.checkBox_Checked);

            #line default
            #line hidden

            #line 18 "..\..\MainWindow.xaml"
                this.checkBox.Unchecked += new System.Windows.RoutedEventHandler(this.checkBox_Unchecked);

            #line default
            #line hidden
                return;

            case 10:
                this.treeView = ((System.Windows.Controls.TreeView)(target));

            #line 19 "..\..\MainWindow.xaml"
                this.treeView.Loaded += new System.Windows.RoutedEventHandler(this.TreeView_Loaded);

            #line default
            #line hidden

            #line 19 "..\..\MainWindow.xaml"
                this.treeView.SelectedItemChanged += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.TreeView_SelectedItemChanged);

            #line default
            #line hidden
                return;

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

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

            case 13:
                this.PtextBlock = ((System.Windows.Controls.TextBox)(target));
                return;

            case 14:
                this.StextBlock = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
 /// <summary>Constructor</summary>
 /// <param name="adornedElement">Adorned element</param>
 /// <param name="horizontal">The horizontal scrollbar.</param>
 /// <param name="vertical">The vertical scrollbar.</param>
 public BidirectionalStackPanelScrollAdorner(BidirectionalStackPanel adornedElement, ScrollBar horizontal, ScrollBar vertical)
     : base(adornedElement)
 {
     _horizontal = horizontal;
     _vertical = vertical;
     CheckControlForExistingParent(_horizontal);
     AddVisualChild(_horizontal);
     CheckControlForExistingParent(_vertical);
     AddVisualChild(_vertical);
 }
 private void UnhookScrollBarEvents(ScrollBar scrollBar)
 {
     if (scrollBar != null)
     {
         scrollBar.SizeChanged -= VScrollBar_SizeChanged;
         scrollBar.IsVisibleChanged -= VScrollBar_IsVisibleChanged;
         scrollBar.Unloaded -= VScrollBar_Unloaded;
     }
 }
        // Load data for the ViewModel Items
        private void MainPage_Loaded(object sender, RoutedEventArgs e)
        {
            if (!App.ViewModel.IsDataLoaded)
            {
                App.ViewModel.LoadData();
            }

            if (alreadyHookedScrollEvents)
                return;

            alreadyHookedScrollEvents = true;
            MainListBox.AddHandler(ListBox.ManipulationCompletedEvent, (EventHandler<ManipulationCompletedEventArgs>)LB_ManipulationCompleted, true);

            sb = (ScrollBar)FindElementRecursive(MainListBox, typeof(ScrollBar));
            sv = (ScrollViewer)FindElementRecursive(MainListBox, typeof(ScrollViewer));

            if (sv != null)
            {
                // Visual States are always on the first child of the control template
                FrameworkElement element = VisualTreeHelper.GetChild(sv, 0) as FrameworkElement;
                if (element != null)
                {
                    VisualStateGroup group = FindVisualState(element, "ScrollStates");
                    if (group != null)
                    {
                        group.CurrentStateChanging += new EventHandler<VisualStateChangedEventArgs>(group_CurrentStateChanging);
                    }
                    VisualStateGroup vgroup = FindVisualState(element, "VerticalCompression");
                    VisualStateGroup hgroup = FindVisualState(element, "HorizontalCompression");
                    if (vgroup != null)
                    {
                        vgroup.CurrentStateChanging += new EventHandler<VisualStateChangedEventArgs>(vgroup_CurrentStateChanging);
                    }
                    if (hgroup != null)
                    {
                        hgroup.CurrentStateChanging += new EventHandler<VisualStateChangedEventArgs>(hgroup_CurrentStateChanging);
                    }
                }
            }
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 4 "..\..\Window_convention03_zbModleSetting.xaml"
     ((Wpf5320.Window_convention03_zbModleSetting)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseDown_1);
     
     #line default
     #line hidden
     return;
     case 2:
     this.TabControl1 = ((System.Windows.Controls.TabControl)(target));
     return;
     case 3:
     this.scrollBar = ((System.Windows.Controls.Primitives.ScrollBar)(target));
     return;
     case 4:
     this.Bt_Power = ((System.Windows.Controls.Button)(target));
     
     #line 71 "..\..\Window_convention03_zbModleSetting.xaml"
     this.Bt_Power.Click += new System.Windows.RoutedEventHandler(this.Bt_Power_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.ESC = ((System.Windows.Controls.Button)(target));
     
     #line 72 "..\..\Window_convention03_zbModleSetting.xaml"
     this.ESC.Click += new System.Windows.RoutedEventHandler(this.ESC_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.ENT = ((System.Windows.Controls.Button)(target));
     
     #line 73 "..\..\Window_convention03_zbModleSetting.xaml"
     this.ENT.Click += new System.Windows.RoutedEventHandler(this.ESC_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.systime = ((System.Windows.Controls.Label)(target));
     return;
     case 8:
     this.Cancel = ((System.Windows.Controls.Button)(target));
     
     #line 77 "..\..\Window_convention03_zbModleSetting.xaml"
     this.Cancel.Click += new System.Windows.RoutedEventHandler(this.ESC_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this.Ensure = ((System.Windows.Controls.Button)(target));
     
     #line 78 "..\..\Window_convention03_zbModleSetting.xaml"
     this.Ensure.Click += new System.Windows.RoutedEventHandler(this.ENT_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.Battery1 = ((System.Windows.Controls.Button)(target));
     
     #line 80 "..\..\Window_convention03_zbModleSetting.xaml"
     this.Battery1.Click += new System.Windows.RoutedEventHandler(this.Battery_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
        private void Dispose(bool disposing)
        {
            if (disposing)
            {
                OnResetSearchCommand();
                EditingContext = null;

                _deferredExpansionAndCalculateAdorners.Dispose();
                _deferredExpansionAndCalculateAdorners = null;
                _deferredUpdateNextAndPreviousSearchResults.Dispose();
                _deferredUpdateNextAndPreviousSearchResults = null;

                UnhookScrollBarEvents(_vScrollBar);
                _vScrollBar = null;

                if (_frameTreeView != null)
                {
                    _frameTreeView.ContextMenuOpening -= OnContextMenuOpening;
                    _frameTreeView.PreviewMouseDown -= OnTreeViewPreviewMouseDown;
                    _frameTreeView.PreviewMouseMove -= OnTreeViewPreviewMouseMove;
                    _frameTreeView.PreviewMouseUp -= OnTreeViewPreviewMouseUp;
                    _frameTreeView = null;
                }

                if (_frameContent != null)
                {
                    _frameContent.Dispose();
                    _frameContent = null;
                }
            }
        }
Beispiel #57
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;
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.inHours = ((System.Windows.Controls.TextBox)(target));
     return;
     case 2:
     this.sbH = ((System.Windows.Controls.Primitives.ScrollBar)(target));
     return;
     case 3:
     this.inMinutes = ((System.Windows.Controls.TextBox)(target));
     return;
     case 4:
     this.sbM = ((System.Windows.Controls.Primitives.ScrollBar)(target));
     return;
     case 5:
     this.inSeconds = ((System.Windows.Controls.TextBox)(target));
     return;
     case 6:
     this.sbS = ((System.Windows.Controls.Primitives.ScrollBar)(target));
     return;
     }
     this._contentLoaded = true;
 }
        /// <summary>
        /// OnApplyTemplate override, used to locate template parts.
        /// </summary>
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            // Find the template parts. Create dummy objects if parts are missing to avoid
            // null checks throughout the code (although we can't escape them completely.)
            _itemsPanel = GetTemplateChild(ItemsPanelName) as Panel ?? new Canvas();
            _panningTransform = GetTemplateChild(PanningTransformName) as TranslateTransform ?? new TranslateTransform();
            _verticalScrollbar = GetTemplateChild(VerticalScrollBarName) as ScrollBar ?? new ScrollBar();

            _panelAnimation = new DoubleAnimation();
            Storyboard.SetTarget(_panelAnimation, _panningTransform);
            Storyboard.SetTargetProperty(_panelAnimation, new PropertyPath("Y"));

            _panelStoryboard = new Storyboard();
            _panelStoryboard.Children.Add(_panelAnimation);
            _panelStoryboard.Completed += PanelStoryboardCompleted;

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

            #line 9 "..\..\RealTimeZoomScrollWindow.xaml"
                ((CSharpWPFCharts.RealTimeZoomScrollWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.pointerPB = ((System.Windows.Controls.RadioButton)(target));

            #line 15 "..\..\RealTimeZoomScrollWindow.xaml"
                this.pointerPB.Checked += new System.Windows.RoutedEventHandler(this.pointerPB_Checked);

            #line default
            #line hidden
                return;

            case 3:
                this.zoomInPB = ((System.Windows.Controls.RadioButton)(target));

            #line 21 "..\..\RealTimeZoomScrollWindow.xaml"
                this.zoomInPB.Checked += new System.Windows.RoutedEventHandler(this.zoomInPB_Checked);

            #line default
            #line hidden
                return;

            case 4:
                this.zoomOutPB = ((System.Windows.Controls.RadioButton)(target));

            #line 27 "..\..\RealTimeZoomScrollWindow.xaml"
                this.zoomOutPB.Checked += new System.Windows.RoutedEventHandler(this.zoomOutPB_Checked);

            #line default
            #line hidden
                return;

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

            #line 33 "..\..\RealTimeZoomScrollWindow.xaml"
                this.savePB.Click += new System.Windows.RoutedEventHandler(this.savePB_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.samplePeriod = ((System.Windows.Controls.ComboBox)(target));

            #line 40 "..\..\RealTimeZoomScrollWindow.xaml"
                this.samplePeriod.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.samplePeriod_SelectionChanged);

            #line default
            #line hidden
                return;

            case 7:
                this.valueA = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.valueB = ((System.Windows.Controls.Label)(target));
                return;

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

            case 10:
                this.WPFChartViewer1 = ((ChartDirector.WPFChartViewer)(target));

            #line 69 "..\..\RealTimeZoomScrollWindow.xaml"
                this.WPFChartViewer1.ViewPortChanged += new ChartDirector.WPFViewPortEventHandler(this.WPFChartViewer1_ViewPortChanged);

            #line default
            #line hidden

            #line 69 "..\..\RealTimeZoomScrollWindow.xaml"
                this.WPFChartViewer1.MouseMovePlotArea += new System.Windows.Input.MouseEventHandler(this.WPFChartViewer1_MouseMovePlotArea);

            #line default
            #line hidden
                return;

            case 11:
                this.hScrollBar1 = ((System.Windows.Controls.Primitives.ScrollBar)(target));

            #line 70 "..\..\RealTimeZoomScrollWindow.xaml"
                this.hScrollBar1.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.hScrollBar1_ValueChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }