Click here to Skip to main content
15,899,754 members
Home / Discussions / C#
   

C#

 
AnswerRe: BackgroundWorker Pin
Luc Pattyn12-Feb-10 12:26
sitebuilderLuc Pattyn12-Feb-10 12:26 
GeneralRe: BackgroundWorker Pin
DaveyM6912-Feb-10 12:37
professionalDaveyM6912-Feb-10 12:37 
GeneralRe: BackgroundWorker Pin
Luc Pattyn12-Feb-10 12:47
sitebuilderLuc Pattyn12-Feb-10 12:47 
QuestionDocumentation description about the method and its parameters. Pin
Blubbo12-Feb-10 3:29
Blubbo12-Feb-10 3:29 
AnswerRe: Documentation description about the method and its parameters. Pin
R. Giskard Reventlov12-Feb-10 3:33
R. Giskard Reventlov12-Feb-10 3:33 
AnswerRe: Documentation description about the method and its parameters. Pin
dan!sh 12-Feb-10 3:36
professional dan!sh 12-Feb-10 3:36 
GeneralRe: Documentation description about the method and its parameters. Pin
Blubbo12-Feb-10 3:46
Blubbo12-Feb-10 3:46 
QuestionMultiPage-Application - Navigation Pin
PingOfDeath198312-Feb-10 3:09
PingOfDeath198312-Feb-10 3:09 
Hi,

I cant figure out how to switch my customcontrols when clicking on a menubar-button.
I have a MainWindow containing the following XAML:

<DockPanel x:Name="MainWindow">

        <Menu Name="dropDownMenu"
              DockPanel.Dock="Top">

            <MenuItem Name="dropDownPage1" Header="File">
                <MenuItem Header="Page1" Click="dropDown_Page1"/>
            </MenuItem>

            <MenuItem Name="dropDownPage2" Header="File">
                <MenuItem Header="Page2" Click="dropDown_Page2"/>
            </MenuItem>

        </Menu>
        
        <Grid Name="gridMainContent" DockPanel.Dock="Top">
            <TextBlock>placeholder main content</TextBlock>
        </Grid>
        
        <Grid Name="gridStatusBar" DockPanel.Dock="Bottom">
            <TextBlock>placeholder statusbar</TextBlock>
        </Grid>
    </DockPanel>


The task is when clicking on one menubutton i.e. "dropDown_Page1", changing the content of the grid "gridMainContent".
Is there a way to place customcontrols into a grid without code in any *.cs File ? It would be wonderfull if somebody could help me on this.

Cause I´m new to WPF, I welcome you to show me other ways of doing this!

Thx! PingOfDeath
AnswerRe: MultiPage-Application - Navigation Pin
dan!sh 12-Feb-10 3:11
professional dan!sh 12-Feb-10 3:11 
QuestionAT command problem Pin
saeidfarahi12-Feb-10 2:44
saeidfarahi12-Feb-10 2:44 
AnswerRe: AT command problem Pin
Richard MacCutchan12-Feb-10 3:24
mveRichard MacCutchan12-Feb-10 3:24 
GeneralRe: AT command problem Pin
saeidfarahi12-Feb-10 3:28
saeidfarahi12-Feb-10 3:28 
GeneralRe: AT command problem Pin
Richard MacCutchan12-Feb-10 3:49
mveRichard MacCutchan12-Feb-10 3:49 
QuestionThread sychronization Pin
koleraba12-Feb-10 2:35
koleraba12-Feb-10 2:35 
AnswerRe: Hi Pin
Not Active12-Feb-10 4:07
mentorNot Active12-Feb-10 4:07 
GeneralRe: Hi Pin
koleraba12-Feb-10 5:31
koleraba12-Feb-10 5:31 
QuestionAppDomain Pin
Le centriste12-Feb-10 2:10
Le centriste12-Feb-10 2:10 
AnswerRe: AppDomain Pin
dan!sh 12-Feb-10 3:25
professional dan!sh 12-Feb-10 3:25 
GeneralRe: AppDomain Pin
Le centriste12-Feb-10 3:32
Le centriste12-Feb-10 3:32 
AnswerRe: AppDomain Pin
kevinnicol12-Feb-10 5:26
kevinnicol12-Feb-10 5:26 
QuestionTree view drawing problem Pin
gwithey11-Feb-10 23:32
gwithey11-Feb-10 23:32 
QuestionText Files Pin
muka6611-Feb-10 23:30
muka6611-Feb-10 23:30 
JokeRe: Text Files Pin
Richard MacCutchan11-Feb-10 23:31
mveRichard MacCutchan11-Feb-10 23:31 
GeneralRe: Text Files Pin
muka6611-Feb-10 23:33
muka6611-Feb-10 23:33 
GeneralRe: Text Files Pin
Richard MacCutchan12-Feb-10 0:11
mveRichard MacCutchan12-Feb-10 0:11 

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.