microsoft/Terminal

Use a Clip rect for Pane animations instead of the Width/Height

Open

#7436 aperta il 27 ago 2020

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)C++ (3212 fork)batch import
Area-UserInterfaceHelp WantedIssue-TaskPriority-3Product-Terminal

Metriche repository

Star
 (35.764 star)
Metriche merge PR
 (Merge medio 27g 19h) (24 PR mergiate in 30 g)

Descrizione

follow up from #7364

Looking at this doc:

An animation is independent if it has any of these characteristics:

  • The Duration of the animation is 0 seconds (see Warning)
  • The animation targets UIElement.Opacity
  • The animation targets a sub-property value of these UIElement properties: Transform3D, RenderTransform, Projection, Clip
  • The animation targets Canvas.Left or Canvas.Top
  • The animation targets a Brush value and uses a SolidColorBrush, animating its Color
  • The animation is an ObjectAnimationUsingKeyFrames

emph added

Right now we're stuck being a dependent animation, because we're animating the Width or Height. But we might be able to use Clip to achieve the same effect.

I'm no XAML wizard, so that'll require another day of learning to figure out, but I figured I'd write these notes down before I forgot.

Might even be able to get us #7365 for free.

Guida contributor