PDA

View Full Version : customize the scrollbar control for WebBrowser



gauravofindia
April 23rd, 2009, 10:10 AM
Hi Kirupa,

Is it possible to customize the scrollbar control for WebBrowser in xaml.

Following is the code:-

<WebBrowser x:Name="wbsRecipe" ScrollViewer.VerticalScrollBarVisibility="Hidden" ScrollViewer.HorizontalScrollBarVisibility="Hidden" Source="http://www.allrecipes.com" d:LayoutOverrides="GridBox" Margin="82,69,42,109" Width="500" />

All i want is to use some custom scrollbar to scroll the webpage.

Gaurav

kirupa
April 23rd, 2009, 11:07 PM
Hi Gaurav,
Unfortunately, I don't think it is possible to customize the scrollbar inside a WebBrowser. The WebBrowser is almost a direct inline view of the IE browser, so if your IE browser's scrollbars were different, then I believe the WebBrowser control's scrollbars would be different as well.

In other words, the style is inherited from IE.

:)

genroxbro
July 28th, 2009, 04:59 PM
Im having some issues with the marquee control, as soon as I put it in a project I want to use it in, I get the following runtime error: InvalidOperationException - _brushTransform name cannot be found in the name scope of System.Windows.Shapes.Rectangle.Any ideas?