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

Binding to ItemsSource in XAML

Thread ID:





116114 Apr 3,2014 07:42 PM UTC Apr 8,2014 10:01 AM UTC WinRT 1
Tags: SfPdfViewer
Derek Fegter
Asked On April 3, 2014 07:42 PM UTC

Binding to this property is causing the entire application to hang.  No error generated, the app just... stops.

I'm fairly new to development for Windows 8 Store Apps, so it very well could be something I'm doing, however, the property I'm binding against gets the StorageFile in a reasonable time (and the file I'm attempting this with is not very large), however, after I return the StorageFile, everything hangs.

The control does reside in a LayoutAwarePage, and it's XAML looks as follows:
<sync:SfPdfViewerControl ItemsSource="{Binding Document}" Name="myPdf" Height="800"  Width="560" Margin="0,20,0,10"></sync:SfPdfViewerControl>

And here is the relevant code that populates the Document property of the model:

        private StorageFile _doc = null;
        public StorageFile Document
                if (this._doc == null)
                    this._doc = GetDoc().Result;
                return this._doc;

        private async Task<StorageFile> GetDoc()
            StorageFolder installFolder = Windows.ApplicationModel.Package.Current.InstalledLocation;
            var file = await installFolder.GetFileAsync(@"Assets\Pdfs\Truck.pdf");
            return file;

Any suggestions/ideas?

I go to navigate to the page, and my details page doesn't even display.  It just sits there, doing, well, nothing.  Cannot interact with the app at all.



Suresh M [Syncfusion]
Replied On April 8, 2014 10:01 AM UTC

Hi Derek ,


Thank you for your interest in Syncfusion products.


At present we do not support setting ItemSource property in XAML, however we are investigating the implementation to support ItemSupport in XAML. Please follow up the Direct trac incident 123378, for further details.




Please let us know if you need any further 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