Hi,
I want to display html content inside a settings flyout.
XAML Code:
<SettingsFlyout
x:Class="ABC.Settings.Ack"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:SMDWindowsClient.Settings"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
IconSource="Assets/SmallLogo.png"
Title="Ack"
d:DesignWidth="346">
<StackPanel VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="641" >
<StackPanel Style="{StaticResource SettingsFlyoutSectionStyle}">
<Button Content="Button" Click="Onclick" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
<WebView x:Name="AckWebView"
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
</StackPanel>
</StackPanel>
</SettingsFlyout>
private void Onclick(object sender, RoutedEventArgs e)
{
AckWebView.NavigateToString(@" <html>
<head></head>
<body>
<div id='myDiv'>Welcome to this WORLD</div>
</body>
</html>");
}
When I open the Settings flyout, it shows a blank page with only the title of the flyout.
The HTML content is not getting displayed.
How can i solve this issue?