Click here to Skip to main content
15,891,951 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: 2 MainWindows appearing Pin
Cha0sEngine11-May-10 2:15
Cha0sEngine11-May-10 2:15 
AnswerRe: 2 MainWindows appearing Pin
Pete O'Hanlon11-May-10 2:28
mvePete O'Hanlon11-May-10 2:28 
GeneralRe: 2 MainWindows appearing Pin
Cha0sEngine11-May-10 3:01
Cha0sEngine11-May-10 3:01 
GeneralRe: 2 MainWindows appearing Pin
Pete O'Hanlon11-May-10 3:40
mvePete O'Hanlon11-May-10 3:40 
QuestionProblem in loading a project Pin
bedathur_ganesh10-May-10 22:13
bedathur_ganesh10-May-10 22:13 
AnswerRe: Problem in loading a project Pin
Abhinav S10-May-10 22:24
Abhinav S10-May-10 22:24 
GeneralRe: Problem in loading a project Pin
bedathur_ganesh11-May-10 0:45
bedathur_ganesh11-May-10 0:45 
QuestionWPF: Add Controls To Grid At Runtime Pin
Kevin Marois10-May-10 13:32
professionalKevin Marois10-May-10 13:32 
I'm in a WPF app, and I want to add controls to a grid at runtime. I have:

private void LoadView(ViewModelBase View)
{
    Type ViewType = View.GetType();

    switch (ViewType.Name.ToLower())
    {
        case "groupviewmodel":
            CurrentView = new GroupViewModel();
            CurrentControl = new crlGroupView();
            break;

        case "ruleviewmodel":
            CurrentView = new RuleViewModel();
            CurrentControl = new crlRuleTree();
            break;
    }

    CurrentControl.DataContext = CurrentView;

    grdMain.Children.Add(CurrentControl);
    Grid.SetRow(CurrentControl, 1);
    Grid.SetColumn(CurrentControl, 0);
    grdMain.Children.Add(CurrentControl);
}

The control does not appear. Anyone know what's wrong?
Everything makes sense in someone's mind

RantRe: WPF: Add Controls To Grid At Runtime Pin
Jürgen Röhr23-May-10 8:15
professionalJürgen Röhr23-May-10 8:15 
RantMVVM makes no sense for Silverlight Pin
User 467791610-May-10 9:29
User 467791610-May-10 9:29 
GeneralRe: MVVM makes no sense for Silverlight Pin
Abhinav S10-May-10 10:03
Abhinav S10-May-10 10:03 
QuestionQuestion and thoughts about dragging objects Pin
_Zorro_10-May-10 0:20
professional_Zorro_10-May-10 0:20 
AnswerRe: Question and thoughts about dragging objects Pin
Pete O'Hanlon10-May-10 0:38
mvePete O'Hanlon10-May-10 0:38 
GeneralRe: Question and thoughts about dragging objects Pin
_Zorro_10-May-10 2:12
professional_Zorro_10-May-10 2:12 
AnswerRe: Question and thoughts about dragging objects Pin
Abhinav S10-May-10 0:40
Abhinav S10-May-10 0:40 
GeneralRe: Question and thoughts about dragging objects Pin
_Zorro_10-May-10 2:15
professional_Zorro_10-May-10 2:15 
QuestionWPF Styles and Animations Pin
DTh19789-May-10 21:28
DTh19789-May-10 21:28 
QuestionSilverlight Date Validation Question... Pin
datahead9-May-10 10:24
datahead9-May-10 10:24 
AnswerRe: Silverlight Date Validation Question... Pin
Abhinav S9-May-10 19:25
Abhinav S9-May-10 19:25 
QuestionWPF ListView scrollable height Pin
astibich27-May-10 11:28
astibich27-May-10 11:28 
AnswerRe: WPF ListView scrollable height Pin
Leung Yat Chun8-May-10 23:13
Leung Yat Chun8-May-10 23:13 
QuestionExpression Web....Not sure if this is the right place to post. Pin
programmervb.netc++6-May-10 21:24
programmervb.netc++6-May-10 21:24 
AnswerRe: Expression Web....Not sure if this is the right place to post. Pin
#realJSOP9-May-10 1:19
mve#realJSOP9-May-10 1:19 
AnswerRe: Expression Web....Not sure if this is the right place to post. Pin
#realJSOP12-May-10 2:09
mve#realJSOP12-May-10 2:09 
QuestionPass params to web service [SOLVED (but it ain't pretty)] Pin
#realJSOP6-May-10 9:16
mve#realJSOP6-May-10 9:16 

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.