Table of Contents

Class MarkdownField

Namespace
The.WPF.Fields
Assembly
Instagile.WPF.dll
public class MarkdownField : ValueField<string>, IField<string>, IField, IModel, INotifyPropertyChanged, IDataErrorInfo, IBoundField
Inheritance
MarkdownField
Implements
Inherited Members
Extension Methods

Constructors

MarkdownField(ISurface, string, string)

public MarkdownField(ISurface surface, string label, string initialValue)

Parameters

surface ISurface
label string
initialValue string

MarkdownField(ISurface, string, IValue<string>?)

public MarkdownField(ISurface surface, string label, IValue<string>? value = null)

Parameters

surface ISurface
label string
value IValue<string>

MarkdownField(ISurface, IOwnedValue<string>?)

public MarkdownField(ISurface surface, IOwnedValue<string>? value = null)

Parameters

surface ISurface
value IOwnedValue<string>

Properties

DoEdit

public ICommand DoEdit { get; }

Property Value

ICommand

DoPreview

public ICommand DoPreview { get; }

Property Value

ICommand

Document

The rendered FlowDocument for the current Markdown value. Lazily initialised on first access so the FlowDocument is created on the UI thread.

public FlowDocument Document { get; }

Property Value

FlowDocument

Methods

Edit()

protected virtual Task Edit()

Returns

Task

Preview()

protected virtual Task Preview()

Returns

Task

SetViewFromModelAndNotifyInternal()

protected override void SetViewFromModelAndNotifyInternal()