This question is locked. New answers and comments are not allowed.
Hi,
We're having issues with RadFrames.
Following documantation (http://www.telerik.com/help/silverlight/navigation-radframe.html) and blog entry (http://blogs.telerik.com/boryanamiloshevska/posts/08-10-03/page_navigation_for_silverlight_2_rc0.aspx) it was easy to make a simple navigation by applying this code in App:
private void Application_Startup(object sender, StartupEventArgs e)
{
this.RootVisual = new RadFrameContainer();
NavigationService service = NavigationService.GetNavigationService();
if (!NavigationService.LoadDeepLink())
{
service.Navigate(new Page1());
}
}
However, what it does is it replaces current view with the new page. What we want to make however, is to add a frame inside our project and change its content by loading other pages into it with navigate(), leaving the rest of the page untouched, just changing this one frame. This works perfectly fine with standard silverlight controls (System.Windows.Controls.Frame). However with Telerik RadFrame this isn't so. We've tried couple of aproaches:
Added new "Silverlight Page" named Page1 to project for testing, changed that page into RadPage (since it implements IFrame interface requiered by RadFrame.Navigate()).
Next, in MainPage we added a standard button and the following Rad Controls:
<telerik:RadFrameContainer x:Name="radFrameContainer_Navi" >
<telerik:RadFrame x:Name="radFrame_Navi"></telerik:RadFrame>
</telerik:RadFrameContainer>
Now, for the click event on the main page we've added following code:
private void button1_Click(object sender, RoutedEventArgs e)
{
radFrame_Navi.Navigate(new Page1());
/* NavigationService service = NavigationService.GetNavigationService();
if (!NavigationService.LoadDeepLink())
{
service.Target = radFrameContainer_Navi;
service.Navigate(new Page1());
} */
}
Tried both the commented and uncommented versions, but they behave the same.
After pressing the button, instead of seeing test content of Page1 in our frame on MainPage, we see no change to the view itself. The strange thing is that page's title displayed in the browser's title bar gets changed to the Page1's title.
We've even tried changing mainpage from standard usercontrol to RadFrameContainer and use that framecontainter instead of the one defined in xaml, but to no vain. Its a small application only for testing, so if the above description is not enough, I can post the code.
We're having issues with RadFrames.
Following documantation (http://www.telerik.com/help/silverlight/navigation-radframe.html) and blog entry (http://blogs.telerik.com/boryanamiloshevska/posts/08-10-03/page_navigation_for_silverlight_2_rc0.aspx) it was easy to make a simple navigation by applying this code in App:
private void Application_Startup(object sender, StartupEventArgs e)
{
this.RootVisual = new RadFrameContainer();
NavigationService service = NavigationService.GetNavigationService();
if (!NavigationService.LoadDeepLink())
{
service.Navigate(new Page1());
}
}
However, what it does is it replaces current view with the new page. What we want to make however, is to add a frame inside our project and change its content by loading other pages into it with navigate(), leaving the rest of the page untouched, just changing this one frame. This works perfectly fine with standard silverlight controls (System.Windows.Controls.Frame). However with Telerik RadFrame this isn't so. We've tried couple of aproaches:
Added new "Silverlight Page" named Page1 to project for testing, changed that page into RadPage (since it implements IFrame interface requiered by RadFrame.Navigate()).
Next, in MainPage we added a standard button and the following Rad Controls:
<telerik:RadFrameContainer x:Name="radFrameContainer_Navi" >
<telerik:RadFrame x:Name="radFrame_Navi"></telerik:RadFrame>
</telerik:RadFrameContainer>
Now, for the click event on the main page we've added following code:
private void button1_Click(object sender, RoutedEventArgs e)
{
radFrame_Navi.Navigate(new Page1());
/* NavigationService service = NavigationService.GetNavigationService();
if (!NavigationService.LoadDeepLink())
{
service.Target = radFrameContainer_Navi;
service.Navigate(new Page1());
} */
}
Tried both the commented and uncommented versions, but they behave the same.
After pressing the button, instead of seeing test content of Page1 in our frame on MainPage, we see no change to the view itself. The strange thing is that page's title displayed in the browser's title bar gets changed to the Page1's title.
We've even tried changing mainpage from standard usercontrol to RadFrameContainer and use that framecontainter instead of the one defined in xaml, but to no vain. Its a small application only for testing, so if the above description is not enough, I can post the code.