C# Class MahApps.Metro.Controls.CustomValidationPopup

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
Inheritance: System.Windows.Controls.Primitives.Popup
Mostrar archivo Open project: MahApps/MahApps.Metro

Public Properties

Property Type Description
CloseOnMouseLeftButtonDownProperty System.Windows.DependencyProperty

Public Methods

Method Description
CustomValidationPopup ( ) : System

Protected Methods

Method Description
OnPreviewMouseLeftButtonDown ( MouseButtonEventArgs e ) : void

Private Methods

Method Description
CustomValidationPopup_Loaded ( object sender, RoutedEventArgs e ) : void
CustomValidationPopup_Opened ( object sender, EventArgs e ) : void
CustomValidationPopup_Unloaded ( object sender, RoutedEventArgs e ) : void
SetTopmostState ( bool isTop ) : void
hostWindow_Activated ( object sender, EventArgs e ) : void
hostWindow_Deactivated ( object sender, EventArgs e ) : void
hostWindow_SizeOrLocationChanged ( object sender, EventArgs e ) : void
hostWindow_StateChanged ( object sender, EventArgs e ) : void

Method Details

CustomValidationPopup() public method

public CustomValidationPopup ( ) : System
return System

OnPreviewMouseLeftButtonDown() protected method

protected OnPreviewMouseLeftButtonDown ( MouseButtonEventArgs e ) : void
e MouseButtonEventArgs
return void

Property Details

CloseOnMouseLeftButtonDownProperty public_oe static_oe property

public static DependencyProperty,System.Windows CloseOnMouseLeftButtonDownProperty
return System.Windows.DependencyProperty