Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

New Post: ChildWindow Focus

$
0
0
I have an issue with using a non-modal ChildWindow. It seems to lose and gain focus when clicking on the window. This is most noticable with a selected CheckBox in the ChildWindow. (I can post some XAML for the reproduction if needed).

This change in WindowContainer.cs fixes the issue.
    private void SetActiveWindow( WindowControl windowControl )
    {
      foreach( WindowControl window in this.Children )
      {
        if ( window != windowControl )
        {
          window.SetIsActiveInternal( false );
        }
      }
      windowControl.SetIsActiveInternal( true );
    }

Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>