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. Image for the cookie policy date

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

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);
}

1 Reply

VR Vijayalakshmi Roopkumar Syncfusion Team 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.

Loader.
Up arrow icon