RadPanelBar Question

1 posts, 0 answers
  1. Mask
    Mask avatar
    20 posts
    Member since:
    Sep 2009

    Posted 08 Mar 2013 Link to this post

    <Grid>
    <Grid.ColumnDefinitions>
    <ColumnDefinitions Width = "300" />
    <ColumnDefinitions />
    </Grid.ColumnDefinitions>
    <telerik:RadPanelBar Grid.Column = "0" VerticalAlignment = "Stretch" ExpandMode = "Single">
    <telerik:RadPanelBarItem>
    <telerik:RadPanelBarItem.Header> <TextBlock Text = "Panel 1" /> </telerik:RadPanelBarItem.Header> <StackPanel VerticalAlignment = "Top">
    <telerik:RadButton Name="Button1" Content = "Customer" Height = "50" />
    <telerik:RadButton Name="Button2" Content = "Order" Height = "50" />
    </StackPanel>
    </telerik:RadPanelBarItem>
    </telerik:RadPanelBar>

    <ContentControl x:Name = "ContentContainer Margin = "8" Grid.Column = 1" />
    </Grid>

    Well, as you see I have RadPanelBar. When I select RadPanelBarItem I want to load some user control in ContentControl. In this example when I click "Button1" I want to load in ContentControl "Customer" UserControl, which I created, when I click "Button2" I want to load "Order" UserControl.


    Can you help me how to do that??




Back to Top