ChromelessWindow


Display a ChromelessWindow containing a TextBlock



XAML


∇  xaml←ChromelessWindowXAML
⍝ XAML for the ChromelessWindow example
 xaml←⊂'<shared:ChromelessWindow'
 xaml,←⊂'   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"'
 xaml,←⊂'   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"'
 xaml,←⊂'   xmlns:shared="clr-namespace:Syncfusion.Windows.Shared;assembly=Syncfusion.Shared.WPF"'
 xaml,←⊂'   Name="wdwCW" Height="100" Width="300" > '
 xaml,←⊂'   <Grid>'
 xaml,←⊂'       <TextBlock Name="txtHowdy" />'
 xaml,←⊂'   </Grid>'
 xaml,←⊂'</shared:ChromelessWindow>'


Code


∇  z←ChromelessWindow(title text);⎕IO;⎕ML;xaml;⎕USING;item;citem;al
⍝ Simple ChromelessWindow example
 ⎕IO ⎕ML←0 3
 xaml←ChromelessWindowXAML
 #.window←#.UTIL.WPF.LoadXaml xaml(⊂'SyncTools')
 window window_text←{#.window.FindName⊂⍵}¨'wdwCW' 'txtHowdy'
 window.Title←title
 window_text.Text←text
 #.window.Show


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

'Syncfusion.Windows.Shared,Syncfusion/4.5/Syncfusion.Shared.WPF.dll'
'SyncFusion.Windows.Tools.Controls,Syncfusion/4.5/Syncfusion.Tools.WPF.dll

 to the ⎕USING list of
LoadXAML

Operation


      #.ChromelessWindow.ChromelessWindow 'Brung to you by APLDAPLDOO' 'Howdy'

Unresolved Issues


Explore further properties, especially with a view to customising appearance.