C# Class PoshCode.Controls.PopupMenu

Inheritance: System.Windows.Controls.Primitives.Popup
Datei anzeigen Open project: Jaykul/PoshConsole Class Usage Examples

Public Methods

Method Description
PopupMenu ( ConsoleControl console ) : System

Protected Methods

Method Description
OnClosed ( EventArgs e ) : void

Responds when the value of the P:System.Windows.Controls.Primitives.Popup.IsOpen property changes from to true to false.

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

Invoked when an unhandled E:System.Windows.Input.Keyboard.PreviewKeyDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

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

Invoked when an unhandled E:System.Windows.Input.Mouse.MouseDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

OnPreviewMouseWheel ( System.Windows.Input.MouseWheelEventArgs e ) : void

Invoked when an unhandled E:System.Windows.Input.Mouse.PreviewMouseWheel attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

OnPreviewTextInput ( System.Windows.Input.TextCompositionEventArgs e ) : void

Handles the TextInput event of the popup control 1) to save the key if it's one we consider to toggle the tab-complete 2) to handle typing numbers for the history menu

Private Methods

Method Description
ClosedHistory ( object sender, EventArgs ea ) : void

Handles the Closed event of the History popup menu.

ClosedTabComplete ( object sender, EventArgs ea ) : void

Handles the Closed event of the TabComplete popup menu.

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

Intellisenses the selection changed.

IsParentActive ( ) : bool
MoveNext ( ) : void
MovePrevious ( ) : void
ShowHistoryPopup ( Rect placementRectangle, List list ) : void
ShowPopup ( Rect placementRectangle, List text, List items, List toolTips, bool number, bool filterDupes ) : void

Shows the popup.

ShowTabPopup ( Rect placementRectangle, CommandCompletion list, string currentCommand ) : void

Shows the tab-expansion popup.

TypeAheadFilter ( object item ) : bool

Types the ahead filter.

Method Details

OnClosed() protected method

Responds when the value of the P:System.Windows.Controls.Primitives.Popup.IsOpen property changes from to true to false.
protected OnClosed ( EventArgs e ) : void
e System.EventArgs The event data.
return void

OnPreviewKeyDown() protected method

Invoked when an unhandled E:System.Windows.Input.Keyboard.PreviewKeyDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
protected OnPreviewKeyDown ( System.Windows.Input.KeyEventArgs e ) : void
e System.Windows.Input.KeyEventArgs The that contains the event data.
return void

OnPreviewMouseDown() protected method

Invoked when an unhandled E:System.Windows.Input.Mouse.MouseDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
protected OnPreviewMouseDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs The that contains the event data. This event data reports details about the mouse button that was pressed and the handled state.
return void

OnPreviewMouseWheel() protected method

Invoked when an unhandled E:System.Windows.Input.Mouse.PreviewMouseWheel attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
protected OnPreviewMouseWheel ( System.Windows.Input.MouseWheelEventArgs e ) : void
e System.Windows.Input.MouseWheelEventArgs The that contains the event data.
return void

OnPreviewTextInput() protected method

Handles the TextInput event of the popup control 1) to save the key if it's one we consider to toggle the tab-complete 2) to handle typing numbers for the history menu
protected OnPreviewTextInput ( System.Windows.Input.TextCompositionEventArgs e ) : void
e System.Windows.Input.TextCompositionEventArgs
return void

PopupMenu() public method

public PopupMenu ( ConsoleControl console ) : System
console ConsoleControl
return System