Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1060
ZIndex again...
posted

Hi

If I have this :

  <Canvas x:Name="LayoutRoot">

    <igHtmlViewer:XamWebHtmlViewer SourceUri="http://www.google.com" Canvas.ZIndex="0"></igHtmlViewer:XamWebHtmlViewer>

        <Rectangle Height="100"

                   Width="100"

                   Fill="Black"

                   Canvas.ZIndex="1000"></Rectangle>

    </Canvas>

The rectangle is behind the htmlviewer.  How can i get it to appear on top of the htmlviewer?

Thanks

Kevin

 

Parents
No Data
Reply
  • 760
    Suggested Answer
    posted

    Hello Kevin,

    In fact the XamHtmlViewer is not a real Silverlight control.  It behaves like a Silverlight control but actually it has two parts - Silverlight and Html part.   The visual part of the control is the Html one which is always above the Silverlight plug-in. There is no other way. 

    So it's not possible your rectangle to be above an Html element because , an Html element is always above the Silverlight plugin (when Windowless=True)

    Regards,

     Doychin Dochev

Children
No Data