select inserted data instead suggested
Hi, it is possible to use input data instead suggested ? Example : i fill the searchbox container with animal objects ( complex objects ) , but i can search an animal not inserted in the collection and i would like to use it instead one in list ( pressing enter i want that my input is used like other animal objects , a fake object because i insert only the name and not other info ) can you suggest a correct implementation ? ( i don't need to save the new animal in the list for future use , i need only to read these until i close the page ( xaml )
thank you
Hi!
I believe you can bind the Text property to a ViewModel property and check is this exists in the bound collection. So you handle what to do with it.
Regards,
On Tue, May 28, 2019, 10:55 juzamdjinn [email protected] wrote:
Hi, it is possible to use input data instead suggested ? Example : i fill the searchbox container with animal objects ( complex objects ) , but i can search an animal not inserted in the collection and i would like to use it instead one in list ( pressing enter i want that my input is used like other animal objects , a fake object because i insert only the name and not other info ) can you suggest a correct implementation ? ( i don't need to save the new animal in the list for future use , i need only to read these until i close the page ( xaml )
thank you
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/quicoli/WPF-AutoComplete-TextBox/issues/17?email_source=notifications&email_token=AB775DYVJATZQAHNB7XBA33PXT6SDA5CNFSM4HQBWXC2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GWF3XFA, or mute the thread https://github.com/notifications/unsubscribe-auth/AB775DY4PA34HGVCY5ZUR23PXT6SDANCNFSM4HQBWXCQ .
See the new Wiki. It shows how to add a new item to the list...