C# 클래스 WPF.JoshSmith.Panels.DisconnectedUIElementCollection

상속: System.Windows.Controls.UIElementCollection, INotifyCollectionChanged
파일 보기 프로젝트 열기: Warewolf-ESB/Warewolf 1 사용 예제들

공개 메소드들

메소드 설명
Add ( UIElement element ) : int

Adds the element to the DisconnectedUIElementCollection

Clear ( ) : void

Removes all elements from the DisconnectedUIElementCollection

Contains ( UIElement element ) : bool

Determines whether an element is in the DisconnectedUIElementCollection

CopyTo ( Array array, int index ) : void

Copies the collection into the Array

CopyTo ( UIElement array, int index ) : void

Strongly typed version of CopyTo

DisconnectedUIElementCollection ( UIElement owner ) : System

This collection can be used by a panel to maintain a collection of child elements that are *not* connected to their owner as visual children or logical children.

GetEnumerator ( ) : IEnumerator

Returns an enumerator that can iterate through the collection.

IndexOf ( UIElement element ) : int

Returns the index of the element in the DisconnectedUIElementCollection

Initialize ( ) : void

The Initialize method is simply exposed as an accessible member that can be called from the ConceptualPanel's Loaded event. Accessing this member via the Children property will implicitly cause CreateUIElementCollection to be called to create the disconnected collection. This method exists because simple access of a property like Count might be optimized away by an aggressive compiler.

Insert ( int index, UIElement element ) : void

Inserts an element into the DisconnectedUIElementCollection at the specified index

Remove ( UIElement element ) : void

Removes the specified element from the DisconnectedUIElementCollection

RemoveAt ( int index ) : void

Removes the element at the specified index from the DisconnectedUIElementCollection

RemoveRange ( int index, int count ) : void

Removes the specified number of elements starting at the specified index from the DisconnectedUIElementCollection

this ( int index ) : UIElement

비공개 메소드들

메소드 설명
BaseIndexOf ( UIElement element ) : int
BaseInsert ( int index, UIElement element ) : void
BaseRemoveAt ( int index ) : void
DisconnectedUIElementCollection ( UIElement owner, SurrogateVisualParent surrogateVisualParent ) : System
RaiseCollectionChanged ( NotifyCollectionChangedAction action, object changedItem, int index ) : void
VerifyWriteAccess ( ) : void

If the owner is an items host, we need to enforce the rule that elements cannot be explicitly added to the disconnected collection. However, it is still possible to modify the visual or logical "connected" children of a ConceptualPanel while it is an items host by simply calling the AddVisualChild, RemoveVisualChild, AddLogicalChild, or RemoveLogicalChild methods. Logic within ConceptualPanel ensures that any visual children added in this manner will be returned within a GetVisualChild() enumeration.

메소드 상세

Add() 공개 메소드

Adds the element to the DisconnectedUIElementCollection
public Add ( UIElement element ) : int
element UIElement
리턴 int

Clear() 공개 메소드

Removes all elements from the DisconnectedUIElementCollection
public Clear ( ) : void
리턴 void

Contains() 공개 메소드

Determines whether an element is in the DisconnectedUIElementCollection
public Contains ( UIElement element ) : bool
element UIElement
리턴 bool

CopyTo() 공개 메소드

Copies the collection into the Array
public CopyTo ( Array array, int index ) : void
array System.Array
index int
리턴 void

CopyTo() 공개 메소드

Strongly typed version of CopyTo
public CopyTo ( UIElement array, int index ) : void
array UIElement
index int
리턴 void

DisconnectedUIElementCollection() 공개 메소드

This collection can be used by a panel to maintain a collection of child elements that are *not* connected to their owner as visual children or logical children.
public DisconnectedUIElementCollection ( UIElement owner ) : System
owner UIElement
리턴 System

GetEnumerator() 공개 메소드

Returns an enumerator that can iterate through the collection.
public GetEnumerator ( ) : IEnumerator
리턴 IEnumerator

IndexOf() 공개 메소드

Returns the index of the element in the DisconnectedUIElementCollection
public IndexOf ( UIElement element ) : int
element UIElement
리턴 int

Initialize() 공개 메소드

The Initialize method is simply exposed as an accessible member that can be called from the ConceptualPanel's Loaded event. Accessing this member via the Children property will implicitly cause CreateUIElementCollection to be called to create the disconnected collection. This method exists because simple access of a property like Count might be optimized away by an aggressive compiler.
public Initialize ( ) : void
리턴 void

Insert() 공개 메소드

Inserts an element into the DisconnectedUIElementCollection at the specified index
public Insert ( int index, UIElement element ) : void
index int
element UIElement
리턴 void

Remove() 공개 메소드

Removes the specified element from the DisconnectedUIElementCollection
public Remove ( UIElement element ) : void
element UIElement
리턴 void

RemoveAt() 공개 메소드

Removes the element at the specified index from the DisconnectedUIElementCollection
public RemoveAt ( int index ) : void
index int
리턴 void

RemoveRange() 공개 메소드

Removes the specified number of elements starting at the specified index from the DisconnectedUIElementCollection
public RemoveRange ( int index, int count ) : void
index int
count int
리턴 void

this() 공개 메소드

public this ( int index ) : UIElement
index int
리턴 UIElement