C# Class Illusion.Views.SmartTabControl

Inheritance: System.Windows.Controls.TabControl
Exibir arquivo Open project: kasicass/kasicass

Public Methods

Method Description
OnApplyTemplate ( ) : void

get the ItemsHolder and generate any children

SmartTabControl ( ) : System

Protected Methods

Method Description
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

OnItemsSourceChanged ( System oldValue, System newValue ) : void

Called when the source of an item in a selector changes.

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

update the visible child in the ItemsHolder

Private Methods

Method Description
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

UpdateSelectedItem ( ) : void

generate a ContentPresenter for the selected item

Method Details

GetSelectedTabItem() protected method

copied from TabControl; wish it were protected in that class instead of private
protected GetSelectedTabItem ( ) : System.Windows.Controls.TabItem
return System.Windows.Controls.TabItem

OnApplyTemplate() public method

get the ItemsHolder and generate any children
public OnApplyTemplate ( ) : void
return void

OnItemsChanged() protected method

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
return void

OnItemsSourceChanged() protected method

Called when the source of an item in a selector changes.
protected OnItemsSourceChanged ( System oldValue, System newValue ) : void
oldValue System Old value of the source.
newValue System New value of the source.
return void

OnSelectionChanged() protected method

update the visible child in the ItemsHolder
protected OnSelectionChanged ( System.Windows.Controls.SelectionChangedEventArgs e ) : void
e System.Windows.Controls.SelectionChangedEventArgs
return void

SmartTabControl() public method

public SmartTabControl ( ) : System
return System