I'm just dipping my toes into the wpf water and am trying to get up to speed.
I have a RadDocking control on my main page as shown below.
I want to, in response to a button click or some other event, create a pane in code-behind that loads a page's xaml into the content of the pane.
So, for example, I have a page defined:
<Page x:Class="QI.Pages.Test"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:QI.Pages"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300"
Title="Test">
<Grid>
<TextBlock Text="Hello"></TextBlock>
</Grid>
</Page>
I want to create a pane that contains the page shown above and add it to the rpgRightGroup defined below.
Can someone help me get there from here?
Thanks ... Ed
<telerik:RadDocking x:Name="radDock" HasDocumentHost="True"
HorizontalAlignment="Stretch" Grid.Row="2"
VerticalAlignment="Stretch"
Grid.ColumnSpan="2"
RetainPaneSizeMode="DockingAndFloating" Grid.RowSpan="2"
>
<telerik:RadSplitContainer Name="LeftContainer" >
<telerik:RadPaneGroup x:Name="rpgLeftGroup"
>
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>
<telerik:RadDocking.DocumentHost>
<telerik:RadSplitContainer Name="RightContainer">
<telerik:RadPaneGroup x:Name="rpgRightGroup" >
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>
</telerik:RadDocking.DocumentHost>
</telerik:RadDocking