WPF XAML demo: Difference between revisions

Jump to navigation Jump to search
89 bytes removed ,  12:21, 7 May 2020
m
Line 269: Line 269:
       Height="24"/>
       Height="24"/>
</source>
</source>
When you want to keep the Image definition in the APL workspace (because it is easier that way to distribute the workspace or the namespace) one way of doing it is by keeping a '''Base64''' definition of the Image. '''Base64''' encoding is using a set of 64 visible characters to encode binary data.
When you want to keep the Image definition in the APL workspace (because it is easier that way to distribute the workspace or the namespace) one way of doing it is by keeping a [[wikipedia:Base64]] definition of the Image. Base64 encoding is using a set of 64 visible characters to encode binary data.


It is widely used on the internet, for example in emails for images and binary attachments definition of Base64 on <ref>[http://en.wikipedia.org/wiki/Base64 Wikipedia: Base64]</ref>).
It is widely used on the internet, for example in emails for images and binary attachments.


Here are the steps to use this technique with APL:
Here are the steps to use this technique with APL:
Line 315: Line 315:
     win.Cursor ← CursorFromBase64String HandCursor_b64
     win.Cursor ← CursorFromBase64String HandCursor_b64
</source>
</source>
=== Routed Events ===
=== Routed Events ===
In WPF it is possible to set a single function that will receive all the Click events on the window (in this example it is <source lang=apl inline>__EventHandler</source>) by doing:
In WPF it is possible to set a single function that will receive all the Click events on the window (in this example it is <source lang=apl inline>__EventHandler</source>) by doing:

Navigation menu