forked from unoplatform/uno
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
482407b
commit 79fbf60
Showing
5 changed files
with
722 additions
and
4 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
src/Uno.UI/Microsoft/UI/Xaml/Controls/AnimatedIcon/AnimatedIcon.Header.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using Uno.Disposables; | ||
using Windows.UI.Composition; | ||
using Windows.UI.Xaml.Controls; | ||
using Windows.UI.Xaml.Media; | ||
|
||
namespace Microsoft.UI.Xaml.Controls | ||
{ | ||
public partial class AnimatedIcon | ||
{ | ||
private IAnimatedVisual m_animatedVisual; | ||
private Panel m_rootPanel; | ||
private ScaleTransform m_scaleTransform; | ||
|
||
private string m_currentState = ""; | ||
private string m_previousState = ""; | ||
private string m_queuedState = ""; | ||
private string m_pendingState = ""; | ||
private string m_lastAnimationSegment = ""; | ||
private string m_lastAnimationSegmentStart = ""; | ||
private string m_lastAnimationSegmentEnd = ""; | ||
private bool m_isPlaying = false; | ||
private bool m_canDisplayPrimaryContent = true; | ||
private float m_previousSegmentLength = 1.0f; | ||
private float m_durationMultiplier = 1.0f; | ||
private float m_speedUpMultiplier = 7.0f; | ||
|
||
|
||
private CompositionPropertySet m_progressPropertySet = null; | ||
private CompositionScopedBatch m_batch = null; | ||
private SerialDisposable m_batchCompletedRevoker = new SerialDisposable(); | ||
private SerialDisposable m_ancestorStatePropertyChangedRevoker = new SerialDisposable(); | ||
private SerialDisposable m_layoutUpdatedRevoker = new SerialDisposable(); | ||
private SerialDisposable m_foregroundColorPropertyChangedRevoker = new SerialDisposable(); | ||
|
||
private AnimatedIconAnimationQueueBehavior m_queueBehavior = AnimatedIconAnimationQueueBehavior.SpeedUpQueueOne; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.