open the flowchart(.Xaml) without using opendialogbox

Hi

I am using the syncfusion controls of silver lights I have just created simple example which contain following Items:

1. Create the folwchat using Rectangle and Oval in silver lights application.
2. Save that flow chart file (.Xaml) on my (d:\) drive location.
3. Now I want to open that file in my diagram control without using open file dialog box.
4. So on load method I have write the following code:
5. diagramControl.load(“d:\Test.xaml” );
6. But it gives me error of security
7. I search that Silverlight is not support to open the file without using opendialogbox.
8. BUT MY REQUIRMENT IS THAT I WANT TO OPEN THE(.XAML) FILE FROM PERTICULAR LOCATION WHICH IS FIXED ANS USER DOES KNOW THAT LOCATION OF (.XAML) FILE ( WITHOUT USING OPENDIALOGBOX)
9. Please help me how to open the created flowchart without opendialogbox.
10. Thanks in advance.




open flowchart without opendialogbox_12170668.zip

1 Reply

MA Maria Amal Raj T Syncfusion Team April 18, 2011 06:44 AM UTC

Hi,

Direct file access is prohibited in Silverlight, file in the local file system can be accessed through OpenFileDialog and SaveFileDialog.

In a trusted Silverlight application files in MyDocuments, MyMusic, MyPictures, and MyVideos can be accessed without using OpenFileDialog and SaveFileDialog. Also IsolatedStorage can be used to create and maintain a safe client-side virtual file system for partial trust applications. Please refer the sample from the below link.

In this sample, diagram can be saved and loaded without dialog box using ElevatedTrust or using IsolatedStorage.

Regards,
Maria Amal Raj T,
Diagram WPF & Silverlight Team,
[Syncfusion-Chennai].



SaveWithoutDialog_a6b9a439.zip

Loader.
Up arrow icon