Click here to Skip to main content
11,479,486 members (56,080 online)

Silverlight / WPF

 
AnswerRe: WPF MVVM application Pin
Abhinav S18-Mar-13 8:09
mvpAbhinav S18-Mar-13 8:09 
AnswerRe: WPF MVVM application Pin
_Maxxx_1-Apr-13 20:52
member_Maxxx_1-Apr-13 20:52 
Questionsilverlight file upload, error not displays on browser Pin
vpraveen12-Mar-13 22:30
membervpraveen12-Mar-13 22:30 
AnswerRe: silverlight file upload, error not displays on browser Pin
Pete O'Hanlon12-Mar-13 22:52
protectorPete O'Hanlon12-Mar-13 22:52 
GeneralRe: silverlight file upload, error not displays on browser Pin
vpraveen13-Mar-13 0:08
membervpraveen13-Mar-13 0:08 
GeneralRe: silverlight file upload, error not displays on browser Pin
Pete O'Hanlon13-Mar-13 0:12
protectorPete O'Hanlon13-Mar-13 0:12 
QuestionWpf form design Pin
vikas5515011-Mar-13 21:39
membervikas5515011-Mar-13 21:39 
AnswerRe: Wpf form design Pin
Abhinav S11-Mar-13 22:29
mvpAbhinav S11-Mar-13 22:29 
Questionerror MC4104? Pin
SledgeHammer0110-Mar-13 16:08
memberSledgeHammer0110-Mar-13 16:08 
QuestionPrism and FluidKit Pin
DXXL10-Mar-13 3:46
memberDXXL10-Mar-13 3:46 
QuestionWhat is best technology choice (WCF/WPF, WebSockets, Rest) to share webcam video amongst up to 8 users? [modified] Pin
Paga Cession9-Mar-13 17:57
memberPaga Cession9-Mar-13 17:57 
QuestionAuto complete text box problem Pin
columbos149277-Mar-13 20:50
membercolumbos149277-Mar-13 20:50 
AnswerRe: Auto complete text box problem Pin
Richard Deeming8-Mar-13 2:25
memberRichard Deeming8-Mar-13 2:25 
QuestionWPF / MVVM - Modular Design Question Pin
Kevin Marois7-Mar-13 8:27
memberKevin Marois7-Mar-13 8:27 
I am working on this[^] application.

The outter set of tabs is on the MainWindowView and the inner tabs are each on their own user control. IN the MainWindowViewMode I have a method called LoadView:

private void loadView(View View, _ArgsBase Args = null)
{
    ViewInfo tabInfo = new ViewInfo { View = View, EntityId = 0};
 
    // If the view is already open, then activate its tab
    if (TabManager.IsTabOpen(tabInfo))
    {
        TabManager.ActivateTab(tabInfo);
    }
    else
    {
        // Create an instance of the view and VM
        _DataEntryViewModelBase vm = null;
        UserControl view = null;
        string headerText = string.Empty;
 
        switch (View)
        {
            case View.Dashboard:
                headerText = "Dashboard";
                vm = new DashboardViewModel();
                view = new DashboardView();
                break;
 
            case View.JobCenter:
                headerText = "Job Center";
                vm = new JobCenterViewModel();
                view = new JobCenterView();
                break;
 
            case View.CompanyCenter:
                headerText = "Company Center";
                vm = new CompanyCenterViewModel();
                view = new CompanyCenterView();
                break;
 
            case View.MaterialsCenter:
                headerText = "Materials Center";
                vm = new MaterialsCenterViewModel();
                view = new MaterialsCenterView();
                break;
        }
 
        if (vm == null)
        {
            return;
        }
 
        // Load the vm's data and assign it to the view
        vm.Load(Args);
        view.DataContext = vm;
 
        // Cretae a tab and assign the view to it
        TabItem tabItem = new TabItem();
 
        tabItem.Header = headerText;
        tabItem.Content = view;
        tabItem.Tag = tabInfo;
 
        // Add the tab and activate it
        TabManager.AddTab(tabItem);
    }
}

The obvious problem here is that the MainWindowViewModel is now coupled to all the child views. What is the right way to do this?
If it's not broken, fix it until it is

