TabControlSelectFirstVisibleTabBehavior Class

Summary

Sets the first TabItem with Visibility="Visibility.Visible" as the SelectedItem of the TabControl.

If there is no visible TabItem, null is set as the SelectedItem

Namespace
MahApps.Metro.Behaviors
Base Types
  • Behavior<TabControl>
graph BT Type-->Base0["Behavior<TabControl>"] Type["TabControlSelectFirstVisibleTabBehavior"] class Type type-node

Syntax

public class TabControlSelectFirstVisibleTabBehavior : Behavior<TabControl>

Methods

Name Value Summary
OnAttached() void
OnDetaching() void