This is a migrated thread and some comments may be shown as answers.

How to reference a XAML file not in the XAP

1 Answer 55 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Terry
Top achievements
Rank 1
Terry asked on 18 Oct 2009, 07:34 PM
Hi:

I'm using your menu control to display XAML files in a frame in the center of a page.  The menu structure is stored in a database and is dynamically generated.  The user will have the capability of adding new XAML pages.  They will upload these XAML files to the web site and will then define the new menu item in the database (via your upload control and a utility that I will provide.)  The problem is, the XAML won't be in the XAP.  They just create the XAMLs from Expression Blend and upload them.  How can I reference the new XAML file?  Setting the frame's  Source="/ContentPage1.xaml" does not work.  I thought I could put the XAML in ClientBin alongside the XAP file and have this work.

Thanks,

Terry

1 Answer, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 22 Oct 2009, 07:29 AM
Hi Terry,

I am not sure if this is possible with the standard Silverlight Navigation as it allows you to navigate only to a page which is referenced by your page. Also, you can use a webclient class to download from the web server. As a possible solution you can put your page in some auto generated xap file and download it using this pattern.

All the best,
Kaloyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Terry
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Share this question
or