mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-08-29 10:09:43 +02:00
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:
@@ -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">
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user