Experiments we might not need, and disable animations WHICH IS LOAD BEARING

disabling the animations fixed the mouse input bug, but WHY
This commit is contained in:
Mike Griese
2026-08-28 09:50:14 -05:00
parent 56cef1835e
commit 603e465de9
2 changed files with 26 additions and 21 deletions

View File

@@ -50,19 +50,19 @@
SourceKey="{x:Bind Navigation.CurrentPage.Icon, Mode=OneWay}"
SourceRequested="{x:Bind help:IconProvider.SourceRequested20}"
Visibility="{x:Bind Navigation.CurrentPage.IsRootPage, Mode=OneWay}">
<animations:Implicit.ShowAnimations>
<!--<animations:Implicit.ShowAnimations>
<animations:OpacityAnimation
EasingMode="EaseIn"
EasingType="Cubic"
From="0"
To="1.0"
Duration="0:0:0.187" />
Duration="0:0:2.187" />
<animations:ScaleAnimation
EasingMode="EaseIn"
EasingType="Cubic"
From="0.5"
To="1"
Duration="0:0:0.187" />
Duration="0:0:2.187" />
</animations:Implicit.ShowAnimations>
<animations:Implicit.HideAnimations>
<animations:OpacityAnimation
@@ -70,14 +70,14 @@
EasingType="Cubic"
From="1.0"
To="0"
Duration="0:0:0.187" />
Duration="0:0:2.187" />
<animations:ScaleAnimation
EasingMode="EaseOut"
EasingType="Cubic"
From="1"
To="0.5"
Duration="0:0:0.187" />
</animations:Implicit.HideAnimations>
Duration="0:0:2.187" />
</animations:Implicit.HideAnimations>-->
</controls:IconBox>
<Button
x:Name="BackButton"
@@ -93,21 +93,21 @@
FontSize="16"
Style="{StaticResource SubtleButtonStyle}"
Visibility="{x:Bind Navigation.CanGoBack, Mode=OneWay}">
<animations:Implicit.ShowAnimations>
<!--<animations:Implicit.ShowAnimations>
<animations:OpacityAnimation
EasingMode="EaseIn"
EasingType="Cubic"
From="0"
To="1.0"
Duration="0:0:0.333" />
Duration="0:0:5.333" />
<animations:ScaleAnimation
From="0.5"
To="1"
Duration="0:0:0.333" />
Duration="0:0:5.333" />
<animations:TranslationAnimation
From="16,0,0"
To="0,0,0"
Duration="0:0:0.333" />
Duration="0:0:5.333" />
</animations:Implicit.ShowAnimations>
<animations:Implicit.HideAnimations>
<animations:OpacityAnimation
@@ -121,14 +121,14 @@
EasingType="Cubic"
From="1"
To="0.5"
Duration="0:0:0.333" />
Duration="0:0:5.333" />
<animations:TranslationAnimation
EasingMode="EaseOut"
EasingType="Cubic"
From="0,0,0"
To="16,0,0"
Duration="0:0:0.187" />
</animations:Implicit.HideAnimations>
Duration="0:0:5.187" />
</animations:Implicit.HideAnimations>-->
</Button>
<controls:IconBox
x:Name="PageIcon"
@@ -141,34 +141,34 @@
SourceKey="{x:Bind Navigation.CurrentPage.Icon, Mode=OneWay}"
SourceRequested="{x:Bind help:IconProvider.SourceRequested20}"
Visibility="{x:Bind Navigation.CanGoBack, Mode=OneWay}">
<animations:Implicit.ShowAnimations>
<!--<animations:Implicit.ShowAnimations>
<animations:OpacityAnimation
From="0"
To="1.0"
Duration="0:0:0.333" />
Duration="0:0:5.333" />
<animations:ScaleAnimation
From="0.8"
To="1"
Duration="0:0:0.333" />
Duration="0:0:5.333" />
<animations:TranslationAnimation
From="8,0,0"
To="0,0,0"
Duration="0:0:0.187" />
Duration="0:0:5.187" />
</animations:Implicit.ShowAnimations>
<animations:Implicit.HideAnimations>
<animations:OpacityAnimation
From="1.0"
To="0"
Duration="0:0:0.333" />
Duration="0:0:5.333" />
<animations:ScaleAnimation
From="1"
To="0.8"
Duration="0:0:0.333" />
Duration="0:0:5.333" />
<animations:TranslationAnimation
From="0,0,0"
To="8,0,0"
Duration="0:0:0.187" />
</animations:Implicit.HideAnimations>
Duration="0:0:5.187" />
</animations:Implicit.HideAnimations>-->
</controls:IconBox>
</StackPanel>
<Grid Grid.Column="1" HorizontalAlignment="Stretch">

View File

@@ -371,6 +371,11 @@ internal sealed partial class DockPageFlyoutController :
PInvoke.SetForegroundWindow(ownerHwnd);
PInvoke.SetActiveWindow(ownerHwnd);
if (request.Anchor is Control anchorControl)
{
anchorControl.Focus(FocusState.Programmatic);
}
PreparePopupForShow(request.Anchor);
_flyout.ShowAt(
request.Anchor,