Click here to Skip to main content
15,902,189 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Assign names to ModelVisual3D's in code-behind Pin
Ray Cassick18-Jun-09 12:43
Ray Cassick18-Jun-09 12:43 
GeneralRe: Assign names to ModelVisual3D's in code-behind Pin
Pete O'Hanlon19-Jun-09 1:00
mvePete O'Hanlon19-Jun-09 1:00 
GeneralRe: Assign names to ModelVisual3D's in code-behind Pin
Etienne_12319-Jun-09 1:32
Etienne_12319-Jun-09 1:32 
GeneralRe: Assign names to ModelVisual3D's in code-behind Pin
Etienne_12321-Jun-09 10:45
Etienne_12321-Jun-09 10:45 
GeneralRe: Assign names to ModelVisual3D's in code-behind Pin
limbique10-Jun-10 8:50
limbique10-Jun-10 8:50 
GeneralRe: Assign names to ModelVisual3D's in code-behind Pin
Etienne_12310-Jun-10 9:46
Etienne_12310-Jun-10 9:46 
AnswerRe: Assign names to ModelVisual3D's in code-behind Pin
Insincere Dave18-Jun-09 16:16
Insincere Dave18-Jun-09 16:16 
QuestionCommands on a button inside a datatemplate in MVVM? PinPopular
Foxandxss17-Jun-09 12:20
Foxandxss17-Jun-09 12:20 
Hello!

Imagine you have a view with his ViewModel. You have your commands created on that ViewModel and you can use it in the view using something like "{Binding MyCommand}". That is because the View's DataContext is the ViewModel.

But... Imagine now that you have a ItemsControl with a ObservableCollection of some class (like dog). You defined an ItemTemplate and inside, a DataTemplate. Well, every row is a dog item of that list. Now, you want a button in every row that delete that row. You have a command in the ViewModel that delete that dog but... How can you link the button with the command? The button datacontext is the Dog itself and not the ViewModel. You can't link to the command... Then, what is the correct solution to this kind of problem?


Thank you.
AnswerRe: Commands on a button inside a datatemplate in MVVM? Pin
User 27100918-Jun-09 18:47
User 27100918-Jun-09 18:47 
QuestionMediaElement not playing video on XP 64-bit. Pin
pioner17-Jun-09 9:07
pioner17-Jun-09 9:07 
AnswerRe: MediaElement not playing video on XP 64-bit. Pin
Christian Graus17-Jun-09 11:11
protectorChristian Graus17-Jun-09 11:11 
GeneralRe: MediaElement not playing video on ... Pin
neglewis20-Aug-09 4:32
neglewis20-Aug-09 4:32 
QuestionVb.net 2008 ( visual studio 2008) Pin
Rits11038917-Jun-09 1:04
Rits11038917-Jun-09 1:04 
AnswerRe: Vb.net 2008 ( visual studio 2008) Pin
Christian Graus17-Jun-09 11:06
protectorChristian Graus17-Jun-09 11:06 
QuestionRe: Vb.net 2008 ( visual studio 2008) Pin
Rits11038918-Jun-09 21:45
Rits11038918-Jun-09 21:45 
AnswerRe: Vb.net 2008 ( visual studio 2008) Pin
Christian Graus18-Jun-09 23:55
protectorChristian Graus18-Jun-09 23:55 
AnswerRe: Vb.net 2008 ( visual studio 2008) Pin
Mark Salsbery19-Jun-09 7:28
Mark Salsbery19-Jun-09 7:28 
GeneralRe: Vb.net 2008 ( visual studio 2008) Pin
Rits11038919-Jun-09 18:30
Rits11038919-Jun-09 18:30 
QuestionHow to copy a UI element into another UI Element Pin
Nekkantidivya16-Jun-09 23:35
Nekkantidivya16-Jun-09 23:35 
AnswerRe: How to copy a UI element into another UI Element Pin
ABitSmart17-Jun-09 2:54
ABitSmart17-Jun-09 2:54 
AnswerRe: How to copy a UI element into another UI Element Pin
#realJSOP17-Jun-09 8:09
professional#realJSOP17-Jun-09 8:09 
QuestionWPF TabContol problem Pin
Jacobus0116-Jun-09 22:36
Jacobus0116-Jun-09 22:36 
AnswerRe: WPF TabContol problem Pin
ABitSmart17-Jun-09 2:57
ABitSmart17-Jun-09 2:57 
AnswerRe: WPF TabContol problem Pin
#realJSOP17-Jun-09 5:37
professional#realJSOP17-Jun-09 5:37 
GeneralRe: WPF TabContol problem Pin
Jacobus0117-Jun-09 20:38
Jacobus0117-Jun-09 20:38 

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.