title: Overlay over WebBrowser control
body: <p>I have a TabControl (using InfragisticTabControl) where each TabItem contains a WebBrowser control where I can display a URL like www.google.com or any xbap UI.</p>
  
  <p>Below is the TabItem Code:</p>
  
  <pre><code>&lt;Grid&gt;
      &lt;WebBrowser x:Name="myBrowser"
              webHelper:WebBrowserHelper.BrowserSource="{Binding XBAP_URI}"
              Height="Auto"/&gt;
  
      &lt;Grid Name="MyOverlayGrid" Background="LightGray" Opacity="0.5" 
            Visibility="{Binding Path=IsEnabled, Converter={StaticResource BoolToVisible2}, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type igDock:ContentPane}}}"&gt;
          &lt;TextBlock Text="User does not have permissions for this application" FontSize="24"/&gt;
      &lt;/Grid&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p>I verified using snoop that Visibility binding is correctly getting populated, but I don't see MyOverlayGrid on myBrowser control. I even tried updating Panel.ZIndex for MyOverlayGrid, no help.</p>
  
  <p>Only thing that worked is to set myBrowser visibility to hidden (i used snoop) and then i could see MyOverlayGrid.</p>
  
  <p>Can anyone tell me if I am doing something incorrect or missing something obvious? This works fine for a contentcontrol, may be its not possible for a WebBrowser control since the its starts new applictaion (InternetExplorer.exe or PresentationHost.exe) in the tab control?</p>
  
  <p>Thanks,</p>
  
  <p>RDV</p>