/// ------------------------------------------------------------------------------------ /// <summary> /// Initializes a new instance of the <see cref="T:FwSplitContainer"/> class. /// </summary> /// ------------------------------------------------------------------------------------ public FwSplitContainer() { InitializeComponent(); SplitterMoving += new SplitterCancelEventHandler(OnSplitterMoving); SplitterMoved += new SplitterEventHandler(OnSplitterMoved); }
/// <summary> /// Extends BeginInvoke so that when a state object is not needed, null does not need to be passed. /// <example> /// splittercanceleventhandler.BeginInvoke(sender, e, callback); /// </example> /// </summary> public static IAsyncResult BeginInvoke(this SplitterCancelEventHandler splittercanceleventhandler, Object sender, SplitterCancelEventArgs e, AsyncCallback callback) { if (splittercanceleventhandler == null) { throw new ArgumentNullException("splittercanceleventhandler"); } return(splittercanceleventhandler.BeginInvoke(sender, e, callback, null)); }
public void OnSplitterMoving(SplitterCancelEventArgs e) { SplitterCancelEventHandler eh = (SplitterCancelEventHandler)(Events [SplitterMovingEvent]); if (eh != null) { eh(this, e); } }
protected virtual void OnSplitterMoving(SplitterCancelEventArgs e) { SplitterCancelEventHandler handler1 = (SplitterCancelEventHandler)base.Events[RadSplitContainer.SplitterMovingEventKey]; if (handler1 != null) { handler1(this, e); } if (this.Parent is RadSplitContainer) { ((RadSplitContainer)this.Parent).OnSplitterMoving(e); } }
public DoubleClickSplitter() { InitializeComponent(); SplitterMoving += new SplitterCancelEventHandler(OnSplitterMoving); }