How to pass data between controls and persist the values in WPF
Posted
by randyc
on Stack Overflow
See other posts from Stack Overflow
or by randyc
Published on 2010-05-27T22:34:11Z
Indexed on
2010/05/27
23:31 UTC
Read the original article
Hit count: 171
I am stuck on how to pass data from one control to another. If I have a listbox control and the Contol Item contains a datatemplate which renders out 5 fields ( first name, last name, email, phone and DOB) all of which come from an observable collection. How can I allow the user to select a listbox item and have the valuesbe stored within a new listbox control?
Is this done through the creation of a new collection or is there a more simple way to bind these values to a new control?
thank you,
© Stack Overflow or respective owner