CustomValidationPopup Class
This custom popup is used by the validation error template. 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
Namespace
MahApps.Metro.Controls
Base Types
  • Popup
graph BT Type-->Base0["Popup"] Type["CustomValidationPopup"] class Type type-node

Syntax

public class CustomValidationPopup : Popup

Constructors

Fields

Name Field Type Constant Value Summary
AdornedElementProperty DependencyProperty
Identifies the AdornedElement dependency property.
static
CanShowProperty DependencyProperty
Identifies the CanShow dependency property.
static
CloseOnMouseLeftButtonDownProperty DependencyProperty
Identifies the CloseOnMouseLeftButtonDown dependency property.
static
ShowValidationErrorOnMouseOverProperty DependencyProperty
Identifies the ShowValidationErrorOnMouseOver dependency property.
static

Properties

Name Property Type Summary
AdornedElement UIElement
Gets or sets the System.Windows.UIElement that this System.Windows.Controls.Primitives.Popup object is reserving space for.
CanShow bool
Gets whether the popup can be shown (useful for transitions).
CloseOnMouseLeftButtonDown bool
Gets or sets whether if the popup can be closed by left mouse button down.
ShowValidationErrorOnMouseOver bool
Gets or sets whether the validation error text will be shown when hovering the validation triangle.

Methods