protected override void InitializeScrollBehaviorObserver() { // We implement Scroll logic this way because the internal // control in charge of handling scrolling is disposed when // DropDownStyle is changed and is Expanded/Collapsed if (observer != null && (ListBoxControl == null || ListBoxControl != listControl)) { observer.ScrollPatternSupportChanged -= OnScrollPatternSupportChanged; observer.Terminate(); SetBehavior(ScrollPatternIdentifiers.Pattern, null); } if (ListBoxControl != null && ListBoxControl != listControl) { if (ListBoxControl != null) { observer = new ScrollBehaviorObserver(this, null, VerticalScrollBar); observer.ScrollPatternSupportChanged += OnScrollPatternSupportChanged; observer.Initialize(); UpdateScrollBehavior(observer); ListBoxControl.Disposed += delegate(object obj, EventArgs args) { observer.Terminate(); SetBehavior(ScrollPatternIdentifiers.Pattern, null); listControl = null; }; } listControl = ListBoxControl; } }
public override void Initialize() { base.Initialize(); observer = new ScrollBehaviorObserver(this, printPreviewControl.UIAVScrollBar, printPreviewControl.UIAHScrollBar); observer.ScrollPatternSupportChanged += OnScrollPatternSupportChanged; UpdateScrollBehavior(); }
public override void Initialize () { base.Initialize (); observer = new ScrollBehaviorObserver (this, printPreviewControl.UIAVScrollBar, printPreviewControl.UIAHScrollBar); observer.ScrollPatternSupportChanged += OnScrollPatternSupportChanged; UpdateScrollBehavior (); }
protected virtual void InitializeScrollBehaviorObserver() { // Updates Navigation and sets/unsets Scroll Pattern observer = new ScrollBehaviorObserver(this, HorizontalScrollBar, VerticalScrollBar); observer.ScrollPatternSupportChanged += OnScrollPatternSupportChanged; observer.Initialize(); UpdateScrollBehavior(); }
public override void InitializeChildControlStructure () { base.InitializeChildControlStructure (); observer = new ScrollBehaviorObserver ( this, scrollableControl.hscrollbar, scrollableControl.vscrollbar); observer.ScrollPatternSupportChanged += OnScrollPatternSupportChanged; observer.Initialize (); UpdateScrollBehavior (); }
public override void InitializeChildControlStructure() { base.InitializeChildControlStructure(); observer = new ScrollBehaviorObserver( this, scrollableControl.hscrollbar, scrollableControl.vscrollbar); observer.ScrollPatternSupportChanged += OnScrollPatternSupportChanged; observer.Initialize(); UpdateScrollBehavior(); }
public override void Initialize() { base.Initialize(); observer = new ScrollBehaviorObserver(this, treeView.UIAHScrollBar, treeView.UIAVScrollBar); observer.ScrollPatternSupportChanged += OnScrollPatternSupportChanged; UpdateBehaviors(); treeView.UIALabelEditChanged += HandleInvalidated; treeView.UIACheckBoxesChanged += HandleInvalidated; treeView.AfterCheck += HandleAfterCheck; treeView.AfterSelect += HandleAfterSelect; treeView.AfterExpand += HandleAfterExpand; treeView.AfterCollapse += HandleAfterCollapse; treeView.UIANodeTextChanged += HandleUIANodeTextChanged; treeView.UIACollectionChanged += HandleUIACollectionChanged; }
public override void Initialize () { base.Initialize (); observer = new ScrollBehaviorObserver (this, treeView.UIAHScrollBar, treeView.UIAVScrollBar); observer.ScrollPatternSupportChanged += OnScrollPatternSupportChanged; UpdateBehaviors (); treeView.UIALabelEditChanged += HandleInvalidated; treeView.UIACheckBoxesChanged += HandleInvalidated; treeView.AfterCheck += HandleAfterCheck; treeView.AfterSelect += HandleAfterSelect; treeView.AfterExpand += HandleAfterExpand; treeView.AfterCollapse += HandleAfterCollapse; treeView.UIANodeTextChanged += HandleUIANodeTextChanged; treeView.UIACollectionChanged += HandleUIACollectionChanged; }
public override void Initialize() { base.Initialize(); //Text pattern is supported by both Control Types: Document and Edit SetBehavior(TextPatternIdentifiers.Pattern, new TextProviderBehavior(this)); SetBehavior(ClipboardPatternIdentifiers.Pattern, new ClipboardProviderBehavior(this)); SetBehavior(CaretPatternIdentifiers.Pattern, new CaretProviderBehavior(this)); observer = new ScrollBehaviorObserver(this, textboxbase.UIAHScrollBar, textboxbase.UIAVScrollBar); observer.ScrollPatternSupportChanged += OnScrollPatternSupportChanged; UpdateScrollBehavior(); textboxbase.MultilineChanged += new EventHandler(OnMultilineChanged); UpdateBehaviors(); }
public override void Initialize () { base.Initialize (); //Text pattern is supported by both Control Types: Document and Edit SetBehavior (TextPatternIdentifiers.Pattern, new TextProviderBehavior (this)); SetBehavior (ClipboardPatternIdentifiers.Pattern, new ClipboardProviderBehavior (this)); SetBehavior (CaretPatternIdentifiers.Pattern, new CaretProviderBehavior (this)); observer = new ScrollBehaviorObserver (this, textboxbase.UIAHScrollBar, textboxbase.UIAVScrollBar); observer.ScrollPatternSupportChanged += OnScrollPatternSupportChanged; UpdateScrollBehavior (); textboxbase.MultilineChanged += new EventHandler (OnMultilineChanged); UpdateBehaviors (); }
public override void Initialize() { base.Initialize(); //ListScrollBehaviorObserver updates Navigation observer = new ScrollBehaviorObserver(this, datagrid.UIAHScrollBar, datagrid.UIAVScrollBar); observer.ScrollPatternSupportChanged += OnScrollPatternSupportChanged; UpdateScrollBehavior(); SetBehavior(SelectionPatternIdentifiers.Pattern, new SelectionProviderBehavior(this)); SetBehavior(GridPatternIdentifiers.Pattern, new GridProviderBehavior(this)); // Table Pattern is *only* supported when Header exists if (datagrid.CurrentTableStyle.GridColumnStyles.Count > 0 && datagrid.ColumnHeadersVisible) { CreateHeader(datagrid.CurrentTableStyle); } }
protected virtual void InitializeScrollBehaviorObserver () { // Updates Navigation and sets/unsets Scroll Pattern observer = new ScrollBehaviorObserver (this, HorizontalScrollBar, VerticalScrollBar); observer.ScrollPatternSupportChanged += OnScrollPatternSupportChanged; observer.Initialize (); UpdateScrollBehavior (); }
public override void Initialize () { base.Initialize (); //ListScrollBehaviorObserver updates Navigation observer = new ScrollBehaviorObserver (this, datagrid.UIAHScrollBar, datagrid.UIAVScrollBar); observer.ScrollPatternSupportChanged += OnScrollPatternSupportChanged; UpdateScrollBehavior (); SetBehavior (SelectionPatternIdentifiers.Pattern, new SelectionProviderBehavior (this)); SetBehavior (GridPatternIdentifiers.Pattern, new GridProviderBehavior (this)); // Table Pattern is *only* supported when Header exists if (datagrid.CurrentTableStyle.GridColumnStyles.Count > 0 && datagrid.ColumnHeadersVisible) CreateHeader (datagrid.CurrentTableStyle); }
protected override void InitializeScrollBehaviorObserver () { // We implement Scroll logic this way because the internal // control in charge of handling scrolling is disposed when // DropDownStyle is changed and is Expanded/Collapsed if (observer != null && (ListBoxControl == null || ListBoxControl != listControl)) { observer.ScrollPatternSupportChanged -= OnScrollPatternSupportChanged; observer.Terminate (); SetBehavior (ScrollPatternIdentifiers.Pattern, null); } if (ListBoxControl != null && ListBoxControl != listControl) { if (ListBoxControl != null) { observer = new ScrollBehaviorObserver (this, null, VerticalScrollBar); observer.ScrollPatternSupportChanged += OnScrollPatternSupportChanged; observer.Initialize (); UpdateScrollBehavior (observer); ListBoxControl.Disposed += delegate (object obj, EventArgs args) { observer.Terminate (); SetBehavior (ScrollPatternIdentifiers.Pattern, null); listControl = null; }; } listControl = ListBoxControl; } }