C# 클래스 Microsoft.Silverlight.Testing.Controls.TreeView

상속: System.Windows.Controls.ItemsControl, IUpdateVisualState
파일 보기 프로젝트 열기: garyjohnson/wpnest 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
ItemContainerStyleProperty DependencyProperty
SelectedItemProperty DependencyProperty
SelectedValuePathProperty DependencyProperty
SelectedValueProperty DependencyProperty

Private Properties

프로퍼티 타입 설명
ChangeSelection void
CheckForSelectedDescendents void
FocusFirstItem bool
FocusLastItem bool
HandleMouseButtonDown bool
HandleScrollByPage bool
HandleScrollKeys bool
IUpdateVisualState void
OnItemContainerStylePropertyChanged void
OnKeyDown void
OnSelectedItemPropertyChanged void
OnSelectedValuePathPropertyChanged void
OnSelectedValuePropertyChanged void
PropagateKeyDown void
SelectFirstItem void
UpdateSelectedValue void

공개 메소드들

메소드 설명
OnApplyTemplate ( ) : void

Builds the visual tree for the T:Microsoft.Silverlight.Testing.Controls.TreeView control when a new control template is applied.

TreeView ( ) : System

Initializes a new instance of the T:Microsoft.Silverlight.Testing.Controls.TreeView class.

보호된 메소드들

메소드 설명
ClearContainerForItemOverride ( DependencyObject element, object item ) : void

Removes all templates, styles, and bindings for the object displayed as a T:Microsoft.Silverlight.Testing.Controls.TreeViewItem.

GetContainerForItemOverride ( ) : DependencyObject

Creates a T:Microsoft.Silverlight.Testing.Controls.TreeViewItem to display content.

IsItemItsOwnContainerOverride ( object item ) : bool

Determines whether the specified item is a T:Microsoft.Silverlight.Testing.Controls.TreeViewItem, which is the default container for items in the T:Microsoft.Silverlight.Testing.Controls.TreeView control.

OnCreateAutomationPeer ( ) : AutomationPeer

Returns a T:System.Windows.Automation.Peers.TreeViewAutomationPeer for use by the Silverlight automation infrastructure.

OnGotFocus ( RoutedEventArgs e ) : void

Provides handling for the GotFocus event.

OnItemsChanged ( NotifyCollectionChangedEventArgs e ) : void

Makes adjustments to the T:Microsoft.Silverlight.Testing.Controls.TreeView control when the value of the P:Microsoft.Silverlight.Testing.Controls.ItemsControl.Items property changes.

OnKeyUp ( KeyEventArgs e ) : void

Provides handling for the KeyUp event.

OnLostFocus ( RoutedEventArgs e ) : void

Provides handling for the LostFocus event.

OnMouseEnter ( MouseEventArgs e ) : void

Provides handling for the MouseEnter event.

OnMouseLeave ( MouseEventArgs e ) : void

Provides handling for the MouseLeave event.

OnMouseLeftButtonDown ( MouseButtonEventArgs e ) : void

Provides handling for the E:System.Windows.UIElement.MouseLeftButtonDown event.

OnMouseLeftButtonUp ( MouseButtonEventArgs e ) : void

Provides handling for the MouseLeftButtonUp event.

OnMouseMove ( MouseEventArgs e ) : void

Provides handling for the MouseMove event.

OnSelectedItemChanged ( RoutedPropertyChangedEventArgs e ) : void

Raises the E:Microsoft.Silverlight.Testing.Controls.TreeView.SelectedItemChanged event when the P:Microsoft.Silverlight.Testing.Controls.TreeView.SelectedItem property value changes.

PrepareContainerForItemOverride ( DependencyObject element, object item ) : void

Prepares the container element to display the specified item.

비공개 메소드들

메소드 설명
ChangeSelection ( object itemOrContainer, TreeViewItem container, bool selected ) : void

Change whether a TreeViewItem is selected.

CheckForSelectedDescendents ( TreeViewItem item ) : void

Select any descendents when adding new TreeViewItems to a TreeView.

FocusFirstItem ( ) : bool

Focus the first item in the TreeView.

FocusLastItem ( ) : bool

Focus the last item in the TreeView.

HandleMouseButtonDown ( ) : bool

Provides handling for mouse button events.

HandleScrollByPage ( bool up ) : bool
HandleScrollKeys ( Key key ) : bool

Handle keys related to scrolling.

IUpdateVisualState ( bool useTransitions ) : void

Update the visual state of the TreeView.

OnItemContainerStylePropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

ItemContainerStyleProperty property changed handler.

OnKeyDown ( KeyEventArgs e ) : void
OnSelectedItemPropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

SelectedItemProperty property changed handler.

OnSelectedValuePathPropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

SelectedValuePathProperty property changed handler.

OnSelectedValuePropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

SelectedValueProperty property changed handler.

PropagateKeyDown ( KeyEventArgs e ) : void

Propagate OnKeyDown messages from the root TreeViewItems to their TreeView.

Because Silverlight's ScrollViewer swallows many useful key events (which it can ignore on WPF if you override HandlesScrolling or use an internal only variable in Silverlight), the root TreeViewItems explicitly propagate KeyDown events to their parent TreeView.

SelectFirstItem ( ) : void

Select the first item of the TreeView.

UpdateSelectedValue ( object item ) : void

Update the selected value of the of the TreeView based on the value of the currently selected TreeViewItem and the SelectedValuePath.

