C# 클래스 Wpf.Controls.TabControl

상속: System.Windows.Controls.TabControl
파일 보기 프로젝트 열기: Gainedge/BetterExplorer 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
AddNewTabToEndProperty System.Windows.DependencyProperty
AllowAddNewProperty System.Windows.DependencyProperty
AllowDeleteProperty System.Windows.DependencyProperty
ConstructMoveToCopyToMenu System.Action
DefaultTabPathProperty System.Windows.DependencyProperty
IsUsingItemsSourceProperty System.Windows.DependencyProperty
IsUsingItemsSourcePropertyKey System.Windows.DependencyPropertyKey
NotTabItemNormalBackgroundProperty System.Windows.DependencyProperty
ReopenableTabs List
SelectNewTabOnCreateProperty System.Windows.DependencyProperty
StartUpLocation string
TabItemMaxHeightProperty System.Windows.DependencyProperty
TabItemMaxWidthProperty System.Windows.DependencyProperty
TabItemMinHeightProperty System.Windows.DependencyProperty
TabItemMinWidthProperty System.Windows.DependencyProperty
TabItemMouseOverBackgroundProperty System.Windows.DependencyProperty
TabItemNormalBackgroundProperty System.Windows.DependencyProperty
TabItemSelectedBackgroundProperty System.Windows.DependencyProperty
isGoingBackOrForward bool
newt_DragEnter DragEventHandler
newt_GiveFeedback GiveFeedbackEventHandler
newt_PreviewMouseDown MouseButtonEventHandler
newt_PreviewMouseMove MouseEventHandler

Private Properties

프로퍼티 타입 설명
CoerceMaxHeight object
CoerceMaxWidth object
CoerceMinHeight object
CoerceMinWidth object
ContextMenuItem_Click void
DropdownButton_Checked void
GetItems IEnumerable
GetTabItem TabItem
GetTabsCount int
InternalChildren IEnumerable
OnAllowAddNewChanged void
OnAllowDeleteChanged void
OnCoerceAllowAddNewCallback object
OnCoerceAllowAddNewCallback object
OnCoerceAllowDeleteCallback object
OnCoerceAllowDeleteNewCallback object
OnMinMaxChanged void
OnTabStripPlacementChanged void
SetAddNewButtonVisibility void
SetTabItemsCloseButtonVisibility void
TabControl System
TabControl_MouseDoubleClick void

공개 메소드들

메소드 설명
CloneTabItem ( TabItem theTab ) : void
CloseAllTabsButThis ( TabItem tabItem ) : void
NewTab ( IListItemEx DefPath, bool IsNavigate ) : TabItem

Creates a new tab, optionally selects it then erturns it

NewTab ( string Location, bool IsNavigate = false ) : TabItem

Creates a new tab, optionally selects it then erturns it

NewTab ( ) : void
OnApplyTemplate ( ) : void

OnApplyTemplate override

RaiseTabClick ( TabItem tab ) : void

Raises the OnTabClicked event if and only if tab is not nothing

ReOpenTab ( NavigationLog log ) : void

Re-opens a previously closed tab using that tab's navigation log data then removes it from reopenabletabs.

RemoveTabItem ( TabItem tabItem, System.Boolean allowReopening = true, System.Boolean isCloseLastTab = false ) : void

Called by a child Header that wants to remove itself by clicking on the close button

보호된 메소드들

메소드 설명
GetContainerForItemOverride ( ) : DependencyObject

GetContainerForItemOverride

IsItemItsOwnContainerOverride ( object item ) : bool

IsItemItsOwnContainerOverride

OnItemsChanged ( NotifyCollectionChangedEventArgs e ) : void
OnItemsSourceChanged ( IEnumerable oldValue, IEnumerable newValue ) : void
OnPreviewKeyDown ( System.Windows.Input.KeyEventArgs e ) : void
OnSelectionChanged ( System.Windows.Controls.SelectionChangedEventArgs e ) : void

