Родитель
e678ef24b5
Коммит
30d41f0381
|
@ -6,7 +6,7 @@ namespace FormsCommunityToolkit.Animations
|
|||
public abstract class AnimationBase : BindableObject
|
||||
{
|
||||
public static readonly BindableProperty TargetProperty =
|
||||
BindableProperty.Create(nameof(Target), typeof(VisualElement), typeof(AnimationBase), null,
|
||||
BindableProperty.Create("Target", typeof(VisualElement), typeof(AnimationBase), null,
|
||||
BindingMode.TwoWay, null);
|
||||
|
||||
public VisualElement Target
|
||||
|
@ -16,7 +16,7 @@ namespace FormsCommunityToolkit.Animations
|
|||
}
|
||||
|
||||
public static readonly BindableProperty DurationProperty =
|
||||
BindableProperty.Create(nameof(Duration), typeof(string), typeof(AnimationBase), "1000",
|
||||
BindableProperty.Create("Duration", typeof(string), typeof(AnimationBase), "1000",
|
||||
BindingMode.TwoWay, null);
|
||||
|
||||
public string Duration
|
||||
|
@ -26,7 +26,7 @@ namespace FormsCommunityToolkit.Animations
|
|||
}
|
||||
|
||||
public static readonly BindableProperty EasingProperty =
|
||||
BindableProperty.Create(nameof(Easing), typeof(EasingType), typeof(AnimationBase), EasingType.Linear,
|
||||
BindableProperty.Create("Easing", typeof(EasingType), typeof(AnimationBase), EasingType.Linear,
|
||||
BindingMode.TwoWay, null);
|
||||
|
||||
public EasingType Easing
|
||||
|
|
|
@ -7,7 +7,7 @@ namespace FormsCommunityToolkit.Animations
|
|||
public class FadeToAnimation : AnimationBase
|
||||
{
|
||||
public static readonly BindableProperty OpacityProperty =
|
||||
BindableProperty.Create(nameof(Opacity), typeof(double), typeof(FadeToAnimation), default(double),
|
||||
BindableProperty.Create("Opacity", typeof(double), typeof(FadeToAnimation), default(double),
|
||||
BindingMode.TwoWay, null);
|
||||
|
||||
public double Opacity
|
||||
|
@ -36,7 +36,7 @@ namespace FormsCommunityToolkit.Animations
|
|||
}
|
||||
|
||||
public static readonly BindableProperty DirectionProperty =
|
||||
BindableProperty.Create(nameof(Direction), typeof(FadeDirection), typeof(FadeInAnimation), FadeDirection.Up,
|
||||
BindableProperty.Create("Direction", typeof(FadeDirection), typeof(FadeInAnimation), FadeDirection.Up,
|
||||
BindingMode.TwoWay, null);
|
||||
|
||||
public FadeDirection Direction
|
||||
|
@ -85,7 +85,7 @@ namespace FormsCommunityToolkit.Animations
|
|||
}
|
||||
|
||||
public static readonly BindableProperty DirectionProperty =
|
||||
BindableProperty.Create(nameof(Direction), typeof(FadeDirection), typeof(FadeOutAnimation), FadeDirection.Up,
|
||||
BindableProperty.Create("Direction", typeof(FadeDirection), typeof(FadeOutAnimation), FadeDirection.Up,
|
||||
BindingMode.TwoWay, null);
|
||||
|
||||
public FadeDirection Direction
|
||||
|
|
|
@ -13,7 +13,7 @@ namespace FormsCommunityToolkit.Animations
|
|||
}
|
||||
|
||||
public static readonly BindableProperty DirectionProperty =
|
||||
BindableProperty.Create(nameof(Direction), typeof(FlipDirection), typeof(FlipAnimation), FlipDirection.Right,
|
||||
BindableProperty.Create("Direction", typeof(FlipDirection), typeof(FlipAnimation), FlipDirection.Right,
|
||||
BindingMode.TwoWay, null);
|
||||
|
||||
public FlipDirection Direction
|
||||
|
|
|
@ -7,7 +7,7 @@ namespace FormsCommunityToolkit.Animations
|
|||
public class RotateToAnimation : AnimationBase
|
||||
{
|
||||
public static readonly BindableProperty RotationProperty =
|
||||
BindableProperty.Create(nameof(Rotation), typeof(double), typeof(RotateToAnimation), 0,
|
||||
BindableProperty.Create("Rotation", typeof(double), typeof(RotateToAnimation), 0,
|
||||
BindingMode.TwoWay, null);
|
||||
|
||||
public double Rotation
|
||||
|
@ -30,7 +30,7 @@ namespace FormsCommunityToolkit.Animations
|
|||
public class RelRotateToAnimation : AnimationBase
|
||||
{
|
||||
public static readonly BindableProperty RotationProperty =
|
||||
BindableProperty.Create(nameof(Rotation), typeof(double), typeof(RelRotateToAnimation), 0,
|
||||
BindableProperty.Create("Rotation", typeof(double), typeof(RelRotateToAnimation), 0,
|
||||
BindingMode.TwoWay, null);
|
||||
|
||||
public double Rotation
|
||||
|
@ -53,7 +53,7 @@ namespace FormsCommunityToolkit.Animations
|
|||
public class RotateXToAnimation : AnimationBase
|
||||
{
|
||||
public static readonly BindableProperty RotationProperty =
|
||||
BindableProperty.Create(nameof(Rotation), typeof(double), typeof(RotateXToAnimation), 0,
|
||||
BindableProperty.Create("Rotation", typeof(double), typeof(RotateXToAnimation), 0,
|
||||
BindingMode.TwoWay, null);
|
||||
|
||||
public double Rotation
|
||||
|
@ -76,7 +76,7 @@ namespace FormsCommunityToolkit.Animations
|
|||
public class RotateYToAnimation : AnimationBase
|
||||
{
|
||||
public static readonly BindableProperty RotationProperty =
|
||||
BindableProperty.Create(nameof(Rotation), typeof(double), typeof(RotateYToAnimation), 0,
|
||||
BindableProperty.Create("Rotation", typeof(double), typeof(RotateYToAnimation), 0,
|
||||
BindingMode.TwoWay, null);
|
||||
|
||||
public double Rotation
|
||||
|
|
|
@ -7,7 +7,7 @@ namespace FormsCommunityToolkit.Animations
|
|||
public class ScaleToAnimation : AnimationBase
|
||||
{
|
||||
public static readonly BindableProperty ScaleProperty =
|
||||
BindableProperty.Create(nameof(Scale), typeof(double), typeof(ScaleToAnimation), 0,
|
||||
BindableProperty.Create("Scale", typeof(double), typeof(ScaleToAnimation), 0,
|
||||
BindingMode.TwoWay, null);
|
||||
|
||||
public double Scale
|
||||
|
@ -30,7 +30,7 @@ namespace FormsCommunityToolkit.Animations
|
|||
public class RelScaleToAnimation : AnimationBase
|
||||
{
|
||||
public static readonly BindableProperty ScaleProperty =
|
||||
BindableProperty.Create(nameof(Scale), typeof(double), typeof(RelScaleToAnimation), 0,
|
||||
BindableProperty.Create("Scale", typeof(double), typeof(RelScaleToAnimation), 0,
|
||||
BindingMode.TwoWay, null);
|
||||
|
||||
public double Scale
|
||||
|
|
|
@ -7,7 +7,7 @@ namespace FormsCommunityToolkit.Animations
|
|||
public class TranslateToAnimation : AnimationBase
|
||||
{
|
||||
public static readonly BindableProperty TranslateXProperty =
|
||||
BindableProperty.Create(nameof(TranslateX), typeof(double), typeof(TranslateToAnimation), default(double),
|
||||
BindableProperty.Create("TranslateX", typeof(double), typeof(TranslateToAnimation), default(double),
|
||||
BindingMode.TwoWay, null);
|
||||
|
||||
public double TranslateX
|
||||
|
@ -17,7 +17,7 @@ namespace FormsCommunityToolkit.Animations
|
|||
}
|
||||
|
||||
public static readonly BindableProperty TranslateYProperty =
|
||||
BindableProperty.Create(nameof(TranslateY), typeof(double), typeof(TranslateToAnimation), default(double),
|
||||
BindableProperty.Create("TranslateY", typeof(double), typeof(TranslateToAnimation), default(double),
|
||||
BindingMode.TwoWay, null);
|
||||
|
||||
public double TranslateY
|
||||
|
|
|
@ -32,7 +32,7 @@ namespace FormsCommunityToolkit.Animations
|
|||
}
|
||||
|
||||
public static readonly BindableProperty AnimationProperty =
|
||||
BindableProperty.Create(nameof(Animation), typeof(AnimationBase), typeof(BeginAnimationBehavior), null,
|
||||
BindableProperty.Create("Animation", typeof(AnimationBase), typeof(BeginAnimationBehavior), null,
|
||||
BindingMode.TwoWay, null);
|
||||
|
||||
public AnimationBase Animation
|
||||
|
|
Загрузка…
Ссылка в новой задаче