[This is preliminary documentation and is subject to change.]
Implements MessageBox for Windows Presentation Foundation
Namespace: Tools.WindowsT.WPF.DialogsTAssembly: Tools.Windows (in Tools.Windows.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| C# |
|---|
public class MessageBox : MessageBox, INotifyPropertyChanged |
| Visual Basic |
|---|
Public Class MessageBox _ Inherits MessageBox _ Implements INotifyPropertyChanged |
| Visual C++ |
|---|
public ref class MessageBox : public MessageBox, INotifyPropertyChanged |
| F# |
|---|
type MessageBox = class inherit MessageBox interface INotifyPropertyChanged end |
| JScript |
|---|
public class MessageBox extends MessageBox implements INotifyPropertyChanged |
Remarks
Message box user interface is implemented by MessageBoxImplementationControl. To change style or template of message box, use that control.
Inheritance Hierarchy
System..::..Object
System..::..MarshalByRefObject
System.ComponentModel..::..Component
Tools.WindowsT.IndependentT..::..MessageBox
Tools.WindowsT.WPF.DialogsT..::..MessageBox
System..::..MarshalByRefObject
System.ComponentModel..::..Component
Tools.WindowsT.IndependentT..::..MessageBox
Tools.WindowsT.WPF.DialogsT..::..MessageBox
See Also
Version History
1.5.2
- (Nightly) Class introduced
1.5.3
- (Beta) Added support for Window as message box owner required by changes in MessageBox
- (Beta) Owner of dialog now can be any DependencyObject hosted in Window.
- Messages are now centered to thair owner (if some conditions are met).
The conditions are: Owner is specified and - Owner is Window or it's DependencyObject for which a Window can be determined using GetWindow(DependencyObject) -or-
Owner is Control -or-
Owner is either IWin32Window or IWin32Window and it's handle represents System.Windows.Controls -or-
If owner is Control dialog is centered to control's parent Form (if it can be determined using FindForm()()()()). If Form cannot be determined the dialog is centered to control itself. If owner is DependencyObject dialog is centered to parent Window of the DependencyObject. If parent Window cannot be found (using GetWindow(DependencyObject)) the dialog is not centered at all.
If owner is either IWin32Window or IWin32Window and no corresponding Control can be found (using FromHandle(IntPtr)) the dialog is not centered. (This is considered a limitation which may be fixed in one of next versions.)