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

상속: HeaderedItemsControl, IUpdateVisualState
파일 보기 프로젝트 열기: garyjohnson/wpnest 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
HasItemsProperty System.Windows.DependencyProperty
IsExpandedProperty System.Windows.DependencyProperty
IsSelectedProperty System.Windows.DependencyProperty
IsSelectionActiveProperty System.Windows.DependencyProperty

Private Properties

프로퍼티 타입 설명
AllowKeyHandleEvent bool
BringIntoView void
CalculateDelta double
FindLastFocusableItem TreeViewItem
FindNextFocusableItem TreeViewItem
FindPreviousFocusableItem System.Windows.Controls.ItemsControl
FocusDown bool
FocusInto bool
HandleDownKey bool
HandleScrollByPage bool
HandleUpKey bool
IUpdateVisualState void
OnExpanderClick void
OnExpanderGotFocus void
OnExpansionStateGroupStateChanged void
OnHasItemsPropertyChanged void
OnHeaderMouseLeftButtonDown void
OnIsExpandedPropertyChanged void
OnIsSelectedPropertyChanged void
OnIsSelectionActivePropertyChanged void
OnKeyDown void
RaiseEvent void
Select void
ToggleExpanded void
UpdateContainsSelection void
UpdateVisualState void

공개 메소드들

메소드 설명
OnApplyTemplate ( ) : void

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

TreeViewItem ( ) : System

Initializes a new instance of the T:Microsoft.Silverlight.Testing.Controls.TreeViewItem 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 an object is a T:Microsoft.Silverlight.Testing.Controls.TreeViewItem.

OnCollapsed ( RoutedEventArgs e ) : void

Raises a E:Microsoft.Silverlight.Testing.Controls.TreeViewItem.Collapsed event when the P:Microsoft.Silverlight.Testing.Controls.TreeViewItem.IsExpanded property changes from true to false.

OnCreateAutomationPeer ( ) : System.Windows.Automation.Peers.AutomationPeer

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

OnExpanded ( RoutedEventArgs e ) : void

Raises an E:Microsoft.Silverlight.Testing.Controls.TreeViewItem.Expanded event when the P:Microsoft.Silverlight.Testing.Controls.TreeViewItem.IsExpanded property changes from false to true.

OnGotFocus ( RoutedEventArgs e ) : void

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

OnItemsChanged ( NotifyCollectionChangedEventArgs e ) : void

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

OnKeyUp ( System.Windows.Input.KeyEventArgs e ) : void

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

OnLostFocus ( RoutedEventArgs e ) : void

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

OnMouseEnter ( System.Windows.Input.MouseEventArgs e ) : void

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

OnMouseLeave ( System.Windows.Input.MouseEventArgs e ) : void

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

OnMouseLeftButtonDown ( System.Windows.Input.MouseButtonEventArgs e ) : void

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

OnMouseLeftButtonUp ( System.Windows.Input.MouseButtonEventArgs e ) : void

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

OnSelected ( RoutedEventArgs e ) : void

Raises the E:Microsoft.Silverlight.Testing.Controls.TreeViewItem.Selected event when the P:Microsoft.Silverlight.Testing.Controls.TreeViewItem.IsSelected property changes from false to true.

OnUnselected ( RoutedEventArgs e ) : void

Raises the E:Microsoft.Silverlight.Testing.Controls.TreeViewItem.Unselected event when the P:Microsoft.Silverlight.Testing.Controls.TreeViewItem.IsSelected property changes from true to false.

PrepareContainerForItemOverride ( DependencyObject element, object item ) : void

Prepares the specified container element to display the specified item.

비공개 메소드들

메소드 설명
AllowKeyHandleEvent ( ) : bool

Determine whether the TreeViewItem should be allowed to handle a key event.

BringIntoView ( ) : void

Scroll the TreeViewItem into view.

CalculateDelta ( bool up, FrameworkElement element, ScrollViewer scrollHost, double top, double bottom, double &closeEdge ) : double

Calculate the distance between this TreeViewItem and the item being paged from.

FindLastFocusableItem ( ) : TreeViewItem

Find the last focusable TreeViewItem contained by this item.

FindNextFocusableItem ( bool recurse ) : TreeViewItem

Find the next focusable TreeViewItem below this item.

FindPreviousFocusableItem ( ) : ItemsControl

Find the previous focusable TreeViewItem above this item.

FocusDown ( ) : bool

Navigate the focus to the next TreeViewItem below this item.

FocusInto ( ) : bool

Navigate the focus to the very last TreeViewItem descendent of the this item.

HandleDownKey ( ) : bool

Try moving the focus down from the selected item.

HandleScrollByPage ( bool up, ScrollViewer scrollHost, double viewportHeight, double top, double bottom, double &currentDelta ) : bool

Handle scrolling a page up or down.

HandleUpKey ( ) : bool

Try moving the focus up from the selected item.

IUpdateVisualState ( bool useTransitions ) : void

Update the visual state of the control.

OnExpanderClick ( object sender, RoutedEventArgs e ) : void

Provides handling for the ExpanderButton's Click event.

OnExpanderGotFocus ( object sender, RoutedEventArgs e ) : void

Handle the ExpanderButton's GotFocus event.

OnExpansionStateGroupStateChanged ( object sender, System.Windows.VisualStateChangedEventArgs e ) : void

Provides handling for the ExpansionStates CurrentChanged event.

OnHasItemsPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

HasItemsProperty property changed handler.

OnHeaderMouseLeftButtonDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void

Provides handling for the Header's MouseLeftButtonDown event.

OnIsExpandedPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

IsExpandedProperty property changed handler.

OnIsSelectedPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

IsSelectedProperty property changed handler.

OnIsSelectionActivePropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

IsSelectionActiveProperty property changed handler.

OnKeyDown ( System.Windows.Input.KeyEventArgs e ) : void
RaiseEvent ( RoutedEventHandler handler, RoutedEventArgs args ) : void

Raise a RoutedEvent.

Select ( bool selected ) : void

Change the selected status of the TreeViewItem.

ToggleExpanded ( RoutedEventHandler handler, RoutedEventArgs args ) : void

Handle changes to the IsExpanded property.

UpdateContainsSelection ( bool selected ) : void

Update the ancestors of this item when it changes selection.

Unselection updates need to occur before selection updates because the old and new selected items may share a partial path.

UpdateVisualState ( bool useTransitions ) : void

Update the visual state of the control.

메소드 상세

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 an object is a T:Microsoft.Silverlight.Testing.Controls.TreeViewItem.
protected IsItemItsOwnContainerOverride ( object item ) : bool
item object The object to evaluate.
리턴 bool

OnApplyTemplate() 공개 메소드

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

OnCollapsed() 보호된 메소드

Raises a E:Microsoft.Silverlight.Testing.Controls.TreeViewItem.Collapsed event when the P:Microsoft.Silverlight.Testing.Controls.TreeViewItem.IsExpanded property changes from true to false.
protected OnCollapsed ( RoutedEventArgs e ) : void
e System.Windows.RoutedEventArgs /// A that contains the /// event data. ///
리턴 void

OnCreateAutomationPeer() 보호된 메소드

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

OnExpanded() 보호된 메소드

Raises an E:Microsoft.Silverlight.Testing.Controls.TreeViewItem.Expanded event when the P:Microsoft.Silverlight.Testing.Controls.TreeViewItem.IsExpanded property changes from false to true.
protected OnExpanded ( RoutedEventArgs e ) : void
e System.Windows.RoutedEventArgs /// A that contains the /// event data. ///
리턴 void

OnGotFocus() 보호된 메소드

Provides handling for the E:System.Windows.UIElement.GotFocus event.
protected OnGotFocus ( RoutedEventArgs e ) : void
e System.Windows.RoutedEventArgs /// A that contains the /// event data. ///
리턴 void

OnItemsChanged() 보호된 메소드

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

OnKeyUp() 보호된 메소드

Provides handling for the E:System.Windows.UIElement.KeyUp event.
protected OnKeyUp ( System.Windows.Input.KeyEventArgs e ) : void
e System.Windows.Input.KeyEventArgs /// A that contains /// the event data. ///
리턴 void

OnLostFocus() 보호된 메소드

Provides handling for the E:System.Windows.UIElement.LostFocus event.
protected OnLostFocus ( RoutedEventArgs e ) : void
e System.Windows.RoutedEventArgs /// A that contains the /// event data. ///
리턴 void

OnMouseEnter() 보호된 메소드

Provides handling for the E:System.Windows.UIElement.MouseEnter event.
protected OnMouseEnter ( System.Windows.Input.MouseEventArgs e ) : void
e System.Windows.Input.MouseEventArgs /// A that contains /// the event data. ///
리턴 void

OnMouseLeave() 보호된 메소드

Provides handling for the E:System.Windows.UIElement.MouseLeave event.
protected OnMouseLeave ( System.Windows.Input.MouseEventArgs e ) : void
e System.Windows.Input.MouseEventArgs /// A that contains /// the event data. ///
리턴 void

OnMouseLeftButtonDown() 보호된 메소드

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

OnMouseLeftButtonUp() 보호된 메소드

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

OnSelected() 보호된 메소드

Raises the E:Microsoft.Silverlight.Testing.Controls.TreeViewItem.Selected event when the P:Microsoft.Silverlight.Testing.Controls.TreeViewItem.IsSelected property changes from false to true.
protected OnSelected ( RoutedEventArgs e ) : void
e System.Windows.RoutedEventArgs /// A that contains the /// event data. ///
리턴 void

OnUnselected() 보호된 메소드

Raises the E:Microsoft.Silverlight.Testing.Controls.TreeViewItem.Unselected event when the P:Microsoft.Silverlight.Testing.Controls.TreeViewItem.IsSelected property changes from true to false.
protected OnUnselected ( RoutedEventArgs e ) : void
e System.Windows.RoutedEventArgs /// A that contains the /// event data. ///
리턴 void

PrepareContainerForItemOverride() 보호된 메소드

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

TreeViewItem() 공개 메소드

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

프로퍼티 상세

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

Identifies the P:Microsoft.Silverlight.Testing.Controls.TreeViewItem.HasItems dependency property.
public static DependencyProperty,System.Windows HasItemsProperty
리턴 System.Windows.DependencyProperty

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

Identifies the P:Microsoft.Silverlight.Testing.Controls.TreeViewItem.IsExpanded dependency property.
public static DependencyProperty,System.Windows IsExpandedProperty
리턴 System.Windows.DependencyProperty

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

Identifies the P:Microsoft.Silverlight.Testing.Controls.TreeViewItem.IsSelected dependency property.
public static DependencyProperty,System.Windows IsSelectedProperty
리턴 System.Windows.DependencyProperty

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

Identifies the P:Microsoft.Silverlight.Testing.Controls.TreeViewItem.IsSelectionActive dependency property.
public static DependencyProperty,System.Windows IsSelectionActiveProperty
리턴 System.Windows.DependencyProperty