RichTextBoxAdv


Display a Window containing some RichText



XAML


xaml←RichTextBoxAdvXAML
⍝ XAML for the RichTextBoxAdv example
 xaml←⊂'<Window'
 xaml,←⊂'    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"'
 xaml,←⊂'    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"'
 xaml,←⊂'    xmlns:sftools="clr-namespace:Syncfusion.Windows.Tools.Controls;assembly=SyncFusion.RichTextBoxAdv.WPF"'
 xaml,←⊂'    SizeToContent="WidthandHeight" >'
 xaml,←⊂'    <StackPanel>'
 xaml,←⊂'        <sftools:RichTextBoxAdv Name="richtext" Height="100" Width="300">'
 xaml,←⊂'        </sftools:RichTextBoxAdv>'
 xaml,←⊂'    </StackPanel>'
 xaml,←⊂'</Window>'


Code


∇  z←RichTextBoxAdv w;⎕IO;⎕ML;xaml;⎕USING
⍝ Simple CheckListBox example
 ⎕IO ⎕ML←0 3
 xaml←RichTextBoxAdvXAML
 window←#.UTIL.WPF.LoadXaml xaml(⊂'SyncTools')
 window_richtext←window.FindName⊂'richtext'
 window_richtext.HTMLText←w
 {}window.ShowDialog



The 'SyncTools' argument to #.UTIL.LoadXAML has the effect of adding

'Syncfusion.RichTextBoxAdv.Wpf,Syncfusion/4.5/Syncfusion.RichTextBoxAdv.WPF.dll'

 to the ⎕USING list of LoadXAML.

Note the explicit setting of Height and Width (if this isn't done then sizing has a will of its own).

Operation


      #.RichTextBoxAdv.RichTextBoxAdv 'Mary <em>ate</em><b> a little lamp</b>'              

Unresolved Issues