Quantcast
Viewing all articles
Browse latest Browse all 18858

How to Show / Hide Scrollbars in new 3.5 SP1 Beta WPF WebBrowser Control

I've happily installed the latest Dot Net Framework 3.5 SP1 Beta. I'm using the new WebBrowser control, however I need to be able to hide and show the scroll bars depending on what content I show.

I've spotted this blog by Don Burnett; http://blog.donburnett.com/NewBlog/wpf/using-the-new-wpf-based-web-browser-control-in-net-3-5-sp1/

And there is a snippet of code which shows dependancy properties for the scroll bars..

<WebBrowser Margin="0,49,0,21" x:Name="webBrowser1" Grid.ColumnSpan="3" Source="http://blog.donburnett.com" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Disabled" MaxLines="1"/>

However, when I attempt to use this XAML code in my application, Blend reports that the the HorizontalScrollBarVisibility, VerticalScrollBarVisibility andMaxLines
properties are invalid. Likewise if I attempt to set their values in the code behind the same is reported.

Does anybody have any idea how to access these properties? Or, is this a limitation of the Beta version of 3.5 SP1?

Any help anyone could provide would be greatly appreciated!

Thanks in advance!

Pete

Me

Viewing all articles
Browse latest Browse all 18858

Trending Articles