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

WPF

 
AnswerRe: WPF Views & ViewModels Question Pin
SledgeHammer0114-Oct-13 18:03
SledgeHammer0114-Oct-13 18:03 
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 
<blockquote class="FQ"><div class="FQA">Kevin Marois wrote:</div>Let me ask the question this way, so I'm clear...<BR>&nbsp;<BR>In the PC
version, when the New button is clicked in the JobCenter, I need to add a tab
and put a JobView control on a it. I have been doing all of this in the VM, but
it's wrong. What is the right way to do this? An example would be great, if you
know of one.<BR></blockquote>

I forgot to address this part in my original response.

Basically, your New button would send a command to the VM and the VM would add an object to its "TabItemCollection" that the tab control is bound to. Stylized with the DataTemplate of course to bind the properties correctly.

So you might have something like:

class ViewInfo
{
string Title;
UserControl UserControl;
}

ObservableCollection<ViewInfo> Tabs;

the tab title would be bound to the ViewInfo.Title property. and the Tab content would be bound to the ViewInfo.UserControl property.
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 
GeneralRe: Binding converter in code behind Pin
Richard Deeming4-Oct-13 3:34
mveRichard Deeming4-Oct-13 3:34 
AnswerRe: Binding converter in code behind Pin
mohitsaxena110-Oct-13 8:04
professionalmohitsaxena110-Oct-13 8:04 
Questionvalidation for 2 DateTimePicker (start date and end date) in WPF Pin
Yogi_vns0073-Oct-13 2:04
Yogi_vns0073-Oct-13 2:04 
AnswerRe: validation for 2 DateTimePicker (start date and end date) in WPF Pin
mohitsaxena110-Oct-13 8:09
professionalmohitsaxena110-Oct-13 8:09 
Questionget two columns Pin
picasso21-Oct-13 17:52
picasso21-Oct-13 17:52 
QuestionWPF Text box style Pin
Yogi_vns00726-Sep-13 4:16
Yogi_vns00726-Sep-13 4:16 
AnswerRe: WPF Text box style Pin
Kenneth Haugland26-Sep-13 4:29
mvaKenneth Haugland26-Sep-13 4:29 

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.