A generic Browser based message box with generic buttons that can be customized and added to display custom messages.
System.Windows.Threading.DispatcherObject
System.Windows.DependencyObject
System.Windows.Media.Visual
System.Windows.UIElement
System.Windows.FrameworkElement
System.Windows.Controls.Control
System.Windows.Controls.ContentControl
System.Windows.Window
MahApps.Metro.Controls.MetroWindow
MarkdownMonster.Windows.BrowserMessageBox
public class BrowserMessageBox : MetroWindow, IDisposable, IComponentConnector
Class Members
Member | Description | |
---|---|---|
Constructor |
||
ButtonCancel |
ButtonCancel Name Field | |
ButtonCancelText |
ButtonCancelText Name Field | |
ButtonOk |
ButtonOk Name Field | |
ButtonOkText |
ButtonOkText Name Field | |
AddButton |
public Button AddButton(string text, FontAwesomeIcon icon, Brush iconColor) |
|
ClearButtons |
public void ClearButtons() |
|
Dispose |
public sealed void Dispose() |
|
InitializeComponent |
InitializeComponent public sealed void InitializeComponent() |
|
Navigate |
public void Navigate(string url) |
|
NavigateAndWaitForCompletion |
public bool NavigateAndWaitForCompletion(string url) |
|
SetHtml |
public Task SetHtml(string html, bool isFullHtmlDocument) |
|
SetMarkdown |
Renders a Markdown string as HTML using the currently active Markdown Monster Preview theme. public Task SetMarkdown(string markdown) |
|
SetMessage |
Raw text to display in the public void SetMessage(string messageText) |
|
Show |
Shows the dialog without waiting for completion public void Show(int focusedButton) |
|
ShowDialog |
Shows the dialog modally and sets focus to the specified button public bool? ShowDialog(int focusedButton) |
|
ButtonClickHandler |
Provide a function that passes a control RoutedEventArgs and returns true if the form should close or false if it shouldn't. | |
ButtonResult |
Holds the result button object that was clicked to close this form | |
Handler |
The WebViewHandler instance manages this WebView instance. | |
HtmlTemplatePath |
Default HTML template text used to render HTML If not specified the Preview Template is used for preview. | |
IsCancelButtonVisible |
Determines whether the default Cancel Button is displayed | |
IsLoaded |
Flag that can be checked to see if the content has been loaded, since content loads asynchronously in the background | |
IsOkButtonVisible |
Determines whether the default OK button is displayed | |
OpenLinksExternally |
If true, any http links in the browser's content area are opened externally using the Shell browser. |
Requirements
Namespace: MarkdownMonster.WindowsAssembly: markdownmonster.exe
© West Wind Technologies, 2016-2024 • Updated: 11/23/21
Comment or report problem with topic