How to Inspect a Binding made with 2015⌶ ?
Posted: Sun Aug 31, 2014 1:54 pm
If I do the following:
I have now a collection with the property 'Names' bound to the DataContext of a Window. The question is: How to inspect that collection in APL and particularly how to read back the 'Names' from that collection using the variable 'dc' that is a Dyalog.Data.DataBoundCollectionHandler ?
Thanks in advance,
Code: Select all
names←'Paul' 'Pierre' 'John' 'Alain' 'Michel'
⎕EX'ns'
ns←⎕NS¨(⍴names)⍴⊂''
ns.Names←names
⎕USING←'System.Windows,WPF/PresentationFramework.dll'
win←⎕NEW Window
win.DataContext←2015⌶'ns'
dc←win.DataContext
I have now a collection with the property 'Names' bound to the DataContext of a Window. The question is: How to inspect that collection in APL and particularly how to read back the 'Names' from that collection using the variable 'dc' that is a Dyalog.Data.DataBoundCollectionHandler ?
Thanks in advance,