private void Control_PageChanged(object sender, PageChangedEventArgs e) { if (SelectionService != null) { SelectionService.SetSelectedComponents(new object[] { Control.SelectedTab }); } }
private void Control_PageChanged(object sender, PageChangedEventArgs e) { if (SelectionService != null) { if (e.CurrentPage != null) { SelectionService.SetSelectedComponents(new object[] { e.CurrentPage }); } else { SelectionService.SetSelectedComponents(new object[] { Control }); } } }
/// <summary> /// Raises the <see cref="PageChanged"/> event. /// </summary> /// <param name="e">A <see cref="PageChangedEventArgs"/> that contains event data.</param> protected internal virtual void OnPageChanged(PageChangedEventArgs e) { PageChanged?.Invoke(this, e); }
/// <summary> /// Updates verbs and toolbar buttons when the current page is changed. /// </summary> private void Control_CurrentPageChanged(object sender, PageChangedEventArgs e) { UpdateGlyphsAndVerbs(); }