Xceed Toolkit Plus for WPF v4.6 Documentation
InitializeMessageBox Method


Xceed.Wpf.Toolkit Assembly > Xceed.Wpf.Toolkit Namespace > MessageBox Class : InitializeMessageBox Method
The owner Window.
The text of the MessageBox.
The caption of the MessageBox.
The MessageBoxButton.
The MessageBoxImage.
The default result.
Initializes the MessageBox.
Syntax
'Declaration
 
Protected Sub InitializeMessageBox( _
   ByVal owner As Window, _
   ByVal ownerHandle As IntPtr, _
   ByVal text As String, _
   ByVal caption As String, _
   ByVal button As MessageBoxButton, _
   ByVal image As MessageBoxImage, _
   ByVal defaultResult As MessageBoxResult _
) 
'Usage
 
Dim instance As MessageBox
Dim owner As Window
Dim ownerHandle As IntPtr
Dim text As String
Dim caption As String
Dim button As MessageBoxButton
Dim image As MessageBoxImage
Dim defaultResult As MessageBoxResult
 
instance.InitializeMessageBox(owner, ownerHandle, text, caption, button, image, defaultResult)
protected void InitializeMessageBox( 
   Window owner,
   IntPtr ownerHandle,
   string text,
   string caption,
   MessageBoxButton button,
   MessageBoxImage image,
   MessageBoxResult defaultResult
)

Parameters

owner
The owner Window.
ownerHandle
text
The text of the MessageBox.
caption
The caption of the MessageBox.
button
The MessageBoxButton.
image
The MessageBoxImage.
defaultResult
The default result.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

MessageBox Class
MessageBox Members