Click here to Skip to main content
15,915,093 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: MVVM Master-Details project Pin
Geysser12-Mar-12 2:43
Geysser12-Mar-12 2:43 
GeneralRe: MVVM Master-Details project Pin
Pete O'Hanlon12-Mar-12 1:23
mvePete O'Hanlon12-Mar-12 1:23 
Questionmerge different pieces of a wmv files Pin
bruno.picardi10-Mar-12 9:00
bruno.picardi10-Mar-12 9:00 
QuestionUserControl Template Pin
michaelgr110-Mar-12 0:52
michaelgr110-Mar-12 0:52 
AnswerRe: UserControl Template Pin
Abhinav S10-Mar-12 19:18
Abhinav S10-Mar-12 19:18 
QuestionNext MVVM Discussion Pin
Kevin Marois9-Mar-12 6:39
professionalKevin Marois9-Mar-12 6:39 
AnswerRe: Next MVVM Discussion Pin
Mycroft Holmes9-Mar-12 12:37
professionalMycroft Holmes9-Mar-12 12:37 
GeneralRe: Next MVVM Discussion Pin
Abhinav S10-Mar-12 19:16
Abhinav S10-Mar-12 19:16 
GeneralRe: Next MVVM Discussion Pin
Mycroft Holmes10-Mar-12 21:36
professionalMycroft Holmes10-Mar-12 21:36 
GeneralRe: Next MVVM Discussion Pin
Kevin Marois11-Mar-12 13:54
professionalKevin Marois11-Mar-12 13:54 
GeneralRe: Next MVVM Discussion Pin
Mycroft Holmes11-Mar-12 14:20
professionalMycroft Holmes11-Mar-12 14:20 
AnswerRe: Next MVVM Discussion Pin
Abhinav S10-Mar-12 19:12
Abhinav S10-Mar-12 19:12 
QuestionHistory of MVVM Pin
Kevin Marois8-Mar-12 10:19
professionalKevin Marois8-Mar-12 10:19 
AnswerRe: History of MVVM Pin
Pete O'Hanlon8-Mar-12 11:17
mvePete O'Hanlon8-Mar-12 11:17 
GeneralRe: History of MVVM Pin
Colin Eberhardt8-Mar-12 23:04
Colin Eberhardt8-Mar-12 23:04 
GeneralRe: History of MVVM Pin
Pete O'Hanlon8-Mar-12 23:30
mvePete O'Hanlon8-Mar-12 23:30 
GeneralRe: History of MVVM Pin
Colin Eberhardt8-Mar-12 23:38
Colin Eberhardt8-Mar-12 23:38 
GeneralRe: History of MVVM Pin
Pete O'Hanlon8-Mar-12 23:44
mvePete O'Hanlon8-Mar-12 23:44 
GeneralRe: History of MVVM Pin
Colin Eberhardt8-Mar-12 23:50
Colin Eberhardt8-Mar-12 23:50 
GeneralRe: History of MVVM Pin
Pete O'Hanlon9-Mar-12 0:04
mvePete O'Hanlon9-Mar-12 0:04 
GeneralRe: History of MVVM Pin
SledgeHammer019-Mar-12 4:40
SledgeHammer019-Mar-12 4:40 
GeneralRe: History of MVVM Pin
Pete O'Hanlon9-Mar-12 9:23
mvePete O'Hanlon9-Mar-12 9:23 
AnswerRe: History of MVVM Pin
Abhinav S8-Mar-12 19:52
Abhinav S8-Mar-12 19:52 
QuestionAny ideas on MVVM'ing this? Pin
SledgeHammer018-Mar-12 7:25
SledgeHammer018-Mar-12 7:25 
A few years ago, I wrote a native WPF task dialog. It has served me wonderfully for years. It looks exactly like the standard Windows task dialog, but allows me to re-template certain areas. I've never actually had to use the custom re-templating until now, so I never really thought about this issue...

Cliffs:

* the task dialog is essentially a UserControl
* it's written all "WPF-y"... to re-template the content section, I would do:

C#
td.ContentTemplate = (DataTemplate)Application.Current.FindResource("InputPromptTemplate");


for example.

That part all works fine. The custom template works as intended. The question is, I never really thought of a way to allow data binding in that template. The data context is going to be set to the task dialog's data context obviously, not my VM. So If I was to do something like:

C#
<CheckBox IsChecked="{Binding MyCustomCheckBox}" />


It would obviously expect MyCustomCheckBox to be a part of the TaskDialog class and it isn't. The TaskDialog is a pop up dialog, so I can't chase up the VisualTree from XAML either.

Any ideas how to set this up? It isn't really MVVM actually, just using the TaskDialog straight up in this manner would have the same issue.
Questioncreating a popup DataGrid inside the ComboBox Pin
Giorgi Nistor6-Mar-12 22:04
Giorgi Nistor6-Mar-12 22:04 

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.