Hi All,
I have a requirement where i want to create usercontrols dynamically. In each of these user controls, I have a radframecontainer which performs transition between 2 other user controls. Below is the structure
MainPage.xaml : RadPage
Dashboard.xaml : RadPage #1
[DChart.xaml : RadPage]
[DGrid.xaml : RadPage]
Dashbord.xaml : RadPage # 2
[DChart.xaml : RadPage]
[DGrid.xaml: RadPage]
The Dashboard.xaml contains a radframecontainer with a radframe in it. All the necessary properties in the App.xaml are set.
The problem:-
On load of the mainpage, i call a method is dashboard.xaml to then load chart.xaml/grid.xaml by specificying radframe.navigate(new DChart()) which does not throw any error but does not navigate to the specified page. Am i doing something wrong here? Do i need to set some target property??
<UserControl x:Class="TestExample.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Grid x:Name="LayoutRoot">
</Grid>
</UserControl>
<UserControl x:Class="TestExample.Dashboard"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls">
<Grid x:Name="LayoutRoot" Background="White" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<StackPanel>
<Button x:Name="btnFlip" Content="Chart"></Button>
<TextBox x:Name="textControl" />
<telerik:RadFrameContainer HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<telerik:RadFrame x:Name="rfcDashboard" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"></telerik:RadFrame>
</telerik:RadFrameContainer>
</StackPanel>
</Grid>
</UserControl>
<UserControl x:Class="TestExample.DChart"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Grid x:Name="LayoutRoot" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Background="Red">
<TextBox x:Name="ChartControl" Text="Chart"></TextBox>
</Grid>
</UserControl>
<UserControl x:Class="TestExample.DGrid"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Grid x:Name="LayoutRoot" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<TextBox x:Name="GridControl" Text="Grid"></TextBox>
</Grid>
</UserControl>