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
ファイルを表示 Open project: chenguanzhou/MarkDownEditor

Public Properties

Property Type Description
documentPath string
documentTitle string
isBrowserInitialized bool
isModified bool
isReadingMode bool
isSynchronize bool
previewWidth string
scrollToSelectionStart bool
shouldReload bool
showPreview bool
sourceCodeWidth string

Public Methods

Method Description
Cleanup ( ) : void
MainViewModel ( ) : CefSharp

Initializes a new instance of the MainViewModel class.

RequestClosing ( ) : Task
UpdateCSSFiles ( ) : void

Private Methods

Method 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 method

public Cleanup ( ) : void
return void

MainViewModel() public method

Initializes a new instance of the MainViewModel class.
public MainViewModel ( ) : CefSharp
return CefSharp

RequestClosing() public method

public RequestClosing ( ) : Task
return Task

UpdateCSSFiles() public method

public UpdateCSSFiles ( ) : void
return void

Property Details

documentPath public_oe property

public string documentPath
return string

documentTitle public_oe property

public string documentTitle
return string

isBrowserInitialized public_oe property

public bool isBrowserInitialized
return bool

isModified public_oe property

public bool isModified
return bool

isReadingMode public_oe property

public bool isReadingMode
return bool

isSynchronize public_oe property

public bool isSynchronize
return bool

previewWidth public_oe property

public string previewWidth
return string

scrollToSelectionStart public_oe property

public bool scrollToSelectionStart
return bool

shouldReload public_oe property

public bool shouldReload
return bool

showPreview public_oe property

public bool showPreview
return bool

sourceCodeWidth public_oe property

public string sourceCodeWidth
return string