Skip to content

Commit

Permalink
chore(TeachingTip): Porting main class
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinZikmund committed Mar 6, 2024
1 parent f89de64 commit 5deeec2
Show file tree
Hide file tree
Showing 5 changed files with 2,545 additions and 2,331 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using Windows.Foundation;
#nullable enable

using Windows.Foundation;

namespace Microsoft.UI.Xaml.Controls
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
// MUX Reference TeachingTip.h, commit dfbe38b

#nullable enable

using System;
using System.Numerics;
using Windows.Foundation;
using Windows.UI.Composition;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Shapes;
Expand All @@ -14,10 +17,6 @@ public partial class TeachingTip
private bool m_isIdle = true;
private FrameworkElement m_target;

private TeachingTipPlacementMode m_currentEffectiveTipPlacementMode = TeachingTipPlacementMode.Auto;
private TeachingTipPlacementMode m_currentEffectiveTailPlacementMode = TeachingTipPlacementMode.Auto;
private TeachingTipHeroContentPlacementMode m_currentHeroContentEffectivePlacementMode = TeachingTipHeroContentPlacementMode.Auto;

private Border m_container;
private Popup m_popup;
private Popup m_lightDismissIndicatorPopup;
Expand All @@ -35,6 +34,20 @@ public partial class TeachingTip
private UIElement m_titleTextBox;
private UIElement m_subtitleTextBox;

private WeakReference<DependencyObject> m_previouslyFocuesElement;

private KeyFrameAnimation m_expandAnimation;
private KeyFrameAnimation m_contractAnimation;
private KeyFrameAnimation m_expandElevationAnimation;
private KeyFrameAnimation m_contractElevationAnimation;
private CompositionEasingFunction m_expandEasingFunction;
private CompositionEasingFunction m_contractEasingFunction;

private TeachingTipPlacementMode m_currentEffectiveTipPlacementMode = TeachingTipPlacementMode.Auto;
private TeachingTipPlacementMode m_currentEffectiveTailPlacementMode = TeachingTipPlacementMode.Auto;
private TeachingTipHeroContentPlacementMode m_currentHeroContentEffectivePlacementMode = TeachingTipHeroContentPlacementMode.Auto;


private Rect m_currentBoundsInCoreWindowSpace = Rect.Empty;
private Rect m_currentTargetBoundsInCoreWindowSpace = Rect.Empty;

Expand Down
Loading

0 comments on commit 5deeec2

Please sign in to comment.