C# 클래스 Dev2.Studio.Dock.ContentPaneFactory

Class used to generate ContentPane instances based on a given source collection of items (ContainerFactoryBase.ItemsSource).
상속: ContainerFactory
파일 보기 프로젝트 열기: Warewolf-ESB/Warewolf 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
ContentPathProperty System.Windows.DependencyProperty
HeaderPathProperty System.Windows.DependencyProperty
InitializeContentPaneEvent System.Windows.RoutedEvent
PaneFactoryProperty System.Windows.DependencyProperty
RemoveItemOnCloseProperty System.Windows.DependencyProperty
TabHeaderPathProperty System.Windows.DependencyProperty

Private Properties

프로퍼티 타입 설명
ContentPaneFactory System
GetPaneFactory ContentPaneFactory
GetSiblingDocument ContentPane
OnPaneClosed void
OnPaneFactoryChanged void
RaiseInitializeContentPane void
SetTabName void
ViewModelDeactivated void
pane_PreviewLostKeyboardFocus void

공개 메소드들

메소드 설명
AddInitializeContentPaneHandler ( DependencyObject element, EventHandler handler ) : void

Adds a handler for the InitializeContentPane attached event

OnPaneClosing ( object sender, PaneClosingEventArgs e ) : void
RemoveInitializeContentPaneHandler ( DependencyObject element, EventHandler handler ) : void

Removes a handler for the InitializeContentPane attached event

SetPaneFactory ( DependencyObject d, ContentPaneFactory value ) : void

Sets the object that will create ContentPane instances based on the items in the associate ContainerFactoryBase.ItemsSource

보호된 메소드들

메소드 설명
AddPane ( ContentPane pane ) : void

Invoked when a new ContentPane has been created and needs to be added to the appropriate target collection.

ClearContainerForItem ( DependencyObject container, object item ) : void

Used to clear any settings applied to a container in the PrepareContainerForItem

OnItemInserted ( DependencyObject container, object item, int index ) : void

Invoked when an element for an item has been generated.

OnItemMoved ( DependencyObject container, object item, int oldIndex, int newIndex ) : void

Invoked when an item has been moved in the source collection.

OnItemRemoved ( DependencyObject container, object oldItem ) : void

Invoked when an element created for an item has been removed

PrepareContainerForItem ( DependencyObject container, object item ) : void

Used to initialize a container for a given item.

RemovePane ( ContentPane cp ) : void

Invoked when a ContentPane for a given item is being removed.

ValidateContainerType ( Type elementType ) : void

Invoked when the ContainerFactory.ContainerType is about to be changed to determine if the specified type is allowed.

비공개 메소드들

메소드 설명
ContentPaneFactory ( ) : System
GetPaneFactory ( DependencyObject d ) : ContentPaneFactory
GetSiblingDocument ( ) : ContentPane
OnPaneClosed ( object sender, PaneClosedEventArgs e ) : void
OnPaneFactoryChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
RaiseInitializeContentPane ( ContentPane pane ) : void
SetTabName ( ContentPane pane, object item ) : void
ViewModelDeactivated ( object sender, DeactivationEventArgs e ) : void
pane_PreviewLostKeyboardFocus ( object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void

메소드 상세

AddInitializeContentPaneHandler() 공개 정적인 메소드

Adds a handler for the InitializeContentPane attached event
public static AddInitializeContentPaneHandler ( DependencyObject element, EventHandler handler ) : void
element System.Windows.DependencyObject UIElement or ContentElement that listens to the event
handler EventHandler Event handler to be added
리턴 void

AddPane() 보호된 메소드

Invoked when a new ContentPane has been created and needs to be added to the appropriate target collection.
protected AddPane ( ContentPane pane ) : void
pane ContentPane The pane that was created and needs to be added to the appropriate collection
리턴 void

ClearContainerForItem() 보호된 메소드

Used to clear any settings applied to a container in the PrepareContainerForItem
protected ClearContainerForItem ( DependencyObject container, object item ) : void
container System.Windows.DependencyObject The container element
item object The item from the source collection
리턴 void

OnItemInserted() 보호된 최종 메소드

Invoked when an element for an item has been generated.
protected final OnItemInserted ( DependencyObject container, object item, int index ) : void
container System.Windows.DependencyObject The element that was generated
item object The underlying item for which the element has been generated
index int The index at which the item existed
리턴 void

OnItemMoved() 보호된 최종 메소드

Invoked when an item has been moved in the source collection.
protected final OnItemMoved ( DependencyObject container, object item, int oldIndex, int newIndex ) : void
container System.Windows.DependencyObject The associated element
item object The item that was moved
oldIndex int The old index
newIndex int The new index
리턴 void

OnItemRemoved() 보호된 최종 메소드

Invoked when an element created for an item has been removed
protected final OnItemRemoved ( DependencyObject container, object oldItem ) : void
container System.Windows.DependencyObject The element that has been removed
oldItem object The item associated with the element that was removed
리턴 void

OnPaneClosing() 공개 메소드

public OnPaneClosing ( object sender, PaneClosingEventArgs e ) : void
sender object
e PaneClosingEventArgs
리턴 void

PrepareContainerForItem() 보호된 메소드

Used to initialize a container for a given item.
protected PrepareContainerForItem ( DependencyObject container, object item ) : void
container System.Windows.DependencyObject The container element
item object The item from the source collection
리턴 void

RemoveInitializeContentPaneHandler() 공개 정적인 메소드

Removes a handler for the InitializeContentPane attached event
public static RemoveInitializeContentPaneHandler ( DependencyObject element, EventHandler handler ) : void
element System.Windows.DependencyObject UIElement or ContentElement that listens to the event
handler EventHandler Event handler to be removed
리턴 void

RemovePane() 보호된 메소드

Invoked when a ContentPane for a given item is being removed.
protected RemovePane ( ContentPane cp ) : void
cp ContentPane The pane being removed
리턴 void

SetPaneFactory() 공개 정적인 메소드

Sets the object that will create ContentPane instances based on the items in the associate ContainerFactoryBase.ItemsSource
public static SetPaneFactory ( DependencyObject d, ContentPaneFactory value ) : void
d System.Windows.DependencyObject
value ContentPaneFactory
리턴 void

ValidateContainerType() 보호된 최종 메소드

Invoked when the ContainerFactory.ContainerType is about to be changed to determine if the specified type is allowed.
protected final ValidateContainerType ( Type elementType ) : void
elementType System.Type The new element type
리턴 void

프로퍼티 상세

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

Identifies the ContentPath dependency property
public static DependencyProperty,System.Windows ContentPathProperty
리턴 System.Windows.DependencyProperty

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

Identifies the HeaderPath dependency property
public static DependencyProperty,System.Windows HeaderPathProperty
리턴 System.Windows.DependencyProperty

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

InitializeContentPane Attached Routed Event
public static RoutedEvent,System.Windows InitializeContentPaneEvent
리턴 System.Windows.RoutedEvent

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

PaneFactory Attached Dependency Property
public static DependencyProperty,System.Windows PaneFactoryProperty
리턴 System.Windows.DependencyProperty

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

Identifies the RemoveItemOnClose dependency property
public static DependencyProperty,System.Windows RemoveItemOnCloseProperty
리턴 System.Windows.DependencyProperty

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

Identifies the TabHeaderPath dependency property
public static DependencyProperty,System.Windows TabHeaderPathProperty
리턴 System.Windows.DependencyProperty