Monday, September 17, 2012

Is it possible to render Silverlight elements on top of a Web Browser control (in OOB mode)

Is it possible to render Silverlight elements on top of a Web Browser control (in OOB mode)

I would like to be able to hide and reveal Web Browser controls using other Silverlight elements and various transitions.

It appears that any Web Browser controls are always rendered last on the page. Is there any way to get other elements to render on top of the Web Browser?

Here is a minimal XAML example to show the problem:

<UserControl     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     x:Class="BrowserSilverlightApplication.MainPage"     Width="640" Height="480">     <Grid x:Name="LayoutRoot" Background="White">         <WebBrowser x:Name="webBrowser" Margin="16" Loaded="WebBrowser_Loaded"/>         <Rectangle Fill="#447171DE" Margin="8" Stroke="Black" IsHitTestVisible="False" StrokeThickness="0">             <Rectangle.Effect>                 <BlurEffect Radius="18"/>             </Rectangle.Effect>         </Rectangle>     </Grid> </UserControl> 

Answers & Comments...




No comments:

Post a Comment

Send us your comment related to the topic mentioned on the blog