AnswerRe: WPF / MVVM - Modular Design Question Pin
SledgeHammer017-Mar-13 10:51
memberSledgeHammer017-Mar-13 10:51 
GeneralRe: WPF / MVVM - Modular Design Question Pin
Kevin Marois7-Mar-13 15:10
memberKevin Marois7-Mar-13 15:10 
GeneralRe: WPF / MVVM - Modular Design Question Pin
SledgeHammer017-Mar-13 16:07
memberSledgeHammer017-Mar-13 16:07 
GeneralRe: WPF / MVVM - Modular Design Question Pin
Kevin Marois8-Mar-13 6:28
memberKevin Marois8-Mar-13 6:28 
AnswerRe: WPF / MVVM - Modular Design Question [modified] Pin
Wayne Gaylard8-Mar-13 7:10
mentorWayne Gaylard8-Mar-13 7:10 
GeneralRe: WPF / MVVM - Modular Design Question Pin
Kevin Marois8-Mar-13 7:14
memberKevin Marois8-Mar-13 7:14 
GeneralRe: WPF / MVVM - Modular Design Question Pin
Wayne Gaylard8-Mar-13 7:35
mentorWayne Gaylard8-Mar-13 7:35 
GeneralRe: WPF / MVVM - Modular Design Question Pin
Kevin Marois11-Mar-13 9:39
memberKevin Marois11-Mar-13 9:39 
GeneralRe: WPF / MVVM - Modular Design Question Pin
SledgeHammer0111-Mar-13 11:20
memberSledgeHammer0111-Mar-13 11:20 
GeneralRe: WPF / MVVM - Modular Design Question Pin
Wayne Gaylard12-Mar-13 2:38
mentorWayne Gaylard12-Mar-13 2:38 
AnswerRe: WPF / MVVM - Modular Design Question Pin
Abhinav S10-Mar-13 6:31
mvpAbhinav S10-Mar-13 6:31 
GeneralRe: WPF / MVVM - Modular Design Question Pin
SledgeHammer0111-Mar-13 15:52
memberSledgeHammer0111-Mar-13 15:52 
AnswerRe: WPF / MVVM - Modular Design Question Pin
Abhinav S11-Mar-13 18:03
mvpAbhinav S11-Mar-13 18:03 
GeneralRe: WPF / MVVM - Modular Design Question Pin
SledgeHammer0111-Mar-13 18:38
memberSledgeHammer0111-Mar-13 18:38 
QuestionHow to expand TreeViewItem programatically? Pin
SledgeHammer013-Mar-13 20:16
memberSledgeHammer013-Mar-13 20:16 
AnswerRe: How to expand TreeViewItem programatically? Pin
Mycroft Holmes4-Mar-13 12:49
memberMycroft Holmes4-Mar-13 12:49 
GeneralRe: How to expand TreeViewItem programatically? Pin
SledgeHammer014-Mar-13 13:09
memberSledgeHammer014-Mar-13 13:09 
GeneralRe: How to expand TreeViewItem programatically? Pin
Mycroft Holmes3-Apr-13 15:06
memberMycroft Holmes3-Apr-13 15:06 
QuestionAuto complite text box Pin
columbos149273-Mar-13 9:51
membercolumbos149273-Mar-13 9:51 
AnswerRe: Auto complite text box Pin
Wayne Gaylard4-Mar-13 7:26
mentorWayne Gaylard4-Mar-13 7:26 
QuestionOverride Textbox Pin
Kevin Marois1-Mar-13 9:16
memberKevin Marois1-Mar-13 9:16 
AnswerRe: Override Textbox Pin
Richard MacCutchan2-Mar-13 1:05
mvpRichard MacCutchan2-Mar-13 1:05 
AnswerRe: Override Textbox Pin
Pete O'Hanlon2-Mar-13 2:09
protectorPete O'Hanlon2-Mar-13 2:09 
GeneralRe: Override Textbox Pin
Kevin Marois5-Mar-13 12:01
memberKevin Marois5-Mar-13 12:01 
GeneralRe: Override Textbox Pin
Pete O'Hanlon5-Mar-13 12:18
protectorPete O'Hanlon5-Mar-13 12:18 
QuestionLimit Text Input Length Pin
Kevin Marois1-Mar-13 9:10
memberKevin Marois1-Mar-13 9:10 
AnswerRe: Limit Text Input Length Pin
Mycroft Holmes2-Mar-13 0:41
memberMycroft Holmes2-Mar-13 0:41 
AnswerRe: Limit Text Input Length Pin
Pete O'Hanlon3-Mar-13 10:59
protectorPete O'Hanlon3-Mar-13 10:59 
QuestionPrism Pin
Kevin Marois1-Mar-13 7:33
memberKevin Marois1-Mar-13 7:33 
AnswerRe: Prism Pin
Jason Gleim1-Mar-13 8:43
memberJason Gleim1-Mar-13 8:43 
GeneralRe: Prism Pin
Kevin Marois1-Mar-13 8:47
memberKevin Marois1-Mar-13 8:47 
QuestionC# combobox in datagrid filling Pin
Member 975714928-Feb-13 1:07
memberMember 975714928-Feb-13 1:07 
AnswerRe: C# combobox in datagrid filling Pin
Mycroft Holmes1-Mar-13 13:00
memberMycroft Holmes1-Mar-13 13:00 
QuestionCannot Integrate Silverlight Control with aspx web page Pin
Pilu00727-Feb-13 20:23
memberPilu00727-Feb-13 20:23 
AnswerRe: Cannot Integrate Silverlight Control with aspx web page Pin
Jason Gleim1-Mar-13 8:50
memberJason Gleim1-Mar-13 8:50 
GeneralRe: Cannot Integrate Silverlight Control with aspx web page Pin
Pilu0071-Mar-13 21:42
memberPilu0071-Mar-13 21:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.150520.1 | Last Updated 22 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid