C# 클래스 Xceed.Wpf.Toolkit.MessageBox

상속: System.Windows.Controls.Control
파일 보기 프로젝트 열기: Gainedge/BetterExplorer 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
ButtonRegionBackgroundProperty System.Windows.DependencyProperty
CancelButtonContentProperty System.Windows.DependencyProperty
CancelButtonStyleProperty System.Windows.DependencyProperty
ImageSourceProperty System.Windows.DependencyProperty
NoButtonContentProperty System.Windows.DependencyProperty
NoButtonStyleProperty System.Windows.DependencyProperty
OkButtonContentProperty System.Windows.DependencyProperty
OkButtonStyleProperty System.Windows.DependencyProperty
TextProperty System.Windows.DependencyProperty
YesButtonContentProperty System.Windows.DependencyProperty
YesButtonStyleProperty System.Windows.DependencyProperty

Private Properties

프로퍼티 타입 설명
Button_Click void
Close void
CreateContainer System.Windows.Window
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 ( Window owner, string messageText ) : MessageBoxResult

Displays a message box that has a message and that returns a result.

Show ( Window owner, string messageText, string caption ) : MessageBoxResult
Show ( Window owner, string messageText, string caption, MessageBoxButton button ) : MessageBoxResult
Show ( Window owner, string messageText, string caption, MessageBoxButton button, MessageBoxImage icon ) : MessageBoxResult
Show ( Window owner, string messageText, string caption, MessageBoxButton button, MessageBoxImage icon, MessageBoxResult defaultResult ) : MessageBoxResult
Show ( Window owner, string messageText, string caption, MessageBoxButton button, MessageBoxImage icon, MessageBoxResult defaultResult, System.Windows.Style messageBoxStyle ) : MessageBoxResult
Show ( Window owner, string messageText, string caption, MessageBoxButton button, MessageBoxImage icon, System.Windows.Style messageBoxStyle ) : MessageBoxResult
Show ( Window owner, string messageText, string caption, MessageBoxButton button, System.Windows.Style messageBoxStyle ) : MessageBoxResult
Show ( Window owner, string messageText, string caption, System.Windows.Style messageBoxStyle ) : MessageBoxResult
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 ( Window owner, string text, string caption, MessageBoxButton button, MessageBoxImage image, MessageBoxResult defaultResult ) : void

Initializes the MessageBox.

OnCloseButtonClicked ( RoutedEventArgs e ) : void

Processes the close button click.

OnClosed ( EventArgs e ) : void
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, RoutedEventArgs e ) : void

Sets the MessageBoxResult according to the button pressed and then closes the MessageBox.

Close ( ) : void

Closes the MessageBox.

CreateContainer ( ) : Window

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, EventArgs e ) : void

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 ( Window owner, string messageText, string caption, MessageBoxButton button, MessageBoxImage icon, MessageBoxResult defaultResult, System.Windows.Style messageBoxStyle ) : MessageBoxResult

Shows the MessageBox.

ShowMessageBoxCore ( string messageText, string caption, MessageBoxButton button, MessageBoxImage icon, MessageBoxResult defaultResult ) : void
UpdateBlockMouseInputsPanel ( ) : void

메소드 상세

ChangeVisualState() 보호된 메소드

Changes the control's visual state(s).
protected ChangeVisualState ( string name, bool useTransitions ) : void
name string name of the state
useTransitions bool True if state transitions should be used.
리턴 void

InitializeMessageBox() 보호된 메소드

Initializes the MessageBox.
protected InitializeMessageBox ( Window owner, string text, string caption, MessageBoxButton button, MessageBoxImage image, MessageBoxResult defaultResult ) : void
owner System.Windows.Window
text string The text.
caption string The caption.
button MessageBoxButton The button.
image MessageBoxImage The image.
defaultResult MessageBoxResult
리턴 void

OnApplyTemplate() 공개 메소드

Overrides the OnApplyTemplate method.
public OnApplyTemplate ( ) : void
리턴 void

