Rg.Plugins.Popup icon indicating copy to clipboard operation
Rg.Plugins.Popup copied to clipboard

Non-XAML example?

Open BillFulton opened this issue 5 years ago • 1 comments

Would really appreciate a small code example including animation, without using XAML. Am struggling to convert my working XAML page to code-only. I am guessing animation code would be like this but not sure where to put it:

scaleAnimation = new ScaleAnimation (); scaleAnimation.PositionIn = Rg.Plugins.Popup.Enums.MoveAnimationOptions.Center; scaleAnimation.PositionOut = Rg.Plugins.Popup.Enums.MoveAnimationOptions.Center; scaleAnimation.ScaleIn = 1.2D; scaleAnimation.ScaleOut = 0.8D; scaleAnimation.DurationIn = 400; scaleAnimation.DurationOut = 300; scaleAnimation.EasingIn = Easing.SinOut; scaleAnimation.EasingOut = Easing.SinIn; scaleAnimation.HasBackgroundAnimation = true; Animation = scaleAnimation;

With or without this code, a small popup appears and instantly shrinks to a point (Xamarin Forms / iOS).

Huge thanks for this Nuget, it's amazing.

-- Bill

BillFulton avatar Jul 22 '19 09:07 BillFulton

@BillFulton

Long time in response, in the .Net MAUI version of this, the plan is to atleast have CsharpMarkup and Xaml

LuckyDucko avatar Oct 20 '21 05:10 LuckyDucko