Exemplo n.º 1
0
 /// <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);
 }
Exemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.wnd = ((CODE.Framework.Wpf.TestBench.BiStackTest)(target));
                return;

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

            case 3:

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

            #line default
            #line hidden
                return;

            case 4:
                this.stack = ((CODE.Framework.Wpf.Layout.BidirectionalStackPanel)(target));
                return;

            case 5:

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

            #line default
            #line hidden
                return;

            case 6:
                this.bd = ((System.Windows.Controls.Border)(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);
 }