Click here to Skip to main content
12,073,325 members (71,811 online)

Silverlight / WPF

 
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 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    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.160208.1 | Last Updated 9 Feb 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid