I have a webbrowser and I am loading a .html file. The problem is that although I have already set the ScrollViewer.VerticalScrollBarVisibility to"Hidden", the scrollbar is still visible.
I have also tried this approach and it is not working
<WebBrowser x:Name="personalizedWebBrowser" HorizontalAlignment="Left" VerticalAlignment="Top"
ScrollViewer.CanContentScroll="False"
ScrollViewer.HorizontalScrollBarVisibility="Hidden"
ScrollViewer.VerticalScrollBarVisibility="Hidden"
LoadCompleted="wb_LoadCompleted"/>
private void wb_LoadCompleted(object sender, System.Windows.Navigation.NavigationEventArgs e)
{
mshtml.IHTMLDocument2 dom = (mshtml.IHTMLDocument2)personalizedWebBrowser.Document;
dom.body.style.overflow = "hidden";
}
Could you please suggest anything else?