Flyout IsPinned="False" strange behavior
Hi,
i use a flyout with IsPinned="False" and there are two things there does not feel right for me.
My Flyout:
<controls:MetroWindow.Flyouts>
<controls:FlyoutsControl>
<controls:Flyout Header="Update" Position="Right" Width="200" IsOpen="{Binding IsUpdateFlyoutOpen}"
Theme="Dark" IsModal="True" IsPinned="False"
x:Name="FlyoutRight">
[..]
<TextBlock HorizontalAlignment="Right"><Hyperlink NavigateUri="http://somesite.com">Changelog</Hyperlink></TextBlock>
[..]
</controls:Flyout>
</controls:FlyoutsControl>
</controls:MetroWindow.Flyouts>
- strange behavior: If i click the Hyperlink => flyout closes
- strange behavior: If i click a WindowCommand, minimize or close button => flyout closes but application does not minimize or close
Are these behaviors right? Thanks.
- The flyout is to be closed as it effectively will lose/lost focus.
- This seems to be related to the window commands themselves, probably caused by some recent window command changes.
@punker76
May also be related to https://github.com/MahApps/MahApps.Metro/issues/1487
The problem are the e.Handled = true, as they will not allow the window command to receive the event.
Okay thanks for reply. So first behavior is right. Is there a best practice to click on a hyperlink and flyout does not close? (Updated right now... hyperlink does not close flyout. Thanks!) And second is a known bug. Hope it get fixed soon. Really like this project!
Is this still an issue?
Yes, tested with version 0.15.0-ALPHA45.
i figured out that it is a Problem with preview mouse down event at MetrowWindow
To be more precise FlyoutsPreviewMouseDown
100GPing100 commented on Aug 22 The problem are the
e.Handled = true, as they will not allow the window command to receive the event.