MahApps.Metro icon indicating copy to clipboard operation
MahApps.Metro copied to clipboard

Flyout IsPinned="False" strange behavior

Open arnoldpa opened this issue 12 years ago • 8 comments

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>
  1. strange behavior: If i click the Hyperlink => flyout closes
  2. 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.

arnoldpa avatar Aug 21 '14 20:08 arnoldpa

  1. The flyout is to be closed as it effectively will lose/lost focus.
  2. This seems to be related to the window commands themselves, probably caused by some recent window command changes.

@punker76

zeluisping avatar Aug 21 '14 21:08 zeluisping

May also be related to https://github.com/MahApps/MahApps.Metro/issues/1487

flagbug avatar Aug 21 '14 22:08 flagbug

The problem are the e.Handled = true, as they will not allow the window command to receive the event.

zeluisping avatar Aug 22 '14 08:08 zeluisping

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!

arnoldpa avatar Aug 26 '14 16:08 arnoldpa

Is this still an issue?

flagbug avatar Oct 13 '14 20:10 flagbug

Yes, tested with version 0.15.0-ALPHA45.

arnoldpa avatar Oct 16 '14 15:10 arnoldpa

i figured out that it is a Problem with preview mouse down event at MetrowWindow

punker76 avatar Oct 16 '14 16:10 punker76

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.

zeluisping avatar Oct 16 '14 18:10 zeluisping