I'm trying to close a flyout when a click on his or on another side of the window, I use the ExternalCloseButton=Left
property. Is this okay? I also tried removing the property AutoCloseEnabled
, but could not get results.
When I use a flyout with the property EnabledAutoClose
, when closed, the focus is lost in the control it was.
You can help solve this problem?
<mahApps:MetroWindow.Flyouts>
<mahApps:FlyoutsControl>
<mahApps:Flyout Position="Bottom"
AutoCloseInterval="3000"
IsOpen="{Binding IsOpen}"
IsAutoCloseEnabled="True"
ExternalCloseButton="Left">
</mahApps:Flyout>
</mahApps:FlyoutsControl>
</mahApps:MetroWindow.Flyouts>