Click here to Skip to main content
15,891,253 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Silverlight to WPF Porting Pin
Mark Salsbery29-Apr-09 10:39
Mark Salsbery29-Apr-09 10:39 
QuestionAssign a Command to a Template Item Pin
#realJSOP27-Apr-09 9:38
mve#realJSOP27-Apr-09 9:38 
AnswerRe: Assign a Command to a Template Item Pin
Wes Aday27-Apr-09 10:47
professionalWes Aday27-Apr-09 10:47 
AnswerRe: Assign a Command to a Template Item Pin
Mark Salsbery27-Apr-09 11:08
Mark Salsbery27-Apr-09 11:08 
GeneralRe: Assign a Command to a Template Item Pin
#realJSOP29-Apr-09 23:58
mve#realJSOP29-Apr-09 23:58 
GeneralRe: Assign a Command to a Template Item Pin
Mark Salsbery30-Apr-09 7:07
Mark Salsbery30-Apr-09 7:07 
AnswerRe: Assign a Command to a Template Item Pin
Philipp Sumi29-Apr-09 22:20
Philipp Sumi29-Apr-09 22:20 
GeneralRe: Assign a Command to a Template Item Pin
User 2710091-May-09 5:13
User 2710091-May-09 5:13 
You can also simply data bind the Button.Command to an ICommand on located on the DataContext.

This is excactly how MVVM applications work.

You can also assign the delegate for the ClickEvent or the Commmand at run-time. I've see this also.

Another way is to set up an AttachedEvent at a parent object where this button and possibly others grouped. Then just handle the Button.ClickEvent.

All are very acceptable techniques.

Cheers, Karl

» CodeProject 2008 MVP, CodeProject 2009 MVP

My Blog | Mole's Home Page |
XAML Power Toys Home Page

Just a grain of sand on the worlds beaches.



modified 27-Feb-21 21:01pm.

QuestionProblem with Silverlight-Tools installation Pin
Frank Köppel27-Apr-09 6:41
Frank Köppel27-Apr-09 6:41 
QuestionRe: Problem with Silverlight-Tools installation Pin
Mark Salsbery27-Apr-09 6:59
Mark Salsbery27-Apr-09 6:59 
AnswerRe: Problem with Silverlight-Tools installation Pin
Frank Köppel27-Apr-09 22:08
Frank Köppel27-Apr-09 22:08 
GeneralRe: Problem with Silverlight-Tools installation Pin
Mark Salsbery28-Apr-09 5:26
Mark Salsbery28-Apr-09 5:26 
GeneralRe: Problem with Silverlight-Tools installation Pin
Frank Köppel29-Apr-09 0:58
Frank Köppel29-Apr-09 0:58 
GeneralRe: Problem with Silverlight-Tools installation Pin
Abhinav S9-May-09 1:28
Abhinav S9-May-09 1:28 
QuestionChange current Style on runtime Pin
Antonio Cambule27-Apr-09 3:07
Antonio Cambule27-Apr-09 3:07 
AnswerRe: Change current Style on runtime Pin
Jammer27-Apr-09 8:04
Jammer27-Apr-09 8:04 
GeneralRe: Change current Style on runtime: >Still Open< Pin
Antonio Cambule27-Apr-09 23:01
Antonio Cambule27-Apr-09 23:01 
Questionnotifications to user while uploading? Pin
kavetypavankumar27-Apr-09 3:06
kavetypavankumar27-Apr-09 3:06 
QuestionRe: notifications to user while uploading? Pin
Mark Salsbery27-Apr-09 7:18
Mark Salsbery27-Apr-09 7:18 
Question[Message Deleted] Pin
srikanth.penmetsa27-Apr-09 2:18
srikanth.penmetsa27-Apr-09 2:18 
QuestionRe: Doubt in silverlight Pin
Mark Salsbery27-Apr-09 7:10
Mark Salsbery27-Apr-09 7:10 
QuestionNeed help with loading help files Pin
Etienne_12326-Apr-09 2:05
Etienne_12326-Apr-09 2:05 
AnswerRe: Need help with loading help files Pin
Pete O'Hanlon26-Apr-09 22:13
mvePete O'Hanlon26-Apr-09 22:13 
GeneralRe: Need help with loading help files Pin
Etienne_12326-Apr-09 23:50
Etienne_12326-Apr-09 23:50 
GeneralRe: Need help with loading help files Pin
Pete O'Hanlon27-Apr-09 0:13
mvePete O'Hanlon27-Apr-09 0:13 

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.