Clock


Include a clock showing the current time in a Window.



XAML


∇ xaml←ClockXAML
⍝ XAML for the Clock 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.Shared;assembly=SyncFusion.Shared.WPF"'
 xaml,←⊂'    SizeToContent="WidthandHeight" >'
 xaml,←⊂'    <StackPanel>'
 xaml,←⊂'        <sftools:Clock>'
 xaml,←⊂'        </sftools:Clock>'
 xaml,←⊂'    </StackPanel>'
 xaml,←⊂'</Window>'


Code


∇ Clock;⎕IO;⎕ML;xaml
⍝ Simple Clock example
 ⎕IO ⎕ML←0 3
 xaml←ClockXAML
 #.window←#.UTIL.WPF.LoadXaml xaml(⊂'SyncTools')
 #.window.Show


Really nothing very much to see here...

The 'SyncTools' argument to #.UTIL.LoadXAML has the effect of adding 'Syncfusion.Windows.Shared,Syncfusion/4.5/Syncfusion.Shared.WPF.dll' to the ⎕USING list of LoadXAML

Operation


     #.Clock.Clock 

Unresolved Issues