public static void SetTabVisibility(this ITabbedView view, ISubPresenterItem subPresenterItem, bool visible) { var tab = view.PageFrom(subPresenterItem); tab.SuspendLayout(); tab.PageVisible = visible; tab.ResumeLayout(true); }
public static bool IsTabVisible(this ITabbedView view, ISubPresenterItem subPresenterItem) { return(view.PageFrom(subPresenterItem).PageVisible); }
public static void ActivateTab(this ITabbedView view, ISubPresenterItem subPresenterItem) { view.SetTabVisibility(subPresenterItem, true); view.SetTabEnabled(subPresenterItem, true); view.TabControl.SelectedTabPage = view.PageFrom(subPresenterItem); }
public static void SetTabIcon(this ITabbedView view, ISubPresenterItem subPresenterItem, ApplicationIcon icon) { view.PageFrom(subPresenterItem).Image = icon.ToImage(UIConstants.ICON_SIZE_TAB); }
public static void SetTabVisibility(this ITabbedView view, ISubPresenterItem subPresenterItem, bool visible) { view.PageFrom(subPresenterItem).PageVisible = visible; }
public static void SetTabEnabled(this ITabbedView view, ISubPresenterItem subPresenterItem, bool enabled) { view.PageFrom(subPresenterItem).PageEnabled = enabled; }
public static void SetTabIcon(this ITabbedView view, ISubPresenterItem subPresenterItem, ApplicationIcon icon) { view.PageFrom(subPresenterItem).ImageOptions.SvgImage = icon; view.PageFrom(subPresenterItem).ImageOptions.SvgImageSize = UIConstants.ICON_SIZE_TAB; }