Skip to content

Window with showactivated=false and sizetocontent=WidthAndHeight is activated in Mahapps.Metro v1.5 #2951

@gerthermans

Description

@gerthermans

HoverIssuemahapps.zip

Issue

When SizeToContent is set on a wpf window it ignores the ShowActivated=false setting

Steps to reproduce

Unzip the HoverIssuemahapps zip file
Open and run the solution
Move the mouse over the 'hover here' area
expected result:
Window1 stays active window as CheckWindow has ShowActivated=False
Actual result:
CheckWindow becomes activated

This was working in Mahapps.Metro version 1.4.2

Is there a workaround for this? (window still needs to size to it's content.

Environment

  • MahApps.Metro __v1.5
  • Windows 10
  • Visual Studio 2015
  • .NET Framework 4.5.2

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions