WPF-AutoComplete-TextBox icon indicating copy to clipboard operation
WPF-AutoComplete-TextBox copied to clipboard

select inserted data instead suggested

Open juzamdjinn opened this issue 6 years ago • 1 comments

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

juzamdjinn avatar May 28 '19 09:05 juzamdjinn

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 .

quicoli avatar May 28 '19 11:05 quicoli

See the new Wiki. It shows how to add a new item to the list...

quicoli avatar Nov 06 '22 12:11 quicoli