title: Why Mistake - when simulate mouse in dotnetbrowser?
body: <p>But when build - The calling thread must be STA, because many UI components require this in first browser.MouseMove(x, y)</p>
  
  <pre class="lang-c# prettyprint-override"><code>public MainWindow()
  {
      // Initialize WPF Application UI.
  
      InitializeComponent();
  
      // Create WPF BrowserView component.
      browser = BrowserFactory.Create();
  
      browserView = new WPFBrowserView(browser);
      // Embed BrowserView component into main layout.
      mainLayout.Children.Add(browserView);
      browser.FinishLoadingFrameEvent += delegate(object sender, FinishLoadingEventArgs e)
      {
          if (e.IsMainFrame)
          {
              int x = 100;
              int y = 10;
              browser.MouseMove(x, y);
          }
      };
  
      browserView.Browser.LoadURL("http://google.com");
  }
  </code></pre>