Class AppModel

Global App model for the application. Holds references to top level components like the Window, configuration and more as well as includes a number of helper functions.

Available to Addins as this.Model.

System.Object
  MarkdownMonster.AppModel
public class AppModel : object, INotifyPropertyChanged

Class Members

MemberDescription

Constructor

PropertyChanged

SelectedEditor

OnPropertyChanged

public virtual void OnPropertyChanged(string propertyName)

ActiveDocument

Returns the MarkdownDocument instance of the active editor

ActiveEditor

Returns an instance of the Active Editor instance. The editor contains editor behavior of the browser control as well as all interactions with the editor's event model and text selection interfaces.

Contains an AceEditor property that references the underlying JavaScript editor wrapper instance.

ActiveEditorTabItem

Gets the Active Tab Item instance.

(obsolete) Also used to minimize flash when activating a new tab by first hiding the old tab, before showing the new one.

ActiveProject

ActiveTabFilename

Returns the active Tab's file name - this can either be the name of a Markdown Document editor or just a filename or URL from a preview tab.

Commands

Commands

Configuration

The application's main configuration object

Console

DocumentTypes

EditorThemeNames

A list of Ace Editor themes retrieved from the Editor script folder

EncodingTypes

Encodings for the Encoding drop down

IsDebugMode

Determines whether the application is compiled in Debug Mode Provided here mainly as an aid for turning on and off debugging menu and UI options.

IsEditorActive

Determines if there's a document loaded

IsEditorFocused

Determines whether the editor currently has focus

IsExternalPreview

Determines whether the preview is shown in an Exteranl Browser Window

IsFullScreen

IsInternalPreview

Determines whether the preview is shown in the Internal Preview Pane

IsNoTabOpen

IsPresentationMode

IsPreviewBrowserVisible

Determines whether the preview browser is visible or not

IsTabOpen

Determines whether there are open tabs

MarkdownParserColumnWidth

Returns the width of the column containing the Markdown Parser selection combo box

MarkdownParserNames

List of registered Markdown Parsers

OpenDocuments

Gives a list of all the open documents as Markdown document instances

OpenEditors

Returns a list of open editor instances inside of open tabs

PreviewSyncModeItems

PreviewThemeNames

A list of PreviewThemes as retrieved based on the folder structure of hte Preview folder.

Window

An instance of the main application WPF form

WindowLayout

Contains Main Window layout settings and functionality

Requirements

Namespace: MarkdownMonster
Assembly: markdownmonster.exe

© West Wind Technologies, 2016-2023 • Updated: 11/23/21
Comment or report problem with topic