4,493
edits
No edit summary |
|||
Line 500: | Line 500: | ||
=== Inserting WPF Controls into Traditional Dyalog Windows === | === Inserting WPF Controls into Traditional Dyalog Windows === | ||
You can insert a WPF control into an already existing application developed with <source lang=apl inline>⎕WC</source> by using an | You can insert a WPF control into an already existing application developed with <source lang=apl inline>⎕WC</source> by using an [https://msdn.microsoft.com/en-us/library/system.windows.forms.integration.elementhost(v=vs.110).aspx ElementHost] and a Dyalog's <source lang=apl inline>NetControl</source>. Here is an example of how to insert a WPF Button: | ||
<source lang=apl> | <source lang=apl> | ||
⎕USING∪←⊂'System.Windows.Forms.Integration,WPF/WindowsFormsIntegration.dll' ⍝ Location of 'ElementHost' | ⎕USING∪←⊂'System.Windows.Forms.Integration,WPF/WindowsFormsIntegration.dll' ⍝ Location of 'ElementHost' |