C# Class MarkDownEditor.ViewModel.MainViewModel

This class contains properties that the main View can data bind to.

Use the mvvminpc snippet to add bindable properties to this ViewModel.

You can also use Blend to data bind with the tool's support.

See http://www.galasoft.ch/mvvm

Inheritance: ViewModelBase
Afficher le fichier Open project: chenguanzhou/MarkDownEditor

Méthodes publiques

Свойство Type Description
documentPath string
documentTitle string
isBrowserInitialized bool
isModified bool
isReadingMode bool
isSynchronize bool
previewWidth string
scrollToSelectionStart bool
shouldReload bool
showPreview bool
sourceCodeWidth string

Méthodes publiques

Méthode Description
Cleanup ( ) : void
MainViewModel ( ) : CefSharp

Initializes a new instance of the MainViewModel class.

RequestClosing ( ) : Task
UpdateCSSFiles ( ) : void

Private Methods

Méthode Description
LoadDefaultDocument ( ) : void
Open ( string path ) : Task
OpenDoc ( string path = null ) : void
Save ( ) : bool
SaveDoc2File ( string path ) : void
ShowCustomCSSMessage ( ) : void
UpdatePreview ( ) : void

Method Details

Cleanup() public méthode

public Cleanup ( ) : void
Résultat void

MainViewModel() public méthode

Initializes a new instance of the MainViewModel class.
public MainViewModel ( ) : CefSharp
Résultat CefSharp

RequestClosing() public méthode

public RequestClosing ( ) : Task
Résultat Task

UpdateCSSFiles() public méthode

public UpdateCSSFiles ( ) : void
Résultat void

Property Details

documentPath public_oe property

public string documentPath
Résultat string

documentTitle public_oe property

public string documentTitle
Résultat string

isBrowserInitialized public_oe property

public bool isBrowserInitialized
Résultat bool

isModified public_oe property

public bool isModified
Résultat bool

isReadingMode public_oe property

public bool isReadingMode
Résultat bool

isSynchronize public_oe property

public bool isSynchronize
Résultat bool

previewWidth public_oe property

public string previewWidth
Résultat string

scrollToSelectionStart public_oe property

public bool scrollToSelectionStart
Résultat bool

shouldReload public_oe property

public bool shouldReload
Résultat bool

showPreview public_oe property

public bool showPreview
Résultat bool

sourceCodeWidth public_oe property

public string sourceCodeWidth
Résultat string