Skip to content

Commit

Permalink
disable appear animation on secondary windows
Browse files Browse the repository at this point in the history
  • Loading branch information
foglio1024 committed Oct 1, 2023
1 parent 03e60c5 commit 8c48cdf
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions TCC.Core/UI/Windows/TccWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,13 @@ public virtual void ShowWindow()
Dispatcher?.InvokeAsync(() =>
{
BeginAnimation(OpacityProperty, null);
Opacity = 0;
//((FrameworkElement)Content).BeginAnimation(OpacityProperty, null);
//((FrameworkElement)Content).Opacity = 0;
//_showAnim.From = 0;
Show();
Showed?.Invoke();
RefreshTopmost();
BeginAnimation(OpacityProperty, _showAnim);
//((FrameworkElement)Content).BeginAnimation(OpacityProperty, _showAnim);
});
}

Expand All @@ -78,7 +80,7 @@ protected virtual void OnClosing(object? sender, System.ComponentModel.CancelEve
HideWindow();
}

protected void Drag(object sender, MouseButtonEventArgs e)
protected virtual void Drag(object sender, MouseButtonEventArgs e)
{
((UIElement)Content).Opacity = .7;
this.TryDragMove();
Expand Down

0 comments on commit 8c48cdf

Please sign in to comment.