private void ScaleUp(object sender, PointerRoutedEventArgs e)
{
// Source for the scaling: https://github.com/windows-toolkit/WindowsCommunityToolkit/blob/master/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/Implicit%20Animations/ImplicitAnimationsPage.xaml.cs
// Search for "Scale Element".
if (sender is UIElement element)
{
element.GetVisual().Scale = new Vector3(1.3f, 1.3f, 1);
}
}