Hi,
In my program I create a control (custom control) in my code:
myControlType myControl=new (myControlType);
After that I add it on my page:
myPage.Controls.Add(myControl);
Please advice me what code to add to get a slide from left animation when myControl is displayed.
You’ll need to create an Animation object. You can do this in the designer, but you can also do it in code like so:
NewUserControl myControl = new NewUserControl();
Animation myAnimation = new Animation();
myAnimation.GetAnimation(myControl).Duration = 800;
myAnimation.GetAnimation(myControl).Event = "appear";
myAnimation.GetAnimation(myControl).Name = "slideLeftIn";
this.Controls.Add(myControl);
If you want to see a sample that uses animation, you can see it in the demobrowser here: https://wisej-demobrowser.azurewebsites.net/#Extenders/Animation/Features
You can view the code here: https://github.com/iceteagroup/Wisej-DemoBrowser/tree/main/Demos/Extenders/Wisej.DemoBrowser.Animation
Please login first to submit.