비공개 메소드들

메소드 설명
CoerceMaxHeight ( DependencyObject d, object value ) : object
CoerceMaxWidth ( DependencyObject d, object value ) : object
CoerceMinHeight ( DependencyObject d, object value ) : object
CoerceMinWidth ( DependencyObject d, object value ) : object
ContextMenuItem_Click ( object sender, RoutedEventArgs e ) : void

Handle the MenuItem's Click event

DropdownButton_Checked ( object sender, RoutedEventArgs e ) : void

Handle the ToggleButton Checked event that displays a context menu of Header Headers

GetItems ( ) : IEnumerable
GetTabItem ( int index ) : TabItem
GetTabsCount ( ) : int
InternalChildren ( ) : IEnumerable
OnAllowAddNewChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnAllowDeleteChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnCoerceAllowAddNewCallback ( DependencyObject d, object basevalue ) : object
OnCoerceAllowAddNewCallback ( object basevalue ) : object
OnCoerceAllowDeleteCallback ( object basevalue ) : object
OnCoerceAllowDeleteNewCallback ( DependencyObject d, object basevalue ) : object
OnMinMaxChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

OnMinMaxChanged callback responds to any of the Min/Max dependency properties changing

OnTabStripPlacementChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

OnTabStripPlacementChanged property callback

We need to supplement the base implementation with this method as the base method does not work when we are using virtualization in the tabpanel, it only updates visible items

SetAddNewButtonVisibility ( ) : void
SetTabItemsCloseButtonVisibility ( ) : void
TabControl ( ) : System
TabControl_MouseDoubleClick ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void

메소드 상세

CloneTabItem() 공개 메소드

public CloneTabItem ( TabItem theTab ) : void
theTab TabItem
리턴 void

CloseAllTabsButThis() 공개 메소드

public CloseAllTabsButThis ( TabItem tabItem ) : void
tabItem TabItem
리턴 void

GetContainerForItemOverride() 보호된 메소드

GetContainerForItemOverride
protected GetContainerForItemOverride ( ) : DependencyObject
리턴 System.Windows.DependencyObject

IsItemItsOwnContainerOverride() 보호된 메소드

IsItemItsOwnContainerOverride
protected IsItemItsOwnContainerOverride ( object item ) : bool
item object
리턴 bool

NewTab() 공개 메소드

Creates a new tab, optionally selects it then erturns it
public NewTab ( IListItemEx DefPath, bool IsNavigate ) : TabItem
DefPath IListItemEx The that represents the location of this tab
IsNavigate bool Do you want the new tab to be selected?
리턴 TabItem

NewTab() 공개 메소드

Creates a new tab, optionally selects it then erturns it
public NewTab ( string Location, bool IsNavigate = false ) : TabItem
Location string The file path of the new Tab
IsNavigate bool Do you want the new tab to be selected?
리턴 TabItem

NewTab() 공개 메소드

public NewTab ( ) : void
리턴 void

OnApplyTemplate() 공개 메소드

OnApplyTemplate override
public OnApplyTemplate ( ) : void
리턴 void

OnItemsChanged() 보호된 메소드

protected OnItemsChanged ( NotifyCollectionChangedEventArgs e ) : void
e System.Collections.Specialized.NotifyCollectionChangedEventArgs
리턴 void

OnItemsSourceChanged() 보호된 메소드

protected OnItemsSourceChanged ( IEnumerable oldValue, IEnumerable newValue ) : void
oldValue IEnumerable
newValue IEnumerable
리턴 void

OnPreviewKeyDown() 보호된 메소드

protected OnPreviewKeyDown ( System.Windows.Input.KeyEventArgs e ) : void
e System.Windows.Input.KeyEventArgs
리턴 void

OnSelectionChanged() 보호된 메소드

protected OnSelectionChanged ( System.Windows.Controls.SelectionChangedEventArgs e ) : void
e System.Windows.Controls.SelectionChangedEventArgs
리턴 void

