Свойство | Тип | Описание | |
---|---|---|---|
CaptionProperty | |||
IsFullScreenProperty | |||
IsLeftButtonEnabledProperty | |||
IsRightButtonEnabledProperty | |||
LeftButtonContentProperty | |||
MessageProperty | |||
RightButtonContentProperty | |||
TitleProperty |
Метод | Описание | |
---|---|---|
CustomMessageBox ( ) : System |
Initializes a new instance of the CustomMessageBox class.
|
|
Dismiss ( ) : void |
Dismisses the message box.
|
|
OnApplyTemplate ( ) : void |
Gets the template parts and attaches event handlers. Animates the message box when the template is applied to it.
|
|
Show ( ) : void |
Reveals the message box by inserting it into a popup and opening it.
|
Метод | Описание | |
---|---|---|
ClosePopup ( bool restoreOriginalValues ) : void |
Closes the pop up.
|
|
CustomMessageBox_LayoutUpdated ( object sender, |
Called when the visual layout changes.
|
|
Dismiss ( CustomMessageBoxResult source, bool useTransition ) : void |
Dismisses the message box.
|
|
GetPageOrientation ( ) : PageOrientation |
Gets the current page orientation.
|
|
GetTransform ( ) : |
Gets a transform for popup elements based on the current page orientation.
|
|
GetTransformedRect ( ) : |
Gets a rectangle that occupies the entire page.
|
|
GetVisibilityFromObject ( Object obj ) : Visibility |
Returns a visibility value based on the value of an object.
|
|
GetVisibilityFromString ( string str ) : Visibility |
Returns a visibility value based on the value of a string.
|
|
IsLandscape ( PageOrientation orientation ) : bool |
Determines whether the orientation is landscape.
|
|
LeftButton_Click ( object sender, |
Dismisses the message box with the left button.
|
|
OnBackKeyPress ( object sender, System e ) : void |
Called when the back key is pressed. This event handler cancels the backward navigation and dismisses the message box.
|
|
OnCaptionPropertyChanged ( |
Changes the visibility of the caption text block based on its content.
|
|
OnIsFullScreenPropertyChanged ( |
Modifies the vertical alignment of the message box depending on whether it should occupy the full screen or not.
|
|
OnLeftButtonContentPropertyChanged ( |
Changes the visibility of the left button based on its content.
|
|
OnMessagePropertyChanged ( |
Changes the visibility of the message text block based on its content.
|
|
OnNavigating ( object sender, System e ) : void |
Called when the application frame is navigating. This event handler dismisses the message box.
|
|
OnOrientationChanged ( object sender, OrientationChangedEventArgs e ) : void |
Called when the current page changes orientation.
|
|
OnRightButtonContentPropertyChanged ( |
Changes the visibility of the right button based on its content.
|
|
OnTitlePropertyChanged ( |
Changes the visibility of the title text block based on its content.
|
|
RightButton_Click ( object sender, |
Dismisses the message box with the right button.
|
|
SetSizeAndOffset ( ) : void |
Sets The vertical and horizontal offset of the popup, as well as the size of its child container.
|
public static DependencyProperty,System.Windows CaptionProperty | ||
Результат |
public static DependencyProperty,System.Windows IsFullScreenProperty | ||
Результат |
public static DependencyProperty,System.Windows IsLeftButtonEnabledProperty | ||
Результат |
public static DependencyProperty,System.Windows IsRightButtonEnabledProperty | ||
Результат |
public static DependencyProperty,System.Windows LeftButtonContentProperty | ||
Результат |
public static DependencyProperty,System.Windows MessageProperty | ||
Результат |
public static DependencyProperty,System.Windows RightButtonContentProperty | ||
Результат |