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.
Unfortunately, activation email could not send to your email. Please try again.

Binding to ItemsSource in XAML

Thread ID:

Created:

Updated:

Platform:

Replies:

116114 Apr 3,2014 03:42 PM Apr 8,2014 06:01 AM WinRT 1
loading
Tags: SfPdfViewer
Derek Fegter
Asked On April 3, 2014 03:42 PM

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
        {
            get
            {
                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.

Thanks,

Derek

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

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.

 

http://www.syncfusion.com/support/directtrac/incidents/123378

 

Please let us know if you need any further assistance.

 

Thanks,

Suresh


CONFIRMATION

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.

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.

;