Skip to content

Commit

Permalink
Merge pull request #363 from trimble-oss/339-unable-do-animation-for-…
Browse files Browse the repository at this point in the history
…popup-page

Unable do animation for popup page #339
  • Loading branch information
Sofiya-kumar committed Apr 1, 2024
2 parents 416614e + 487f149 commit 6095c0b
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions DemoApp/DemoApp/Views/PopupSamples/SampleCustomPopup.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
using DemoApp.ViewModels;
using Trimble.Modus.Components;
using Trimble.Modus.Components.Popup.Animations;
using Trimble.Modus.Components.Popup.Enums;

namespace DemoApp.Views.PopupSamples;

Expand All @@ -10,5 +12,6 @@ public SampleCustomPopup()
{
InitializeComponent();
BindingContext = _viewModel;
Animation = new MoveAnimation() { PositionIn = MoveAnimationOptions.Left, PositionOut = MoveAnimationOptions.Left, DurationIn = 500, DurationOut = 500 };
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public interface IPopupAnimation
Task Appearing(View content, PopupPage page);
Task Disappearing(View content, PopupPage page);
}
internal abstract class BaseAnimation : IPopupAnimation
public abstract class BaseAnimation : IPopupAnimation
{
private const uint DefaultDuration = 200;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Trimble.Modus.Components.Popup.Animations.Base;

internal abstract class FadeBackgroundAnimation : BaseAnimation
public abstract class FadeBackgroundAnimation : BaseAnimation
{
private Color? _backgroundColor;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Trimble.Modus.Components.Popup.Animations;

internal class MoveAnimation : FadeBackgroundAnimation
public class MoveAnimation : FadeBackgroundAnimation
{
private double _defaultTranslationX;
private double _defaultTranslationY;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Trimble.Modus.Components.Popup.Enums;

internal enum MoveAnimationOptions
public enum MoveAnimationOptions
{
Center,
Left,
Expand Down
2 changes: 1 addition & 1 deletion Trimble.Modus.Components/Controls/Popup/Pages/PopupPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public bool HasSystemPadding

public static readonly BindableProperty AnimationProperty = BindableProperty.Create(nameof(Animation), typeof(IPopupAnimation), typeof(PopupPage), new ScaleAnimation());

internal IPopupAnimation Animation
public IPopupAnimation Animation
{
get => (IPopupAnimation)GetValue(AnimationProperty);
set => SetValue(AnimationProperty, value);
Expand Down

0 comments on commit 6095c0b

Please sign in to comment.