title: WPF WebBrowser Control and security message
body: <p>I use the WPF WebBrowser as follow. When I use this in a new autonom Application, I became the following message at top of the browser:
  <img src="https://i.stack.imgur.com/Gdvml.png" alt="enter image description here"></p>
  
  <p>on english:</p>
  
  <p>showing active content that access to the computer has restricted this file for security reasons. Click here for more options ...</p>
  
  <p>When I use the same code in a existing application on the same machine (the exactly same code - as a seperate window), the Message is not shown. 
  Does someone can help me, why this message is not shown when I use the webbrowser-Control (copied the code) in an existing application? - Thanks.</p>
  
  <p>CodeBehind:</p>
  
  <pre><code>public partial class MainWindow : Window {
      public MainWindow() {
          InitializeComponent();
      }
  
      private void Button_Click_1(object sender, RoutedEventArgs e) {
          var path = @"C:\temp\WpfApplication1\MHTBody_5f9d8e2b-9dee-42a6-959c-0edfc43b5daf.proconactNavigating.mht";
          this.webBrowser.Navigate(path);
      }
  }
  </code></pre>
  
  <p>XAML:</p>
  
  <pre><code>&lt;Window x:Class="WpfApplication1.MainWindow"
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          Title="MainWindow" Height="1674.761" Width="900.637"&gt;
      &lt;Grid&gt;
          &lt;Button Height="20" VerticalAlignment="Top" Click="Button_Click_1" /&gt;
          &lt;WebBrowser x:Name="webBrowser" Margin="0,31,0,0" /&gt;
  
      &lt;/Grid&gt;
  &lt;/Window&gt;
  </code></pre>
  
  <p><strong>New Informations:</strong></p>
  
  <p>When I add in the sample-Application (in the new autonom application), where the MainWindow is in and the securitybar is shown Settings to the application and access this, before I open the MainWindow, the securitybar will not be shown anymore and it will take long more time to load the mht.</p>
  
  <p>Concret: </p>
  
  <p>When I dot this, it will not show the securitybar:</p>
  
  <pre><code>public partial class App : Application {
      protected override void OnStartup(StartupEventArgs e) {
          var x = Settings.Default.test;
          base.OnStartup(e);
      }
  }
  </code></pre>