RaiseTabClick() 공개 메소드

Raises the OnTabClicked event if and only if tab is not nothing
public RaiseTabClick ( TabItem tab ) : void
tab TabItem The tab you want to raise the event on
리턴 void

ReOpenTab() 공개 메소드

Re-opens a previously closed tab using that tab's navigation log data then removes it from reopenabletabs.
public ReOpenTab ( NavigationLog log ) : void
log NavigationLog The navigation log data from the previously closed tab.
리턴 void

RemoveTabItem() 공개 메소드

Called by a child Header that wants to remove itself by clicking on the close button
public RemoveTabItem ( TabItem tabItem, System.Boolean allowReopening = true, System.Boolean isCloseLastTab = false ) : void
tabItem TabItem
allowReopening System.Boolean
isCloseLastTab System.Boolean
리턴 void

프로퍼티 상세

AddNewTabToEndProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows AddNewTabToEndProperty
리턴 System.Windows.DependencyProperty

AllowAddNewProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows AllowAddNewProperty
리턴 System.Windows.DependencyProperty

AllowDeleteProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows AllowDeleteProperty
리턴 System.Windows.DependencyProperty

ConstructMoveToCopyToMenu 공개적으로 프로퍼티

An Action that is fired after a new tab is created
public Action,System ConstructMoveToCopyToMenu
리턴 System.Action

DefaultTabPathProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows DefaultTabPathProperty
리턴 System.Windows.DependencyProperty

IsUsingItemsSourceProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows IsUsingItemsSourceProperty
리턴 System.Windows.DependencyProperty

IsUsingItemsSourcePropertyKey 공개적으로 정적으로 프로퍼티

public static DependencyPropertyKey,System.Windows IsUsingItemsSourcePropertyKey
리턴 System.Windows.DependencyPropertyKey

NotTabItemNormalBackgroundProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows NotTabItemNormalBackgroundProperty
리턴 System.Windows.DependencyProperty

ReopenableTabs 공개적으로 프로퍼티

List of tabs that can be reopened by the user
public List ReopenableTabs
리턴 List

SelectNewTabOnCreateProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows SelectNewTabOnCreateProperty
리턴 System.Windows.DependencyProperty

StartUpLocation 공개적으로 프로퍼티

public string StartUpLocation
리턴 string

TabItemMaxHeightProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows TabItemMaxHeightProperty
리턴 System.Windows.DependencyProperty

TabItemMaxWidthProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows TabItemMaxWidthProperty
리턴 System.Windows.DependencyProperty

TabItemMinHeightProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows TabItemMinHeightProperty
리턴 System.Windows.DependencyProperty

TabItemMinWidthProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows TabItemMinWidthProperty
리턴 System.Windows.DependencyProperty

TabItemMouseOverBackgroundProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows TabItemMouseOverBackgroundProperty
리턴 System.Windows.DependencyProperty

TabItemNormalBackgroundProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows TabItemNormalBackgroundProperty
리턴 System.Windows.DependencyProperty

TabItemSelectedBackgroundProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows TabItemSelectedBackgroundProperty
리턴 System.Windows.DependencyProperty

isGoingBackOrForward 공개적으로 프로퍼티

public bool isGoingBackOrForward
리턴 bool

newt_DragEnter 공개적으로 프로퍼티

public DragEventHandler newt_DragEnter
리턴 DragEventHandler

newt_GiveFeedback 공개적으로 프로퍼티

public GiveFeedbackEventHandler newt_GiveFeedback
리턴 GiveFeedbackEventHandler

newt_PreviewMouseDown 공개적으로 프로퍼티

public MouseButtonEventHandler newt_PreviewMouseDown
리턴 MouseButtonEventHandler

newt_PreviewMouseMove 공개적으로 프로퍼티

public MouseEventHandler newt_PreviewMouseMove
리턴 MouseEventHandler