C# Class PoshCode.Controls.PopupMenu

Inheritance: System.Windows.Controls.Primitives.Popup
Afficher le fichier Open project: Jaykul/PoshConsole Class Usage Examples

Méthodes publiques

Méthode Description
PopupMenu ( ConsoleControl console ) : System

Méthodes protégées

Méthode 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

Méthode 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 méthode

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.
Résultat void

OnPreviewKeyDown() protected méthode

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.
Résultat void

OnPreviewMouseDown() protected méthode

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.
Résultat void

OnPreviewMouseWheel() protected méthode

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.
Résultat void

OnPreviewTextInput() protected méthode

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
Résultat void

PopupMenu() public méthode

public PopupMenu ( ConsoleControl console ) : System
console ConsoleControl
Résultat System