C# Class System.Windows.Controls.SelectorSelectionAdapter

Represents the selection adapter contained in the drop-down portion of an T:System.Windows.Controls.AutoCompleteBox control.
Inheritance: ISelectionAdapter
ファイルを表示 Open project: Warewolf-ESB/Warewolf Class Usage Examples

Private Properties

Property Type Description
AfterAdapterAction void
OnCancel void
OnCommit void
OnSelectionChanged void
OnSelectorMouseLeftButtonUp void
ResetScrollViewer void

Public Methods

Method Description
CreateAutomationPeer ( ) : System.Windows.Automation.Peers.AutomationPeer

Returns an automation peer for the underlying T:System.Windows.Controls.Primitives.Selector control, for use by the Silverlight automation infrastructure.

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

Provides handling for the E:System.Windows.UIElement.KeyDown event that occurs when a key is pressed while the drop-down portion of the T:System.Windows.Controls.AutoCompleteBox has focus.

SelectorSelectionAdapter ( ) : System.Collections

Initializes a new instance of the T:System.Windows.Controls.SelectorSelectionAdapter class.

SelectorSelectionAdapter ( Selector selector ) : System.Collections

Initializes a new instance of the T:System.Windows.Controls.SelectorSelectionAdapter class with the specified T:System.Windows.Controls.Primitives.Selector control.

Protected Methods

Method Description
OnCancel ( ) : void

Raises the E:System.Windows.Controls.SelectorSelectionAdapter.Cancel event.

OnCommit ( ) : void

Raises the E:System.Windows.Controls.SelectorSelectionAdapter.Commit event.

SelectedIndexDecrement ( ) : void

Decrements the P:System.Windows.Controls.Primitives.Selector.SelectedIndex property of the underlying T:System.Windows.Controls.Primitives.Selector control.

SelectedIndexIncrement ( ) : void

Increments the P:System.Windows.Controls.Primitives.Selector.SelectedIndex property of the underlying T:System.Windows.Controls.Primitives.Selector control.

Private Methods

Method Description
AfterAdapterAction ( ) : void

Change the selection after the actions are complete.

OnCancel ( object sender, RoutedEventArgs e ) : void

Fires the Cancel event.

OnCommit ( object sender, RoutedEventArgs e ) : void

Fires the Commit event.

OnSelectionChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void

Handles the SelectionChanged event on the Selector control.

OnSelectorMouseLeftButtonUp ( object sender, MouseButtonEventArgs e ) : void

Handles the mouse left button up event on the selector control.

ResetScrollViewer ( ) : void

If the control contains a ScrollViewer, this will reset the viewer to be scrolled to the top.

Method Details

CreateAutomationPeer() public method

Returns an automation peer for the underlying T:System.Windows.Controls.Primitives.Selector control, for use by the Silverlight automation infrastructure.
public CreateAutomationPeer ( ) : System.Windows.Automation.Peers.AutomationPeer
return System.Windows.Automation.Peers.AutomationPeer

HandleKeyDown() public method

Provides handling for the E:System.Windows.UIElement.KeyDown event that occurs when a key is pressed while the drop-down portion of the T:System.Windows.Controls.AutoCompleteBox has focus.
public HandleKeyDown ( System.Windows.Input.KeyEventArgs e ) : void
e System.Windows.Input.KeyEventArgs A /// that contains data about the /// event.
return void

OnCancel() protected method

Raises the E:System.Windows.Controls.SelectorSelectionAdapter.Cancel event.
protected OnCancel ( ) : void
return void

OnCommit() protected method

Raises the E:System.Windows.Controls.SelectorSelectionAdapter.Commit event.
protected OnCommit ( ) : void
return void

SelectedIndexDecrement() protected method

Decrements the P:System.Windows.Controls.Primitives.Selector.SelectedIndex property of the underlying T:System.Windows.Controls.Primitives.Selector control.
protected SelectedIndexDecrement ( ) : void
return void

SelectedIndexIncrement() protected method

Increments the P:System.Windows.Controls.Primitives.Selector.SelectedIndex property of the underlying T:System.Windows.Controls.Primitives.Selector control.
protected SelectedIndexIncrement ( ) : void
return void

SelectorSelectionAdapter() public method

Initializes a new instance of the T:System.Windows.Controls.SelectorSelectionAdapter class.
public SelectorSelectionAdapter ( ) : System.Collections
return System.Collections

SelectorSelectionAdapter() public method

Initializes a new instance of the T:System.Windows.Controls.SelectorSelectionAdapter class with the specified T:System.Windows.Controls.Primitives.Selector control.
public SelectorSelectionAdapter ( Selector selector ) : System.Collections
selector Selector The /// control /// to wrap as a /// .
return System.Collections