Свойство | Type | Description | |
---|---|---|---|
ButtonRegionBackgroundProperty | |||
CancelButtonContentProperty | |||
CancelButtonStyleProperty | |||
ImageSourceProperty | |||
NoButtonContentProperty | |||
NoButtonStyleProperty | |||
OkButtonContentProperty | |||
OkButtonStyleProperty | |||
TextProperty | |||
YesButtonContentProperty | |||
YesButtonStyleProperty |
Свойство | Type | Description | |
---|---|---|---|
Button_Click | void | ||
Close | void | ||
CreateContainer | |||
ExecuteCopy | void | ||
GetDefaultButton | System.Windows.Controls.Button | ||
GetDefaultButtonFromDefaultResult | System.Windows.Controls.Button | ||
GetMessageBoxButton | System.Windows.Controls.Button | ||
InitHandlers | void | ||
IsCurrentWindow | bool | ||
MessageBox | System | ||
OnClose | void | ||
OnContainerClosed | void | ||
SetDefaultResult | void | ||
SetImageSource | void | ||
ShowCore | MessageBoxResult | ||
ShowMessageBoxCore | void | ||
UpdateBlockMouseInputsPanel | void |
Méthode | Description | |
---|---|---|
OnApplyTemplate ( ) : void |
Overrides the OnApplyTemplate method.
|
|
Show ( |
Displays a message box that has a message and that returns a result.
|
|
Show ( |
||
Show ( |
||
Show ( |
||
Show ( |
||
Show ( |
||
Show ( |
||
Show ( |
||
Show ( |
||
Show ( string messageText ) : MessageBoxResult |
Displays a message box that has a message and that returns a result.
|
|
Show ( string messageText, string caption ) : MessageBoxResult |
Displays a message box that has a message and title bar caption; and that returns a result.
|
|
Show ( string messageText, string caption, MessageBoxButton button ) : MessageBoxResult | ||
Show ( string messageText, string caption, MessageBoxButton button, MessageBoxImage icon ) : MessageBoxResult | ||
Show ( string messageText, string caption, MessageBoxButton button, MessageBoxImage icon, MessageBoxResult defaultResult ) : MessageBoxResult | ||
Show ( string messageText, string caption, MessageBoxButton button, MessageBoxImage icon, MessageBoxResult defaultResult, System.Windows.Style messageBoxStyle ) : MessageBoxResult |
Displays a message box that has a message and that returns a result.
|
|
Show ( string messageText, string caption, MessageBoxButton button, MessageBoxImage icon, System.Windows.Style messageBoxStyle ) : MessageBoxResult |
Displays a message box that has a message and that returns a result.
|
|
Show ( string messageText, string caption, MessageBoxButton button, System.Windows.Style messageBoxStyle ) : MessageBoxResult |
Displays a message box that has a message and that returns a result.
|
|
ShowDialog ( ) : bool? |
Display the MessageBox window and returns only when this MessageBox closes.
|
|
ShowMessageBox ( ) : void |
Displays this message box when embedded in a WindowContainer parent. Note that this call is not blocking and that you must register to the Closed event in order to handle the dialog result, if any.
|
|
ShowMessageBox ( string messageText ) : void |
Displays this message box when embedded in a WindowContainer parent. Note that this call is not blocking and that you must register to the Closed event in order to handle the dialog result, if any.
|
|
ShowMessageBox ( string messageText, string caption ) : void |
Displays this message box when embedded in a WindowContainer parent. Note that this call is not blocking and that you must register to the Closed event in order to handle the dialog result, if any.
|
|
ShowMessageBox ( string messageText, string caption, MessageBoxButton button ) : void |
Displays this message box when embedded in a WindowContainer parent. Note that this call is not blocking and that you must register to the Closed event in order to handle the dialog result, if any.
|
|
ShowMessageBox ( string messageText, string caption, MessageBoxButton button, MessageBoxImage icon ) : void |
Displays this message box when embedded in a WindowContainer parent. Note that this call is not blocking and that you must register to the Closed event in order to handle the dialog result, if any.
|
|
ShowMessageBox ( string messageText, string caption, MessageBoxButton button, MessageBoxImage icon, MessageBoxResult defaultResult ) : void |
Displays this message box when embedded in a WindowContainer parent. Note that this call is not blocking and that you must register to the Closed event in order to handle the dialog result, if any.
|
Méthode | Description | |
---|---|---|
ChangeVisualState ( string name, bool useTransitions ) : void |
Changes the control's visual state(s).
|
|
InitializeMessageBox ( |
Initializes the MessageBox.
|
|
OnCloseButtonClicked ( |
Processes the close button click.
|
|
OnClosed ( |
||
OnCoerceCloseButtonVisibility ( Visibility newValue ) : object | ||
OnCoerceWindowStyle ( WindowStyle newValue ) : object | ||
OnHeaderDragDelta ( System.Windows.Controls.Primitives.DragDeltaEventArgs e ) : void |
Processes the move of a drag operation on the header.
|
|
OnHeaderIconDoubleClicked ( MouseButtonEventArgs e ) : void |
Processes the double-click on the header.
|
Méthode | Description | |
---|---|---|
Button_Click ( object sender, |
Sets the MessageBoxResult according to the button pressed and then closes the MessageBox.
|
|
Close ( ) : void |
Closes the MessageBox.
|
|
CreateContainer ( ) : |
Creates the container which will host the MessageBox control.
|
|
ExecuteCopy ( object sender, ExecutedRoutedEventArgs e ) : void | ||
GetDefaultButton ( ) : System.Windows.Controls.Button |
Gets the default button. Used when the _defaultResult is set to None |
|
GetDefaultButtonFromDefaultResult ( ) : System.Windows.Controls.Button |
Gets the default button from the _defaultResult.
|
|
GetMessageBoxButton ( string name ) : System.Windows.Controls.Button |
Gets a message box button.
|
|
InitHandlers ( ) : void | ||
IsCurrentWindow ( object windowtoTest ) : bool | ||
MessageBox ( ) : System | ||
OnClose ( ) : void | ||
OnContainerClosed ( object sender, |
Callack to the Container.Closed event
|
|
SetDefaultResult ( ) : void |
Sets the button that represents the _defaultResult to the default button and gives it focus.
|
|
SetImageSource ( MessageBoxImage image ) : void |
Sets the message image source.
|
|
ShowCore ( |
Shows the MessageBox.
|
|
ShowMessageBoxCore ( string messageText, string caption, MessageBoxButton button, MessageBoxImage icon, MessageBoxResult defaultResult ) : void | ||
UpdateBlockMouseInputsPanel ( ) : void |
protected ChangeVisualState ( string name, bool useTransitions ) : void | ||
name | string | name of the state |
useTransitions | bool | True if state transitions should be used. |
Résultat | void |
protected InitializeMessageBox ( |
||
owner | ||
text | string | The text. |
caption | string | The caption. |
button | MessageBoxButton | The button. |
image | MessageBoxImage | The image. |
defaultResult | MessageBoxResult | |
Résultat | void |
protected OnCloseButtonClicked ( |
||
e | The |
|
Résultat | void |
protected OnClosed ( |
||
e | ||
Résultat | void |
protected OnCoerceCloseButtonVisibility ( Visibility newValue ) : object | ||
newValue | Visibility | |
Résultat | object |
protected OnCoerceWindowStyle ( WindowStyle newValue ) : object | ||
newValue | WindowStyle | |
Résultat | object |
protected OnHeaderDragDelta ( System.Windows.Controls.Primitives.DragDeltaEventArgs e ) : void | ||
e | System.Windows.Controls.Primitives.DragDeltaEventArgs | The |
Résultat | void |
protected OnHeaderIconDoubleClicked ( MouseButtonEventArgs e ) : void | ||
e | MouseButtonEventArgs | The |
Résultat | void |
public static Show ( |
||
owner | A System.Windows.Window that represents the owner of the MessageBox | |
messageText | string | A System.String that specifies the text to display. |
Résultat | MessageBoxResult |
public static Show ( |
||
owner | ||
messageText | string | |
caption | string | |
Résultat | MessageBoxResult |
public static Show ( |
||
owner | ||
messageText | string | |
caption | string | |
button | MessageBoxButton | |
Résultat | MessageBoxResult |
public static Show ( |
||
owner | ||
messageText | string | |
caption | string | |
button | MessageBoxButton | |
icon | MessageBoxImage | |
Résultat | MessageBoxResult |
public static Show ( |
||
owner | ||
messageText | string | |
caption | string | |
button | MessageBoxButton | |
icon | MessageBoxImage | |
defaultResult | MessageBoxResult | |
Résultat | MessageBoxResult |
public static Show ( |
||
owner | ||
messageText | string | |
caption | string | |
button | MessageBoxButton | |
icon | MessageBoxImage | |
defaultResult | MessageBoxResult | |
messageBoxStyle | System.Windows.Style | |
Résultat | MessageBoxResult |
public static Show ( |
||
owner | ||
messageText | string | |
caption | string | |
button | MessageBoxButton | |
icon | MessageBoxImage | |
messageBoxStyle | System.Windows.Style | |
Résultat | MessageBoxResult |
public static Show ( |
||
owner | ||
messageText | string | |
caption | string | |
button | MessageBoxButton | |
messageBoxStyle | System.Windows.Style | |
Résultat | MessageBoxResult |
public static Show ( |
||
owner | ||
messageText | string | |
caption | string | |
messageBoxStyle | System.Windows.Style | |
Résultat | MessageBoxResult |
public static Show ( string messageText ) : MessageBoxResult | ||
messageText | string | A System.String that specifies the text to display. |
Résultat | MessageBoxResult |
public static Show ( string messageText, string caption ) : MessageBoxResult | ||
messageText | string | A System.String that specifies the text to display. |
caption | string | A System.String that specifies the title bar caption to display. |
Résultat | MessageBoxResult |
public static Show ( string messageText, string caption, MessageBoxButton button ) : MessageBoxResult | ||
messageText | string | |
caption | string | |
button | MessageBoxButton | |
Résultat | MessageBoxResult |
public static Show ( string messageText, string caption, MessageBoxButton button, MessageBoxImage icon ) : MessageBoxResult | ||
messageText | string | |
caption | string | |
button | MessageBoxButton | |
icon | MessageBoxImage | |
Résultat | MessageBoxResult |
public static Show ( string messageText, string caption, MessageBoxButton button, MessageBoxImage icon, MessageBoxResult defaultResult ) : MessageBoxResult | ||
messageText | string | |
caption | string | |
button | MessageBoxButton | |
icon | MessageBoxImage | |
defaultResult | MessageBoxResult | |
Résultat | MessageBoxResult |
public static Show ( string messageText, string caption, MessageBoxButton button, MessageBoxImage icon, MessageBoxResult defaultResult, System.Windows.Style messageBoxStyle ) : MessageBoxResult | ||
messageText | string | A System.String that specifies the text to display. |
caption | string | A System.String that specifies the title bar caption to display. |
button | MessageBoxButton | A System.Windows.MessageBoxButton value that specifies which button or buttons to display. |
icon | MessageBoxImage | |
defaultResult | MessageBoxResult | A System.Windows.MessageBoxResult value that specifies the default result of the MessageBox. |
messageBoxStyle | System.Windows.Style | A Style that will be applied to the MessageBox instance. |
Résultat | MessageBoxResult |
public static Show ( string messageText, string caption, MessageBoxButton button, MessageBoxImage icon, System.Windows.Style messageBoxStyle ) : MessageBoxResult | ||
messageText | string | A System.String that specifies the text to display. |
caption | string | A System.String that specifies the title bar caption to display. |
button | MessageBoxButton | A System.Windows.MessageBoxButton value that specifies which button or buttons to display. |
icon | MessageBoxImage | |
messageBoxStyle | System.Windows.Style | A Style that will be applied to the MessageBox instance. |
Résultat | MessageBoxResult |
public static Show ( string messageText, string caption, MessageBoxButton button, System.Windows.Style messageBoxStyle ) : MessageBoxResult | ||
messageText | string | A System.String that specifies the text to display. |
caption | string | A System.String that specifies the title bar caption to display. |
button | MessageBoxButton | A System.Windows.MessageBoxButton value that specifies which button or buttons to display. |
messageBoxStyle | System.Windows.Style | A Style that will be applied to the MessageBox instance. |
Résultat | MessageBoxResult |
public ShowMessageBox ( string messageText ) : void | ||
messageText | string | |
Résultat | void |
public ShowMessageBox ( string messageText, string caption ) : void | ||
messageText | string | |
caption | string | |
Résultat | void |
public ShowMessageBox ( string messageText, string caption, MessageBoxButton button ) : void | ||
messageText | string | |
caption | string | |
button | MessageBoxButton | |
Résultat | void |
public ShowMessageBox ( string messageText, string caption, MessageBoxButton button, MessageBoxImage icon ) : void | ||
messageText | string | |
caption | string | |
button | MessageBoxButton | |
icon | MessageBoxImage | |
Résultat | void |
public ShowMessageBox ( string messageText, string caption, MessageBoxButton button, MessageBoxImage icon, MessageBoxResult defaultResult ) : void | ||
messageText | string | |
caption | string | |
button | MessageBoxButton | |
icon | MessageBoxImage | |
defaultResult | MessageBoxResult | |
Résultat | void |
public static DependencyProperty,System.Windows ButtonRegionBackgroundProperty | ||
Résultat |
public static DependencyProperty,System.Windows CancelButtonContentProperty | ||
Résultat |
public static DependencyProperty,System.Windows CancelButtonStyleProperty | ||
Résultat |
public static DependencyProperty,System.Windows ImageSourceProperty | ||
Résultat |
public static DependencyProperty,System.Windows NoButtonContentProperty | ||
Résultat |
public static DependencyProperty,System.Windows NoButtonStyleProperty | ||
Résultat |
public static DependencyProperty,System.Windows OkButtonContentProperty | ||
Résultat |
public static DependencyProperty,System.Windows OkButtonStyleProperty | ||
Résultat |
public static DependencyProperty,System.Windows TextProperty | ||
Résultat |
public static DependencyProperty,System.Windows YesButtonContentProperty | ||
Résultat |