Magnifier


Zoom in on the content of a control as the user moves the mouse over it.



XAML


∇  xaml←MagnifierXAML
⍝ XAML for the Magnifier 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,←⊂'        <TextBox Name="textbox"/>'
 xaml,←⊂'        <sftools:Magnifier Name="magnifier" ZoomFactor="0.5"'
 xaml,←⊂'          FrameHeight="25" FrameWidth="25" FrameType="Circle">'
 xaml,←⊂'        </sftools:Magnifier>'
 xaml,←⊂'    </StackPanel>'
 xaml,←⊂'</Window>'


Code


∇ Magnifier w;⎕IO;⎕ML;xaml;⎕USING;item;citem;al
⍝ Simple Magnifier example
 ⎕IO ⎕ML←0 3
 xaml←MagnifierXAML
 #.window←#.UTIL.WPF.LoadXaml xaml(⊂'SyncTools')
 window_textbox window_magnifier←{#.window.FindName⊂⍵}¨'textbox' 'magnifier'
 window_textbox.Text←w
 window_magnifier.AssociateWith window_textbox 
 {}#.window.ShowDialog


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


       #.Magnifier.Magnifier  2019 ⍴(100⍴'higgly piggly'),⎕ucs 13 

Unresolved Issues