C# Класс PoshCode.Controls.PopupMenu

Наследование: System.Windows.Controls.Primitives.Popup
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
PopupMenu ( ConsoleControl console ) : System

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
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.

Описание методов

OnClosed() защищенный Метод

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.
Результат void

OnPreviewKeyDown() защищенный Метод

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.
Результат void

OnPreviewMouseDown() защищенный Метод

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.
Результат void

OnPreviewMouseWheel() защищенный Метод

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.
Результат void

OnPreviewTextInput() защищенный Метод

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
Результат void

PopupMenu() публичный Метод

public PopupMenu ( ConsoleControl console ) : System
console ConsoleControl
Результат System