RadialSlider


Display a Window containing a RadialSlider, allow the user to move the pointer and return the selected value when the window is closed



XAML


∇  xaml←RadialSliderXAML
⍝ XAML for the RadialSlider 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.Controls.Navigation;assembly=SyncFusion.SfRadialMenu.Wpf"'
 xaml,←⊂'    SizeToContent="Height" Width="400">'
 xaml,←⊂'    <StackPanel>'
 xaml,←⊂'        <sftools:SfRadialSlider Name="radialslider">'
 xaml,←⊂'        </sftools:SfRadialSlider>'
 xaml,←⊂'    </StackPanel>'
 xaml,←⊂'</Window>'


Code


∇ z←RadialSlider(min max value);⎕IO;⎕ML;xaml
⍝ Simple RadialSlider example
 ⎕IO ⎕ML←0 3
 xaml←RadialSliderXAML
 #.window←#.UTIL.WPF.LoadXaml xaml(⊂'SyncTools')
 window_radialslider←#.window.FindName⊂'radialslider'
 window_radialslider.(Minimum Maximum Value)←min max value
 {}#.window.ShowDialog
 z←window_radialslider.Value


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

'Syncfusion.SfRadialMenu.WPF,Syncfusion/4.5/Syncfusion.SfRadialMenu.WPF.dll'

 to the ⎕USING list of
LoadXAML

Operation


      #.RadialSlider.RadialSlider 0 100 50  
64.2

Unresolved Issues


Are there other properties which might be useful?