C# Класс ControlzEx.TabControlEx

Наследование: System.Windows.Controls.TabControl
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
ChildContentVisibilityProperty System.Windows.DependencyProperty

Открытые методы

Метод Описание
OnApplyTemplate ( ) : void

get the ItemsHolder and generate any children

TabControlEx ( ) : System

Защищенные методы

Метод Описание
GetSelectedTabItem ( ) : System.Windows.Controls.TabItem

copied from TabControl; wish it were protected in that class instead of private

OnItemsChanged ( NotifyCollectionChangedEventArgs e ) : void

when the items change we remove any generated panel children and add any new ones as necessary

OnSelectionChanged ( System.Windows.Controls.SelectionChangedEventArgs e ) : void

update the visible child in the ItemsHolder

Приватные методы

Метод Описание
CreateChildContentPresenter ( object item ) : ContentPresenter

create the child ContentPresenter for the given item (could be data or a TabItem)

FindChildContentPresenter ( object data ) : ContentPresenter

Find the CP for the given object. data could be a TabItem or a piece of data

ItemContainerGenerator_StatusChanged ( object sender, EventArgs e ) : void

if containers are done, generate the selected item

TabControlEx_Loaded ( object sender, RoutedEventArgs e ) : void

in some scenarios we need to update when loaded in case the ApplyTemplate happens before the databind.

UpdateSelectedItem ( ) : void

generate a ContentPresenter for the selected item

Описание методов

GetSelectedTabItem() защищенный Метод

copied from TabControl; wish it were protected in that class instead of private
protected GetSelectedTabItem ( ) : System.Windows.Controls.TabItem
Результат System.Windows.Controls.TabItem

OnApplyTemplate() публичный Метод

get the ItemsHolder and generate any children
public OnApplyTemplate ( ) : void
Результат void

OnItemsChanged() защищенный Метод

when the items change we remove any generated panel children and add any new ones as necessary
protected OnItemsChanged ( NotifyCollectionChangedEventArgs e ) : void
e System.Collections.Specialized.NotifyCollectionChangedEventArgs
Результат void

OnSelectionChanged() защищенный Метод

update the visible child in the ItemsHolder
protected OnSelectionChanged ( System.Windows.Controls.SelectionChangedEventArgs e ) : void
e System.Windows.Controls.SelectionChangedEventArgs
Результат void

TabControlEx() публичный Метод

public TabControlEx ( ) : System
Результат System

Описание свойств

ChildContentVisibilityProperty публичное статическое свойство

public static DependencyProperty,System.Windows ChildContentVisibilityProperty
Результат System.Windows.DependencyProperty