Click here to Skip to main content
11,477,007 members (72,960 online)

Silverlight / WPF

 
Questionplay streaming videos from internet in wpf Pin
sudeep kushwaha17-Sep-12 19:31
membersudeep kushwaha17-Sep-12 19:31 
AnswerRe: play streaming videos from internet in wpf Pin
Mycroft Holmes17-Sep-12 21:05
memberMycroft Holmes17-Sep-12 21:05 
QuestionItemsControl with Horizontal orientation [modified] Pin
Kenneth Haugland17-Sep-12 8:25
memberKenneth Haugland17-Sep-12 8:25 
AnswerRe: ItemsControl with Horizontal orientation Pin
Abhinav S17-Sep-12 8:49
mvpAbhinav S17-Sep-12 8:49 
AnswerRe: ItemsControl with Horizontal orientation Pin
Kenneth Haugland17-Sep-12 9:04
memberKenneth Haugland17-Sep-12 9:04 
GeneralRe: ItemsControl with Horizontal orientation Pin
Abhinav S17-Sep-12 18:25
mvpAbhinav S17-Sep-12 18:25 
GeneralRe: ItemsControl with Horizontal orientation Pin
Kenneth Haugland17-Sep-12 21:24
memberKenneth Haugland17-Sep-12 21:24 
AnswerRe: ItemsControl with Horizontal orientation Pin
Kenneth Haugland17-Sep-12 10:35
memberKenneth Haugland17-Sep-12 10:35 
QuestionWPF Editable ComboxBox Question Pin
Kevin Marois14-Sep-12 11:46
memberKevin Marois14-Sep-12 11:46 
AnswerRe: WPF Editable ComboxBox Question Pin
SledgeHammer0114-Sep-12 12:17
memberSledgeHammer0114-Sep-12 12:17 
GeneralRe: WPF Editable ComboxBox Question Pin
Kevin Marois15-Sep-12 18:21
memberKevin Marois15-Sep-12 18:21 
GeneralRe: WPF Editable ComboxBox Question Pin
SledgeHammer0116-Sep-12 8:18
memberSledgeHammer0116-Sep-12 8:18 
GeneralRe: WPF Editable ComboxBox Question Pin
Kevin Marois16-Sep-12 9:55
memberKevin Marois16-Sep-12 9:55 
GeneralRe: WPF Editable ComboxBox Question Pin
SledgeHammer0116-Sep-12 10:14
memberSledgeHammer0116-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 Pin
Kevin Marois16-Sep-12 10:31
memberKevin Marois16-Sep-12 10:31 
GeneralRe: WPF Editable ComboxBox Question Pin
SledgeHammer0116-Sep-12 11:15
memberSledgeHammer0116-Sep-12 11:15 
GeneralRe: WPF Editable ComboxBox Question Pin
Kevin Marois16-Sep-12 11:25
memberKevin Marois16-Sep-12 11:25 
QuestionWPF Datagrid linked to URL Pin
abollmeyer13-Sep-12 19:14
memberabollmeyer13-Sep-12 19:14 
AnswerRe: WPF Datagrid linked to URL Pin
Pete O'Hanlon13-Sep-12 21:52
protectorPete O'Hanlon13-Sep-12 21:52 
GeneralRe: WPF Datagrid linked to URL Pin
abollmeyer13-Sep-12 23:50
memberabollmeyer13-Sep-12 23:50 
GeneralRe: WPF Datagrid linked to URL Pin
Pete O'Hanlon14-Sep-12 0:23
protectorPete O'Hanlon14-Sep-12 0:23 
GeneralRe: WPF Datagrid linked to URL Pin
abollmeyer14-Sep-12 22:42
memberabollmeyer14-Sep-12 22:42 
QuestionUN Register Scriptable Object Pin
Marc Vandeputte13-Sep-12 8:07
memberMarc Vandeputte13-Sep-12 8:07 
AnswerRe: UN Register Scriptable Object Pin
Clifford Nelson13-Sep-12 9:34
memberClifford Nelson13-Sep-12 9:34 
GeneralRe: UN Register Scriptable Object Pin
Marc Vandeputte13-Sep-12 11:41
memberMarc Vandeputte13-Sep-12 11:41 
GeneralRe: UN Register Scriptable Object Pin
Clifford Nelson13-Sep-12 12:19
memberClifford Nelson13-Sep-12 12:19 
QuestionWCF error - CommunicationException: Error in deserializing body of reply message for operati Pin
vanikanc12-Sep-12 16:33
membervanikanc12-Sep-12 16:33 
QuestionWpf Datagrid Pin
sudeep kushwaha12-Sep-12 3:38
membersudeep kushwaha12-Sep-12 3:38 
AnswerRe: Wpf Datagrid Pin
Pete O'Hanlon12-Sep-12 4:03
protectorPete O'Hanlon12-Sep-12 4:03 
GeneralRe: Wpf Datagrid Pin
SledgeHammer0112-Sep-12 12:55
memberSledgeHammer0112-Sep-12 12:55 
AnswerRe: Wpf Datagrid Pin
Clifford Nelson12-Sep-12 13:19
memberClifford Nelson12-Sep-12 13:19 
GeneralRe: Wpf Datagrid Pin
SledgeHammer0112-Sep-12 13:27
memberSledgeHammer0112-Sep-12 13:27 
AnswerRe: Wpf Datagrid Pin
Clifford Nelson12-Sep-12 13:34
memberClifford Nelson12-Sep-12 13:34 
GeneralRe: Wpf Datagrid Pin
SledgeHammer0112-Sep-12 14:29
memberSledgeHammer0112-Sep-12 14:29 
QuestionWPF groupbox visibility by combobox value selected Pin
karthik bandaru11-Sep-12 21:33
memberkarthik bandaru11-Sep-12 21:33 
AnswerRe: WPF groupbox visibility by combobox value selected Pin
Mycroft Holmes11-Sep-12 21:54
memberMycroft Holmes11-Sep-12 21:54 
GeneralRe: WPF groupbox visibility by combobox value selected Pin
karthik bandaru11-Sep-12 22:04
memberkarthik bandaru11-Sep-12 22:04 
GeneralRe: WPF groupbox visibility by combobox value selected Pin
Mycroft Holmes11-Sep-12 22:12
memberMycroft Holmes11-Sep-12 22:12 
QuestionGrid Dynamic Column and Row in run time in WPF MVVM Pin
Member 774302211-Sep-12 16:59
memberMember 774302211-Sep-12 16:59 
AnswerRe: Grid Dynamic Column and Row in run time in WPF MVVM Pin
Clifford Nelson12-Sep-12 14:39
memberClifford Nelson12-Sep-12 14:39 
QuestionPopUp Window Open and close in WPF MVVM pattern Pin
Member 77430228-Sep-12 22:53
memberMember 77430228-Sep-12 22:53 
AnswerRe: PopUp Window Open and close in WPF MVVM pattern Pin
Mycroft Holmes9-Sep-12 15:25
memberMycroft Holmes9-Sep-12 15:25 
AnswerRe: PopUp Window Open and close in WPF MVVM pattern Pin
Pete O'Hanlon10-Sep-12 6:03
protectorPete O'Hanlon10-Sep-12 6:03 
AnswerRe: PopUp Window Open and close in WPF MVVM pattern Pin
Abhinav S10-Sep-12 17:14
mvpAbhinav S10-Sep-12 17:14 
AnswerRe: PopUp Window Open and close in WPF MVVM pattern Pin
_Maxxx_29-Oct-12 18:30
member_Maxxx_29-Oct-12 18:30 
QuestionTuple as a Binding Parameter Pin
Ahrimal6-Sep-12 23:11
memberAhrimal6-Sep-12 23:11 
QuestionBinding to an XML list of attributes [modified] Pin
Jayme656-Sep-12 12:46
memberJayme656-Sep-12 12:46 
AnswerRe: Binding to an XML list of attributes Pin
Pete O'Hanlon6-Sep-12 23:24
protectorPete O'Hanlon6-Sep-12 23:24 
GeneralRe: Binding to an XML list of attributes [modified] Pin
Jayme657-Sep-12 7:11
memberJayme657-Sep-12 7:11 
GeneralRe: Binding to an XML list of attributes Pin
Pete O'Hanlon7-Sep-12 7:52
protectorPete O'Hanlon7-Sep-12 7:52 

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
Web02 | 2.8.150520.1 | Last Updated 21 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid