Click here to Skip to main content
15,886,830 members
Home / Discussions / WPF
   

WPF

 
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 
AnswerRe: creating a History listbox control Pin
Abhinav S6-Mar-12 23:01
Abhinav S6-Mar-12 23:01 
GeneralRe: creating a History listbox control Pin
Giorgi Nistor6-Mar-12 23:27
Giorgi Nistor6-Mar-12 23:27 
AnswerRe: creating a History listbox control Pin
Abhinav S6-Mar-12 23:31
Abhinav S6-Mar-12 23:31 
AnswerRe: creating a History listbox control Pin
SledgeHammer017-Mar-12 6:39
SledgeHammer017-Mar-12 6:39 
GeneralRe: creating a History listbox control Pin
Giorgi Nistor8-Mar-12 3:43
Giorgi Nistor8-Mar-12 3:43 
GeneralRe: creating a History listbox control Pin
Giorgi Nistor12-Mar-12 5:08
Giorgi Nistor12-Mar-12 5:08 
QuestionCommunication Exception while calling a Windows Workflow service from Silverlight Pin
cydd6-Mar-12 21:43
cydd6-Mar-12 21:43 
QuestionAllow user customizing styles of WPF controls and retaining them Pin
Mahesha9996-Mar-12 1:28
Mahesha9996-Mar-12 1:28 
AnswerRe: Allow user customizing styles of WPF controls and retaining them Pin
Abhinav S6-Mar-12 2:18
Abhinav S6-Mar-12 2:18 
AnswerRe: Allow user customizing styles of WPF controls and retaining them Pin
Mycroft Holmes6-Mar-12 11:57
professionalMycroft Holmes6-Mar-12 11:57 
AnswerRe: Allow user customizing styles of WPF controls and retaining them Pin
Pete O'Hanlon6-Mar-12 12:05
mvePete O'Hanlon6-Mar-12 12:05 
GeneralRe: Allow user customizing styles of WPF controls and retaining them Pin
Mahesha9997-Mar-12 4:22
Mahesha9997-Mar-12 4:22 
GeneralRe: Allow user customizing styles of WPF controls and retaining them Pin
Pete O'Hanlon7-Mar-12 4:38
mvePete O'Hanlon7-Mar-12 4:38 
GeneralRe: Allow user customizing styles of WPF controls and retaining them Pin
Mahesha9997-Mar-12 8:19
Mahesha9997-Mar-12 8:19 
GeneralRe: Allow user customizing styles of WPF controls and retaining them Pin
Pete O'Hanlon7-Mar-12 8:42
mvePete O'Hanlon7-Mar-12 8:42 
GeneralRe: Allow user customizing styles of WPF controls and retaining them Pin
Mahesha99911-Mar-12 5:06
Mahesha99911-Mar-12 5:06 

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.