Click here to Skip to main content

Silverlight / WPF

 
GeneralRe: ItemsControl with Horizontal orientation PinmemberKenneth Haugland17-Sep-12 21:24 
AnswerRe: ItemsControl with Horizontal orientation PinmemberKenneth Haugland17-Sep-12 10:35 
QuestionWPF Editable ComboxBox Question PinmemberKevin Marois14-Sep-12 11:46 
AnswerRe: WPF Editable ComboxBox Question PinmemberSledgeHammer0114-Sep-12 12:17 
GeneralRe: WPF Editable ComboxBox Question PinmemberKevin Marois15-Sep-12 18:21 
GeneralRe: WPF Editable ComboxBox Question PinmemberSledgeHammer0116-Sep-12 8:18 
GeneralRe: WPF Editable ComboxBox Question PinmemberKevin Marois16-Sep-12 9:55 
GeneralRe: WPF Editable ComboxBox Question PinmemberSledgeHammer0116-Sep-12 10:14 
Ok... I'm confused. There are two ways to do search:
 
1) a real-time live search (i.e. Google, Internet Explorer, etc)
2) only do the search when the user clicks the OK / search button
 
For #1, you would do it on every key stroke.
 
For #2, it depends on how your UI is laid out. Do you have a pop up dialog with an OK button? Or is it something like where you have an edit box in the main window frame?
 
Irregardless of how you are implementing #2 UI wise, I think you are confusing your property setter with your action trigger. Those should be separate. The "public string SearchText" property should not kick off a search. Since all you should be doing in it is updating the property, its fine to update it 50 times. Then your enter key / ok / search button will send a command to the VM to kick off the search.
 
The button sending the command portion I'm assuming you already know how to do, for trapping the enter key, all you need to do is use your EventToCommand mapper to map the KeyDown event of the edit box to an ICommand and forward along the eventArgs. In your command handler function, you would simply check if the key pressed was the enter key. All nice and MVVM'y Smile | :) .
GeneralRe: WPF Editable ComboxBox Question PinmemberKevin Marois16-Sep-12 10:31 
GeneralRe: WPF Editable ComboxBox Question PinmemberSledgeHammer0116-Sep-12 11:15 
GeneralRe: WPF Editable ComboxBox Question PinmemberKevin Marois16-Sep-12 11:25 
QuestionWPF Datagrid linked to URL Pinmemberabollmeyer13-Sep-12 19:14 
AnswerRe: WPF Datagrid linked to URL PinprotectorPete O'Hanlon13-Sep-12 21:52 
GeneralRe: WPF Datagrid linked to URL Pinmemberabollmeyer13-Sep-12 23:50 
GeneralRe: WPF Datagrid linked to URL PinprotectorPete O'Hanlon14-Sep-12 0:23 
GeneralRe: WPF Datagrid linked to URL Pinmemberabollmeyer14-Sep-12 22:42 
QuestionUN Register Scriptable Object PinmemberMarc Vandeputte13-Sep-12 8:07 
AnswerRe: UN Register Scriptable Object PinmemberClifford Nelson13-Sep-12 9:34 
GeneralRe: UN Register Scriptable Object PinmemberMarc Vandeputte13-Sep-12 11:41 
GeneralRe: UN Register Scriptable Object PinmemberClifford Nelson13-Sep-12 12:19 
QuestionWCF error - CommunicationException: Error in deserializing body of reply message for operati Pinmembervanikanc12-Sep-12 16:33 
QuestionWpf Datagrid Pinmembersudeep kushwaha12-Sep-12 3:38 
AnswerRe: Wpf Datagrid PinprotectorPete O'Hanlon12-Sep-12 4:03 
GeneralRe: Wpf Datagrid PinmemberSledgeHammer0112-Sep-12 12:55 
AnswerRe: Wpf Datagrid PinmemberClifford Nelson12-Sep-12 13:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.150302.1 | Last Updated 22 Feb 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid