C# Класс System.Windows.Controls.PopupHelper

PopupHelper is a simple wrapper type that helps abstract platform differences out of the Popup.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
Arrange void
OnClosed void
OnFocusChanged void
OnPopupClosedStateChanged void
OnUpdateVisualStates void
PopupChild_GotFocus void
PopupChild_LostFocus void
PopupChild_MouseEnter void
PopupChild_MouseLeave void
PopupChild_SizeChanged void
Popup_Closed void

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

Метод Описание
AfterOnApplyTemplate ( ) : void

Should be called by the parent control after the base OnApplyTemplate method is called.

BeforeOnApplyTemplate ( ) : void

Should be called by the parent control before the base OnApplyTemplate method is called.

PopupHelper ( Control parent ) : System.Diagnostics

Initializes a new instance of the PopupHelper class.

PopupHelper ( Control parent, System.Windows.Controls.Primitives.Popup popup ) : System.Diagnostics

Initializes a new instance of the PopupHelper class.

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

Метод Описание
Arrange ( ) : void
OnClosed ( EventArgs e ) : void

Fires the Closed event.

OnFocusChanged ( EventArgs e ) : void

Connected to several events that indicate that the FocusChanged event should bubble up to the parent control.

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

Actually closes the popup after the VSM state animation completes.

OnUpdateVisualStates ( EventArgs e ) : void

Fires the UpdateVisualStates event.

PopupChild_GotFocus ( object sender, RoutedEventArgs e ) : void

The popup child has received focus.

PopupChild_LostFocus ( object sender, RoutedEventArgs e ) : void

The popup child has lost focus.

PopupChild_MouseEnter ( object sender, System.Windows.Input.MouseEventArgs e ) : void

The popup child has had the mouse enter its bounds.

PopupChild_MouseLeave ( object sender, System.Windows.Input.MouseEventArgs e ) : void

The mouse has left the popup child's bounds.

PopupChild_SizeChanged ( object sender, System.Windows.SizeChangedEventArgs e ) : void

The size of the popup child has changed.

Popup_Closed ( object sender, EventArgs e ) : void

Connected to the Popup Closed event and fires the Closed event.

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

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

Should be called by the parent control after the base OnApplyTemplate method is called.
public AfterOnApplyTemplate ( ) : void
Результат void

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

Should be called by the parent control before the base OnApplyTemplate method is called.
public BeforeOnApplyTemplate ( ) : void
Результат void

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

Initializes a new instance of the PopupHelper class.
public PopupHelper ( Control parent ) : System.Diagnostics
parent Control The parent control.
Результат System.Diagnostics

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

Initializes a new instance of the PopupHelper class.
public PopupHelper ( Control parent, System.Windows.Controls.Primitives.Popup popup ) : System.Diagnostics
parent Control The parent control.
popup System.Windows.Controls.Primitives.Popup The Popup template part.
Результат System.Diagnostics