DateTimeEdit


Display a date, allowing the user to type a new value or select from a drop-down calendar.



XAML


∇   xaml←DateTimeEditXAML
⍝ XAML for the DateTimeEdit 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:DateTimeEdit Name="dtedit">'
 xaml,←⊂'        </sftools:DateTimeEdit>'
 xaml,←⊂'    </StackPanel>'
 xaml,←⊂'</Window>'


Code


∇  z←DateTimeEdit w;⎕IO;⎕ML;xaml;⎕USING
⍝ Simple DateTimeEdit example
 ⎕IO ⎕ML←0 3
 xaml←DateTimeEditXAML
 #.window←#.UTIL.WPF.LoadXaml xaml(⊂'SyncTools')
 window_dtedit←#.window.FindName⊂'dtedit'
 ⎕USING←,⊂''
 window_dtedit.DateTime←⎕NEW System.DateTime w
 {}#.window.ShowDialog
 z←window_dtedit.DateTime.(Year Month Day)


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


       #.DateTimeEdit.DateTimeEdit 3↑⎕ts
2014 8 13

Unresolved Issues