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
Afficher le fichier Open project: Warewolf-ESB/Warewolf

Méthodes protégées

Méthode 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

Méthode 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 méthode

Initializes a new instance.
protected ConceptualPanel ( ) : System
Résultat System

CreateUIElementCollection() protected final méthode

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

GetVisualChild() protected méthode

Gets the visual child at the specified index.
protected GetVisualChild ( int index ) : Visual
index int
Résultat Visual

OnChildAdded() protected méthode

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

OnChildRemoved() protected méthode

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

OnVisualChildrenChanged() protected méthode

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