Click here to Skip to main content
15,888,816 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: WPF databinding versus dispatcher Pin
GuyThiebaut16-Oct-13 2:41
professionalGuyThiebaut16-Oct-13 2:41 
GeneralRe: WPF databinding versus dispatcher Pin
Mycroft Holmes16-Oct-13 12:43
professionalMycroft Holmes16-Oct-13 12:43 
AnswerRe: WPF databinding versus dispatcher Pin
Abhinav S15-Oct-13 18:23
Abhinav S15-Oct-13 18:23 
AnswerRe: WPF databinding versus dispatcher Pin
Kenneth Haugland16-Oct-13 2:25
mvaKenneth Haugland16-Oct-13 2:25 
GeneralRe: WPF databinding versus dispatcher Pin
GuyThiebaut16-Oct-13 2:44
professionalGuyThiebaut16-Oct-13 2:44 
GeneralRe: WPF databinding versus dispatcher Pin
Kenneth Haugland16-Oct-13 2:51
mvaKenneth Haugland16-Oct-13 2:51 
QuestionWPF Views & ViewModels Question Pin
Kevin Marois14-Oct-13 7:43
professionalKevin Marois14-Oct-13 7:43 
AnswerRe: WPF Views & ViewModels Question Pin
SledgeHammer0114-Oct-13 18:03
SledgeHammer0114-Oct-13 18:03 
The first question(s) I'd ask you if you were asking me are:

1) what's the difference between the PC version and the tablet version?
2) why are you assigning VMs from code? ViewLocator is your friend.

I'd have to assume that the PC and Tablet version are pretty similiar, but maybe have a different look and feel? If they are completely fundamentally different, I'd have to say one or both are poorly designed. You want people to be able to use both versions without having to learn two completely different UIs (LEARN FROM MICROSOFTS MISTAKE -- PEOPLE HATE WINDOWS 8).

If the main difference is the look and feel, you are kind of missing the whole point of WPF. There is no need to have two separate VMs. You simply apply a different template to the view. If you need a couple of different properties for the tablet or PC version, there is no harm in having it there in both (assuming you are doing it right and all your properties are lazy loaded).

If you have trouble sleeping at night because there are a few unused props in each version, you can ifdef them out depending on the build configuration Smile | :) .

If you really have your heart set on splitting the VMs, again, ViewLocator is your friend. You would load the correct XAML and the XAML would instantiate the proper VM through ViewLocator.
GeneralRe: WPF Views & ViewModels Question Pin
Kevin Marois15-Oct-13 7:19
professionalKevin Marois15-Oct-13 7:19 
GeneralRe: WPF Views & ViewModels Question Pin
SledgeHammer0115-Oct-13 10:48
SledgeHammer0115-Oct-13 10:48 
GeneralRe: WPF Views & ViewModels Question Pin
Kevin Marois16-Oct-13 9:16
professionalKevin Marois16-Oct-13 9:16 
GeneralRe: WPF Views & ViewModels Question Pin
SledgeHammer0116-Oct-13 10:01
SledgeHammer0116-Oct-13 10:01 
GeneralRe: WPF Views & ViewModels Question Pin
Kevin Marois16-Oct-13 11:10
professionalKevin Marois16-Oct-13 11:10 
GeneralRe: WPF Views & ViewModels Question Pin
SledgeHammer0116-Oct-13 17:41
SledgeHammer0116-Oct-13 17:41 
GeneralRe: WPF Views & ViewModels Question Pin
SledgeHammer0116-Oct-13 10:09
SledgeHammer0116-Oct-13 10:09 
Questionaccessing remote system Pin
Arun kumar Gautam9-Oct-13 23:18
Arun kumar Gautam9-Oct-13 23:18 
AnswerRe: accessing remote system Pin
Richard MacCutchan9-Oct-13 23:25
mveRichard MacCutchan9-Oct-13 23:25 
GeneralRe: accessing remote system Pin
Arun kumar Gautam9-Oct-13 23:43
Arun kumar Gautam9-Oct-13 23:43 
GeneralRe: accessing remote system Pin
Richard MacCutchan10-Oct-13 0:07
mveRichard MacCutchan10-Oct-13 0:07 
AnswerRe: accessing remote system Pin
mohitsaxena110-Oct-13 7:50
professionalmohitsaxena110-Oct-13 7:50 
GeneralRe: accessing remote system Pin
Arun kumar Gautam11-Oct-13 7:00
Arun kumar Gautam11-Oct-13 7:00 
GeneralRe: accessing remote system Pin
Richard MacCutchan11-Oct-13 7:46
mveRichard MacCutchan11-Oct-13 7:46 
QuestionBinding converter in code behind Pin
USAFHokie804-Oct-13 2:24
USAFHokie804-Oct-13 2:24 
AnswerRe: Binding converter in code behind Pin
Richard Deeming4-Oct-13 3:02
mveRichard Deeming4-Oct-13 3:02 
AnswerRe: Binding converter in code behind Pin
USAFHokie804-Oct-13 3:24
USAFHokie804-Oct-13 3:24 

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.