Display options - Richasy/Controls-MarkdownEditBox GitHub Wiki

The full definition of DisplayOptions is here.

The properties of this option is as follows:

  • DisplayType: Determine whether to display the preview window
  • MinPercent / MaxPercent / DefaultPercent: Control the proportion of the editing area view in the entire WebView

The control provides preset configurations:

  • Split: The default left and right accounts for 50%, the edit area view is at least 30% and the largest at 80%
  • Editor: Edit area accounts for 100% and cannot be adjusted

Of course, you can also create your own display configuration:

var myDisplayOptions = DisplayOptions.CreateOptions(EditBoxDisplayMode.Split, 40, 60, 50);

It should be noted that in the process of creating DisplayOptions, the control will verify the parameters, DefaultPercent must be between MinPercent and MaxPercent