Class BrowserMessageBox

A generic Browser based message box with generic buttons that can be customized and added to display custom messages.

System.Object
  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, IComponentConnector

Class Members

MemberDescription

Constructor

AddButton

public Button AddButton(string text,     FontAwesomeIcon icon,     Brush iconColor)

ClearButtons

public void ClearButtons()

InitializeComponent

InitializeComponent

public sealed void InitializeComponent()

Navigate

public void Navigate(string url)

NavigateAndWaitForCompletion

public bool NavigateAndWaitForCompletion(string url)

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)

ShowHtml

public void ShowHtml(string html,     bool isFullHtmlDocument)

ShowMarkdown

Renders a Markdown string as HTML using the currently active Markdown Monster Preview theme.

public void ShowMarkdown(string markdown)

ButtonClickHandler

Provide a function that passes a control RoutedEventArgs and returns true if the form should close or false if it shouldn't.

ButtonResult

Hold the button that was clicked to close this form

HtmlTemplatePath

Default HTML template text used to render HTML If not specified the Preview Template is used for preview.

Should include the same template settings as Preview Templates

IsLoaded

Requirements

Namespace: MarkdownMonster.Windows
Assembly: markdownmonster.exe

© West Wind Technologies, 1996-2021 • Updated: 02/14/20
Comment or report problem with topic