OnCloseButtonClicked() 보호된 메소드

Processes the close button click.
protected OnCloseButtonClicked ( RoutedEventArgs e ) : void
e System.Windows.RoutedEventArgs The instance containing the event data.
리턴 void

OnClosed() 보호된 메소드

protected OnClosed ( EventArgs e ) : void
e System.EventArgs
리턴 void

OnCoerceCloseButtonVisibility() 보호된 메소드

protected OnCoerceCloseButtonVisibility ( Visibility newValue ) : object
newValue Visibility
리턴 object

OnCoerceWindowStyle() 보호된 메소드

protected OnCoerceWindowStyle ( WindowStyle newValue ) : object
newValue WindowStyle
리턴 object

OnHeaderDragDelta() 보호된 메소드

Processes the move of a drag operation on the header.
protected OnHeaderDragDelta ( System.Windows.Controls.Primitives.DragDeltaEventArgs e ) : void
e System.Windows.Controls.Primitives.DragDeltaEventArgs The instance containing the event data.
리턴 void

OnHeaderIconDoubleClicked() 보호된 메소드

Processes the double-click on the header.
protected OnHeaderIconDoubleClicked ( MouseButtonEventArgs e ) : void
e MouseButtonEventArgs The instance containing the event data.
리턴 void

Show() 공개 정적인 메소드

Displays a message box that has a message and that returns a result.
public static Show ( Window owner, string messageText ) : MessageBoxResult
owner System.Windows.Window A System.Windows.Window that represents the owner of the MessageBox
messageText string A System.String that specifies the text to display.
리턴 MessageBoxResult

Show() 공개 정적인 메소드

public static Show ( Window owner, string messageText, string caption ) : MessageBoxResult
owner System.Windows.Window
messageText string
caption string
리턴 MessageBoxResult

Show() 공개 정적인 메소드

public static Show ( Window owner, string messageText, string caption, MessageBoxButton button ) : MessageBoxResult
owner System.Windows.Window
messageText string
caption string
button MessageBoxButton
리턴 MessageBoxResult

Show() 공개 정적인 메소드

public static Show ( Window owner, string messageText, string caption, MessageBoxButton button, MessageBoxImage icon ) : MessageBoxResult
owner System.Windows.Window
messageText string
caption string
button MessageBoxButton
icon MessageBoxImage
리턴 MessageBoxResult

Show() 공개 정적인 메소드

public static Show ( Window owner, string messageText, string caption, MessageBoxButton button, MessageBoxImage icon, MessageBoxResult defaultResult ) : MessageBoxResult
owner System.Windows.Window
messageText string
caption string
button MessageBoxButton
icon MessageBoxImage
defaultResult MessageBoxResult
리턴 MessageBoxResult

Show() 공개 정적인 메소드

public static Show ( Window owner, string messageText, string caption, MessageBoxButton button, MessageBoxImage icon, MessageBoxResult defaultResult, System.Windows.Style messageBoxStyle ) : MessageBoxResult
owner System.Windows.Window
messageText string
caption string
button MessageBoxButton
icon MessageBoxImage
defaultResult MessageBoxResult
messageBoxStyle System.Windows.Style
리턴 MessageBoxResult

Show() 공개 정적인 메소드

public static Show ( Window owner, string messageText, string caption, MessageBoxButton button, MessageBoxImage icon, System.Windows.Style messageBoxStyle ) : MessageBoxResult
owner System.Windows.Window
messageText string
caption string
button MessageBoxButton
icon MessageBoxImage
messageBoxStyle System.Windows.Style
리턴 MessageBoxResult

Show() 공개 정적인 메소드

public static Show ( Window owner, string messageText, string caption, MessageBoxButton button, System.Windows.Style messageBoxStyle ) : MessageBoxResult
owner System.Windows.Window
messageText string
caption string
button MessageBoxButton
messageBoxStyle System.Windows.Style
리턴 MessageBoxResult

Show() 공개 정적인 메소드

public static Show ( Window owner, string messageText, string caption, System.Windows.Style messageBoxStyle ) : MessageBoxResult
owner System.Windows.Window
messageText string
caption string
messageBoxStyle System.Windows.Style
리턴 MessageBoxResult

Show() 공개 정적인 메소드

Displays a message box that has a message and that returns a result.
public static Show ( string messageText ) : MessageBoxResult
messageText string A System.String that specifies the text to display.
리턴 MessageBoxResult

Show() 공개 정적인 메소드

Displays a message box that has a message and title bar caption; and that returns a result.
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

Show() 공개 정적인 메소드

public static Show ( string messageText, string caption, MessageBoxButton button ) : MessageBoxResult
messageText string
caption string
button MessageBoxButton
리턴 MessageBoxResult

Show() 공개 정적인 메소드

public static Show ( string messageText, string caption, MessageBoxButton button, MessageBoxImage icon ) : MessageBoxResult
messageText string
caption string
button MessageBoxButton
icon MessageBoxImage
리턴 MessageBoxResult

Show() 공개 정적인 메소드

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

Show() 공개 정적인 메소드

Displays a message box that has a message and that returns a result.
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

Show() 공개 정적인 메소드

Displays a message box that has a message and that returns a result.
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

Show() 공개 정적인 메소드

Displays a message box that has a message and that returns a result.
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

ShowDialog() 공개 메소드

Display the MessageBox window and returns only when this MessageBox closes.
public ShowDialog ( ) : bool?
리턴 bool?

ShowMessageBox() 공개 메소드

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.
public ShowMessageBox ( ) : void
리턴 void

ShowMessageBox() 공개 메소드

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.
public ShowMessageBox ( string messageText ) : void
messageText string
리턴 void

ShowMessageBox() 공개 메소드

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.
public ShowMessageBox ( string messageText, string caption ) : void
messageText string
caption string
리턴 void

ShowMessageBox() 공개 메소드

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.
public ShowMessageBox ( string messageText, string caption, MessageBoxButton button ) : void
messageText string
caption string
button MessageBoxButton
리턴 void

ShowMessageBox() 공개 메소드

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.
public ShowMessageBox ( string messageText, string caption, MessageBoxButton button, MessageBoxImage icon ) : void
messageText string
caption string
button MessageBoxButton
icon MessageBoxImage
리턴 void

ShowMessageBox() 공개 메소드

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.
public ShowMessageBox ( string messageText, string caption, MessageBoxButton button, MessageBoxImage icon, MessageBoxResult defaultResult ) : void
messageText string
caption string
button MessageBoxButton
icon MessageBoxImage
defaultResult MessageBoxResult
리턴 void

프로퍼티 상세

ButtonRegionBackgroundProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows ButtonRegionBackgroundProperty
리턴 System.Windows.DependencyProperty

CancelButtonContentProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows CancelButtonContentProperty
리턴 System.Windows.DependencyProperty

CancelButtonStyleProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows CancelButtonStyleProperty
리턴 System.Windows.DependencyProperty

ImageSourceProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows ImageSourceProperty
리턴 System.Windows.DependencyProperty

NoButtonContentProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows NoButtonContentProperty
리턴 System.Windows.DependencyProperty

NoButtonStyleProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows NoButtonStyleProperty
리턴 System.Windows.DependencyProperty

OkButtonContentProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows OkButtonContentProperty
리턴 System.Windows.DependencyProperty

OkButtonStyleProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows OkButtonStyleProperty
리턴 System.Windows.DependencyProperty

TextProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows TextProperty
리턴 System.Windows.DependencyProperty

YesButtonContentProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows YesButtonContentProperty
리턴 System.Windows.DependencyProperty

YesButtonStyleProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows YesButtonStyleProperty
리턴 System.Windows.DependencyProperty