C# Class WPF.JoshSmith.Panels.ConceptualPanel

This panel maintains a collection of conceptual children that are neither logical children nor visual children of the panel. This allows those visuals to be connected to other parts of the UI, if necessary, or even to remain disconnected.
Inheritance: System.Windows.Controls.Panel
ファイルを表示 Open project: Warewolf-ESB/Warewolf

Protected Methods

Method Description
ConceptualPanel ( ) : System

Initializes a new instance.

CreateUIElementCollection ( FrameworkElement logicalParent ) : System.Windows.Controls.UIElementCollection

Creates a disconnected UIElement collection.

GetVisualChild ( int index ) : Visual

Gets the visual child at the specified index.

OnChildAdded ( UIElement child ) : void

Subclasses override this to perform an action when a conceptual child is added to the panel.

OnChildRemoved ( UIElement child ) : void

Subclasses override this to perform an action when a conceptual child is removed from the panel.

OnVisualChildrenChanged ( DependencyObject visualAdded, DependencyObject visualRemoved ) : void

Invoked when the panel's children collection is modified.

Private Methods

Method Description
OnChildrenCollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void

For simplicity, this class will listen to change notifications on the DisconnectedUIElementCollection and provide them to descendants through the OnChildAdded and OnChildRemoved members.

OnLoaded ( object sender, RoutedEventArgs e ) : void

Method Details

ConceptualPanel() protected method

Initializes a new instance.
protected ConceptualPanel ( ) : System
return System

CreateUIElementCollection() protected final method

Creates a disconnected UIElement collection.
protected final CreateUIElementCollection ( FrameworkElement logicalParent ) : System.Windows.Controls.UIElementCollection
logicalParent System.Windows.FrameworkElement
return System.Windows.Controls.UIElementCollection

GetVisualChild() protected method

Gets the visual child at the specified index.
protected GetVisualChild ( int index ) : Visual
index int
return Visual

OnChildAdded() protected method

Subclasses override this to perform an action when a conceptual child is added to the panel.
protected OnChildAdded ( UIElement child ) : void
child UIElement
return void

OnChildRemoved() protected method

Subclasses override this to perform an action when a conceptual child is removed from the panel.
protected OnChildRemoved ( UIElement child ) : void
child UIElement
return void

OnVisualChildrenChanged() protected method

Invoked when the panel's children collection is modified.
protected OnVisualChildrenChanged ( DependencyObject visualAdded, DependencyObject visualRemoved ) : void
visualAdded System.Windows.DependencyObject
visualRemoved System.Windows.DependencyObject
return void