From 838d6c5571b2263543ad6d721264859aa9d6c681 Mon Sep 17 00:00:00 2001 From: DB p Date: Sun, 14 Nov 2021 11:32:39 +0900 Subject: [PATCH] Remove Left Positioning Code in animation --- Flow.Launcher/MainWindow.xaml.cs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/Flow.Launcher/MainWindow.xaml.cs b/Flow.Launcher/MainWindow.xaml.cs index bae41788c..07a18bc80 100644 --- a/Flow.Launcher/MainWindow.xaml.cs +++ b/Flow.Launcher/MainWindow.xaml.cs @@ -261,21 +261,11 @@ namespace Flow.Launcher Duration = TimeSpan.FromSeconds(0.18), FillBehavior = FillBehavior.Stop }; - - var da3 = new DoubleAnimation - { - From = Left, - To = Left, - Duration = TimeSpan.FromSeconds(0.18), - FillBehavior = FillBehavior.Stop - }; Storyboard.SetTarget(da, this); Storyboard.SetTargetProperty(da, new PropertyPath(Window.OpacityProperty)); Storyboard.SetTargetProperty(da2, new PropertyPath(Window.TopProperty)); - Storyboard.SetTargetProperty(da3, new PropertyPath(Window.LeftProperty)); sb.Children.Add(da); sb.Children.Add(da2); - sb.Children.Add(da3); sb.Completed += (_, _) => _animating = false; sb.Begin(FlowMainWindow); }