C# 클래스 ControlzEx.TabControlEx

상속: System.Windows.Controls.TabControl
파일 보기 프로젝트 열기: ControlzEx/ControlzEx

공개 프로퍼티들

프로퍼티 타입 설명
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