[This is preliminary documentation and is subject to change.]
Control that implements WPF MessageBox
Namespace: Tools.WindowsT.WPF.DialogsTAssembly: Tools.Windows (in Tools.Windows.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| C# |
|---|
[TemplatePartAttribute(Name = "PART_MiddleControlPlaceholder", Type = typeof(Panel))] [EditorBrowsableAttribute(EditorBrowsableState.Advanced)] [TemplatePartAttribute(Name = "PART_TopControlPlaceholder", Type = typeof(Panel))] [TemplatePartAttribute(Name = "PART_BottomControlPlaceholder", Type = typeof(Panel))] public class MessageBoxImplementationControl : Control, IDisposable |
| Visual Basic |
|---|
<TemplatePartAttribute(Name := "PART_MiddleControlPlaceholder", Type := GetType(Panel))> _ <EditorBrowsableAttribute(EditorBrowsableState.Advanced)> _ <TemplatePartAttribute(Name := "PART_TopControlPlaceholder", Type := GetType(Panel))> _ <TemplatePartAttribute(Name := "PART_BottomControlPlaceholder", Type := GetType(Panel))> _ Public Class MessageBoxImplementationControl _ Inherits Control _ Implements IDisposable |
| Visual C++ |
|---|
[TemplatePartAttribute(Name = L"PART_MiddleControlPlaceholder", Type = typeof(Panel))] [EditorBrowsableAttribute(EditorBrowsableState::Advanced)] [TemplatePartAttribute(Name = L"PART_TopControlPlaceholder", Type = typeof(Panel))] [TemplatePartAttribute(Name = L"PART_BottomControlPlaceholder", Type = typeof(Panel))] public ref class MessageBoxImplementationControl : public Control, IDisposable |
| F# |
|---|
[<TemplatePartAttribute(Name = "PART_MiddleControlPlaceholder", Type = typeof(Panel))>] [<EditorBrowsableAttribute(EditorBrowsableState.Advanced)>] [<TemplatePartAttribute(Name = "PART_TopControlPlaceholder", Type = typeof(Panel))>] [<TemplatePartAttribute(Name = "PART_BottomControlPlaceholder", Type = typeof(Panel))>] type MessageBoxImplementationControl = class inherit Control interface IDisposable end |
| JScript |
|---|
public class MessageBoxImplementationControl extends Control implements IDisposable |
Remarks
This control is not intended to be used separately, to be placed on yopur window. This control implements WPF MessageBox and can be styled/templated.
Teplate parts are panels for additional controls that can be placed on message box and are optional. When not pressent additional control will not be visible! But use of additional controls is rare.
This control is disposable. When it disposes it should not be used. It disposes automatically wehn message box window closes.
Due to WPF limitations message box always displays an ugly icon. If you want to hide the icon set GloballyHideNullIconsOfWindows to true.
Inheritance Hierarchy
System..::..Object
System.Windows.Threading..::..DispatcherObject
System.Windows..::..DependencyObject
System.Windows.Media..::..Visual
System.Windows..::..UIElement
System.Windows..::..FrameworkElement
System.Windows.Controls..::..Control
Tools.WindowsT.WPF.DialogsT..::..MessageBoxImplementationControl
System.Windows.Threading..::..DispatcherObject
System.Windows..::..DependencyObject
System.Windows.Media..::..Visual
System.Windows..::..UIElement
System.Windows..::..FrameworkElement
System.Windows.Controls..::..Control
Tools.WindowsT.WPF.DialogsT..::..MessageBoxImplementationControl
See Also
Version History
1.5.2
- (Nightly) Class introduced
1.5.3.
- (Beta) Added ability to copy all text of message box using Ctrl+C