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.
Syncfusion Feedback

how to load local .css file in web view in winrt c#

Thread ID:

Created:

Updated:

Platform:

Replies:

130213 Apr 28,2017 06:01 AM UTC May 2,2017 12:39 PM UTC WinRT 1
loading
Tags: General
manoranjan
Asked On April 28, 2017 06:01 AM UTC

I have one .html file , respective .css file and some images in local folder. If i open this .html file in any browser then it's working fine (.css and all images are showing properly). But when i open this in my winrt 8.1 app , only html file is getting load to webview. css and all images is not getting load in my webview.

my code is below:


private async void Button_Click_1(object sender, RoutedEventArgs e)
{
      string filename = "myfile.xhtml";
      Windows.Storage.StorageFile sampleFile = await ApplicationData.Current.LocalFolder.GetFileAsync(filename);
      string str=await PathIO.ReadTextAsync(sampleFile.Path);
      webview.NavigateToString(str);
}

Vijayalakshmi Roopkumar [Syncfusion]
Replied On May 2, 2017 12:39 PM UTC

Hi Manoranjan

Thank you for using Syncfusion Product.

We are not able to understand the reported query clearly. Could you please confirm us whether you are facing this reported problem with any Syncfusion Controls? If so, kindly share us the details of Syncfusion controls used in your application. So that, we can analyze and provide prompt solution at the earliest.

Regards
Vijayalakshmi V.R.

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.

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

;