We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to you load an xml file into Gannt on startup

Thread ID:





115895 Feb 20,2014 05:30 PM UTC Feb 21,2014 08:32 AM UTC WPF 1
Tags: GanttControl
Scott Greacen
Asked On February 20, 2014 05:30 PM UTC

Your examples show picking a file and loading it but I want to load the same file every time my app starts. I am sure this is simple but I cannot figure out how

Pradeepa R V [Syncfusion]
Replied On February 21, 2014 08:32 AM UTC

Hi Scott 

Thanks for contacting Syncfusion Support.

We can load the xml files into the Gantt by using ImportFromXml(String FilePath) method.

Incase if you need to  load the same file everytime once your app starts you can use the  same method as  Gantt.ImportFromXML(String FilePath) in MainWindow.Loaded event.

Below is the CodeSnippet for your reference,

 public MainWindow()



    this.Loaded += MainWindow_Loaded;


void MainWindow_Loaded(object sender, RoutedEventArgs e)




Please let us know if you need any other assistance.





This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon