Display a Window containing a ToolBarAdv and respond to the user clicking either of the two buttons it contains


∇  xaml←ToolBarAdvXAML
⍝ XAML for the ToolBarAdv example
 xaml,←⊂'    xmlns=""'
 xaml,←⊂'    xmlns:x=""'
 xaml,←⊂'    xmlns:sftools="clr-namespace:Syncfusion.Windows.Tools.Controls;assembly=SyncFusion.Shared.WPF"'
 xaml,←⊂'    SizeToContent="WidthandHeight" >'
 xaml,←⊂'    <StackPanel>'
 xaml,←⊂'        <sftools:ToolBarAdv >'
 xaml,←⊂'          <Button Content="BtnA" Name="btnA"/>'
 xaml,←⊂'          <Button Content="BtnB" Name="btnB"/>'
 xaml,←⊂'        </sftools:ToolBarAdv>'
 xaml,←⊂'    </StackPanel>'


∇  ToolBarAdv;⎕IO;⎕ML;xaml
⍝ Simple ToolBarAdv example
 ⎕IO ⎕ML←0 3
 window←#.UTIL.WPF.LoadXaml xaml(⊂'SyncTools')
 window_btnA window_btnB←{window.FindName⊂⍵}¨'btnA' 'btnB'
 (window_btnA window_btnB).onClick←⊂'#.ToolBarAdv.Howdy'

∇  Howdy w;⎕IO;⎕ML
⍝ Callback for button presses
 ⎕IO ⎕ML←0 3
 ⎕←'You pressed ',(↑w).Name

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


 to the ⎕USING list of

At this level it's not clear what advantages this might have over the Microsoft .NET ToolBar control (the obvious downside is that it embeds dependency on Syncfusion ever deeper into application code).


You pressed btnA
You pressed btnA
You pressed btnB

Unresolved Issues

Explore more properties