Table of Contents

Class PopupEx

Namespace
HeBianGu.Control.Message
Assembly
HeBianGu.Control.Message.dll

This custom popup can be used by validation error templates or something else. It provides some additional nice features: - repositioning if host-window size or location changed - repositioning if host-window gets maximized and vice versa - it's only topmost if the host-window is activated

public class PopupEx : Popup, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, IAddChild
Inheritance
PopupEx
Implements
Inherited Members
Extension Methods

Constructors

PopupEx()

public PopupEx()

Fields

CloseOnMouseLeftButtonDownProperty

public static readonly DependencyProperty CloseOnMouseLeftButtonDownProperty

Field Value

DependencyProperty

Properties

CloseOnMouseLeftButtonDown

Gets/sets if the popup can be closed by left mouse button down.

public bool CloseOnMouseLeftButtonDown { get; set; }

Property Value

bool

Methods

OnPreviewMouseLeftButtonDown(MouseButtonEventArgs)

Provides class handling for the PreviewMouseLeftButtonDown event.

protected override void OnPreviewMouseLeftButtonDown(MouseButtonEventArgs e)

Parameters

e MouseButtonEventArgs

The event data.

RefreshPosition()

Causes the popup to update it's position according to it's current settings.

public void RefreshPosition()