Свойство | Тип | Описание | |
---|---|---|---|
ButtonRegionBackgroundProperty | |||
CancelButtonContentProperty | |||
CancelButtonStyleProperty | |||
ImageSourceProperty | |||
NoButtonContentProperty | |||
NoButtonStyleProperty | |||
OkButtonContentProperty | |||
OkButtonStyleProperty | |||
TextProperty | |||
YesButtonContentProperty | |||
YesButtonStyleProperty |
Свойство | Тип | Описание | |
---|---|---|---|
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 |
Метод | Описание | |
---|---|---|
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.
|
Метод | Описание | |
---|---|---|
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.
|
Метод | Описание | |
---|---|---|
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. |
Результат | void |
protected InitializeMessageBox ( |
||
owner | ||
text | string | The text. |
caption | string | The caption. |
button | MessageBoxButton | The button. |
image | MessageBoxImage | The image. |
defaultResult | MessageBoxResult | |
Результат | void |
protected OnCloseButtonClicked ( |
||
e | The |
|
Результат | void |
protected OnClosed ( |
||
e | ||
Результат | void |
protected OnCoerceCloseButtonVisibility ( Visibility newValue ) : object | ||
newValue | Visibility | |
Результат | object |
protected OnCoerceWindowStyle ( WindowStyle newValue ) : object | ||
newValue | WindowStyle | |
Результат | object |
protected OnHeaderDragDelta ( System.Windows.Controls.Primitives.DragDeltaEventArgs e ) : void | ||
e | System.Windows.Controls.Primitives.DragDeltaEventArgs | The |
Результат | void |
protected OnHeaderIconDoubleClicked ( MouseButtonEventArgs e ) : void | ||
e | MouseButtonEventArgs | The |
Результат | 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. |
Результат | MessageBoxResult |
public static Show ( |
||
owner | ||
messageText | string | |
caption | string | |
Результат | MessageBoxResult |
public static Show ( |
||
owner | ||
messageText | string | |
caption | string | |
button | MessageBoxButton | |
Результат | MessageBoxResult |
public static Show ( |
||
owner | ||
messageText | string | |
caption | string | |
button | MessageBoxButton | |
icon | MessageBoxImage | |
Результат | MessageBoxResult |
public static Show ( |
||
owner | ||
messageText | string | |
caption | string | |
button | MessageBoxButton | |
icon | MessageBoxImage | |
defaultResult | MessageBoxResult | |
Результат | MessageBoxResult |
public static Show ( |
||
owner | ||
messageText | string | |
caption | string | |
button | MessageBoxButton | |
icon | MessageBoxImage | |
defaultResult | MessageBoxResult | |
messageBoxStyle | System.Windows.Style | |
Результат | MessageBoxResult |
public static Show ( |
||
owner | ||
messageText | string | |
caption | string | |
button | MessageBoxButton | |
icon | MessageBoxImage | |
messageBoxStyle | System.Windows.Style | |
Результат | MessageBoxResult |
public static Show ( |
||
owner | ||
messageText | string | |
caption | string | |
button | MessageBoxButton | |
messageBoxStyle | System.Windows.Style | |
Результат | MessageBoxResult |
public static Show ( |
||
owner | ||
messageText | string | |
caption | string | |
messageBoxStyle | System.Windows.Style | |
Результат | MessageBoxResult |
public static Show ( string messageText ) : MessageBoxResult | ||
messageText | string | A System.String that specifies the text to display. |
Результат | 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. |
Результат | MessageBoxResult |
public static Show ( string messageText, string caption, MessageBoxButton button ) : MessageBoxResult | ||
messageText | string | |
caption | string | |
button | MessageBoxButton | |
Результат | MessageBoxResult |
public static Show ( string messageText, string caption, MessageBoxButton button, MessageBoxImage icon ) : MessageBoxResult | ||
messageText | string | |
caption | string | |
button | MessageBoxButton | |
icon | MessageBoxImage | |
Результат | 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 | |
Результат | 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. |
Результат | 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. |
Результат | 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. |
Результат | MessageBoxResult |
public ShowMessageBox ( string messageText ) : void | ||
messageText | string | |
Результат | void |
public ShowMessageBox ( string messageText, string caption ) : void | ||
messageText | string | |
caption | string | |
Результат | void |
public ShowMessageBox ( string messageText, string caption, MessageBoxButton button ) : void | ||
messageText | string | |
caption | string | |
button | MessageBoxButton | |
Результат | void |
public ShowMessageBox ( string messageText, string caption, MessageBoxButton button, MessageBoxImage icon ) : void | ||
messageText | string | |
caption | string | |
button | MessageBoxButton | |
icon | MessageBoxImage | |
Результат | void |
public ShowMessageBox ( string messageText, string caption, MessageBoxButton button, MessageBoxImage icon, MessageBoxResult defaultResult ) : void | ||
messageText | string | |
caption | string | |
button | MessageBoxButton | |
icon | MessageBoxImage | |
defaultResult | MessageBoxResult | |
Результат | void |
public static DependencyProperty,System.Windows ButtonRegionBackgroundProperty | ||
Результат |
public static DependencyProperty,System.Windows CancelButtonContentProperty | ||
Результат |
public static DependencyProperty,System.Windows CancelButtonStyleProperty | ||
Результат |
public static DependencyProperty,System.Windows ImageSourceProperty | ||
Результат |
public static DependencyProperty,System.Windows NoButtonContentProperty | ||
Результат |
public static DependencyProperty,System.Windows NoButtonStyleProperty | ||
Результат |
public static DependencyProperty,System.Windows OkButtonContentProperty | ||
Результат |
public static DependencyProperty,System.Windows OkButtonStyleProperty | ||
Результат |
public static DependencyProperty,System.Windows TextProperty | ||
Результат |
public static DependencyProperty,System.Windows YesButtonContentProperty | ||
Результат |