메소드 상세

ClearContainerForItemOverride() 보호된 메소드

Removes all templates, styles, and bindings for the object displayed as a T:Microsoft.Silverlight.Testing.Controls.TreeViewItem.
protected ClearContainerForItemOverride ( DependencyObject element, object item ) : void
element System.Windows.DependencyObject /// The element to /// clear. ///
item object /// The item that is contained in the /// . ///
리턴 void

GetContainerForItemOverride() 보호된 메소드

Creates a T:Microsoft.Silverlight.Testing.Controls.TreeViewItem to display content.
protected GetContainerForItemOverride ( ) : DependencyObject
리턴 System.Windows.DependencyObject

IsItemItsOwnContainerOverride() 보호된 메소드

Determines whether the specified item is a T:Microsoft.Silverlight.Testing.Controls.TreeViewItem, which is the default container for items in the T:Microsoft.Silverlight.Testing.Controls.TreeView control.
protected IsItemItsOwnContainerOverride ( object item ) : bool
item object The object to evaluate.
리턴 bool

OnApplyTemplate() 공개 메소드

Builds the visual tree for the T:Microsoft.Silverlight.Testing.Controls.TreeView control when a new control template is applied.
public OnApplyTemplate ( ) : void
리턴 void

OnCreateAutomationPeer() 보호된 메소드

Returns a T:System.Windows.Automation.Peers.TreeViewAutomationPeer for use by the Silverlight automation infrastructure.
protected OnCreateAutomationPeer ( ) : AutomationPeer
리턴 AutomationPeer

OnGotFocus() 보호된 메소드

Provides handling for the GotFocus event.
protected OnGotFocus ( RoutedEventArgs e ) : void
e RoutedEventArgs Event arguments.
리턴 void

OnItemsChanged() 보호된 메소드

Makes adjustments to the T:Microsoft.Silverlight.Testing.Controls.TreeView control when the value of the P:Microsoft.Silverlight.Testing.Controls.ItemsControl.Items property changes.
protected OnItemsChanged ( NotifyCollectionChangedEventArgs e ) : void
e NotifyCollectionChangedEventArgs /// A /// /// that contains data about the change. ///
리턴 void

OnKeyUp() 보호된 메소드

Provides handling for the KeyUp event.
protected OnKeyUp ( KeyEventArgs e ) : void
e KeyEventArgs Event arguments.
리턴 void

OnLostFocus() 보호된 메소드

Provides handling for the LostFocus event.
protected OnLostFocus ( RoutedEventArgs e ) : void
e RoutedEventArgs Event arguments.
리턴 void

OnMouseEnter() 보호된 메소드

Provides handling for the MouseEnter event.
protected OnMouseEnter ( MouseEventArgs e ) : void
e MouseEventArgs Event arguments.
리턴 void

OnMouseLeave() 보호된 메소드

Provides handling for the MouseLeave event.
protected OnMouseLeave ( MouseEventArgs e ) : void
e MouseEventArgs Event arguments.
리턴 void

OnMouseLeftButtonDown() 보호된 메소드

Provides handling for the E:System.Windows.UIElement.MouseLeftButtonDown event.
protected OnMouseLeftButtonDown ( MouseButtonEventArgs e ) : void
e MouseButtonEventArgs /// A that /// contains the event data. ///
리턴 void

OnMouseLeftButtonUp() 보호된 메소드

Provides handling for the MouseLeftButtonUp event.
protected OnMouseLeftButtonUp ( MouseButtonEventArgs e ) : void
e MouseButtonEventArgs Event arguments.
리턴 void

OnMouseMove() 보호된 메소드

Provides handling for the MouseMove event.
protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs Event arguments.
리턴 void

OnSelectedItemChanged() 보호된 메소드

Raises the E:Microsoft.Silverlight.Testing.Controls.TreeView.SelectedItemChanged event when the P:Microsoft.Silverlight.Testing.Controls.TreeView.SelectedItem property value changes.
protected OnSelectedItemChanged ( RoutedPropertyChangedEventArgs e ) : void
e RoutedPropertyChangedEventArgs /// A /// that contains the event data. ///
리턴 void

PrepareContainerForItemOverride() 보호된 메소드

Prepares the container element to display the specified item.
protected PrepareContainerForItemOverride ( DependencyObject element, object item ) : void
element DependencyObject /// The container element used to display the specified item. ///
item object The item to display.
리턴 void

TreeView() 공개 메소드

Initializes a new instance of the T:Microsoft.Silverlight.Testing.Controls.TreeView class.
public TreeView ( ) : System
리턴 System

프로퍼티 상세

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

Identifies the P:Microsoft.Silverlight.Testing.Controls.TreeView.ItemContainerStyle dependency property.
public static DependencyProperty ItemContainerStyleProperty
리턴 DependencyProperty

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

Identifies the P:Microsoft.Silverlight.Testing.Controls.TreeView.SelectedItem dependency property.
public static DependencyProperty SelectedItemProperty
리턴 DependencyProperty

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

Identifies the P:Microsoft.Silverlight.Testing.Controls.TreeView.SelectedValuePath dependency property.
public static DependencyProperty SelectedValuePathProperty
리턴 DependencyProperty

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

Identifies the P:Microsoft.Silverlight.Testing.Controls.TreeView.SelectedValue dependency property.
public static DependencyProperty SelectedValueProperty
리턴 DependencyProperty