Click here to Skip to main content
15,885,366 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Moving Data from Silverlight to ASp.net via SQl server Pin
Vimalsoft(Pty) Ltd9-Jun-11 19:14
professionalVimalsoft(Pty) Ltd9-Jun-11 19:14 
GeneralRe: Moving Data from Silverlight to ASp.net via SQl server Pin
Mark Salsbery10-Jun-11 6:10
Mark Salsbery10-Jun-11 6:10 
AnswerRe: Moving Data from Silverlight to ASp.net via SQl server Pin
Mycroft Holmes9-Jun-11 14:15
professionalMycroft Holmes9-Jun-11 14:15 
GeneralRe: Moving Data from Silverlight to ASp.net via SQl server Pin
Vimalsoft(Pty) Ltd9-Jun-11 19:11
professionalVimalsoft(Pty) Ltd9-Jun-11 19:11 
QuestionWPF Code Creation of input Binding Pin
Ed Hill _5_9-Jun-11 0:32
Ed Hill _5_9-Jun-11 0:32 
AnswerRe: WPF Code Creation of input Binding Pin
SledgeHammer019-Jun-11 6:49
SledgeHammer019-Jun-11 6:49 
GeneralRe: WPF Code Creation of input Binding Pin
Ed Hill _5_9-Jun-11 22:17
Ed Hill _5_9-Jun-11 22:17 
GeneralRe: WPF Code Creation of input Binding Pin
SledgeHammer0110-Jun-11 5:05
SledgeHammer0110-Jun-11 5:05 
From your original post, it sounded like you wanted to add the same exact functionality to several different controls. If that was/is the case, then think about it: Its easier to write ONE attached behavior vs a bunch of MyComboBox, a MyButton, a MyCheckBox, etc controls and C&P the code.

The behavior you wrote is hard coded to the ComboBox, but it doesn't have to be hard coded to any specific control type, it can be much more generic. Then you can simply attach it to any control you like. Think of something like a tooltip control. By using attached behaviors, you could attach the tooltip to any control you like.

In addition, attached behaviors allow you to modify a controls' behavior without re-templating an entire parent control just to change an embedded control type. I.e. say you had a data grid and wanted to change the behavior on a ComboBox deep down in the visual tree. You'd have to re-template the entire data grid just to change a <ComboBox /> to a <MyComboBox />.

In regards to your last question, there is no need to create a temporary command and use InputBindings. Just subscribe to the KeyDown message and trap the ESC key.
Questiontextbox value Pin
arkiboys8-Jun-11 1:36
arkiboys8-Jun-11 1:36 
AnswerRe: textbox value Pin
Pete O'Hanlon8-Jun-11 1:45
mvePete O'Hanlon8-Jun-11 1:45 
GeneralRe: textbox value Pin
arkiboys8-Jun-11 2:04
arkiboys8-Jun-11 2:04 
GeneralRe: textbox value Pin
Pete O'Hanlon8-Jun-11 2:09
mvePete O'Hanlon8-Jun-11 2:09 
GeneralRe: textbox value Pin
arkiboys8-Jun-11 2:26
arkiboys8-Jun-11 2:26 
GeneralRe: textbox value Pin
Sparkling_ouc8-Jun-11 22:16
Sparkling_ouc8-Jun-11 22:16 
GeneralRe: textbox value Pin
Pete O'Hanlon8-Jun-11 2:25
mvePete O'Hanlon8-Jun-11 2:25 
GeneralRe: textbox value Pin
Ed Hill _5_9-Jun-11 0:44
Ed Hill _5_9-Jun-11 0:44 
GeneralRe: textbox value Pin
Pete O'Hanlon9-Jun-11 0:48
mvePete O'Hanlon9-Jun-11 0:48 
GeneralRe: textbox value Pin
Ed Hill _5_9-Jun-11 0:50
Ed Hill _5_9-Jun-11 0:50 
GeneralRe: textbox value Pin
Pete O'Hanlon9-Jun-11 1:04
mvePete O'Hanlon9-Jun-11 1:04 
GeneralRe: textbox value Pin
Ed Hill _5_9-Jun-11 5:59
Ed Hill _5_9-Jun-11 5:59 
Questionany suggestions on how to deploy this MVVM model in Silverlight 4? Pin
Michael J. Eber6-Jun-11 12:11
Michael J. Eber6-Jun-11 12:11 
AnswerRe: any suggestions on how to deploy this MVVM model in Silverlight 4? Pin
Abhinav S6-Jun-11 22:29
Abhinav S6-Jun-11 22:29 
GeneralRe: any suggestions on how to deploy this MVVM model in Silverlight 4? Pin
Michael J. Eber7-Jun-11 7:47
Michael J. Eber7-Jun-11 7:47 
GeneralRe: any suggestions on how to deploy this MVVM model in Silverlight 4? Pin
Paul Daniel Ruston8-Jun-11 12:25
Paul Daniel Ruston8-Jun-11 12:25 
GeneralRe: any suggestions on how to deploy this MVVM model in Silverlight 4? Pin
Paul Daniel Ruston8-Jun-11 12:29
Paul Daniel Ruston8-Jun-11 12:29 

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.