public SplashScreen() : base(true) { this.Control.AddElement( DefaultAnimations.SetVerticalDefaultAnimations( new ImageElement(ResourceManager.Instance.GetBitmapFromEmbeddedResource("fleuxsplashbg.png")) { Location = new Point(0, this.Size.Height - 800) }, false, FunctionBasedAnimation.Functions.SoftedFluid, FunctionBasedAnimation.Functions.CubicReverse)); this.Control.AddElement(new TransparentImageElement(ResourceManager.Instance.GetIImageFromEmbeddedResource("fleuxsplash.png")) { Location = new Point(0, this.Size.Height - 800) } .AnimateHorizontalEntrance(true)); this.Control.EntranceDuration = 1200; var timer = new Timer { Interval = 1500, Enabled = true }; timer.Tick += (s, e) => { timer.Enabled = false; this.Control.EntranceDuration = 800; this.NavigateTo(new PanoramaPage()); this.Control.EntranceDuration = 0; this.theForm.Hide(); }; this.Control.OnExitAnimationCompleted = () => { this.TheForm.Activated += (s, e) => Application.Exit(); }; }
public ListPage() : base("FLEUX SAMPLE", "list page") { LeftMenu.DisplayText = "Back"; LeftMenu.OnClickAction = () => this.Close(); this.Control.EntranceDuration = 350; this.Content.AddElement( DefaultAnimations.SetHorizontalDefaultAnimations( new ListElement { DataTemplateSelector = item => BuildItem, SourceItems = GetSampleData(), Size = this.Content.Size, ShowScrollbars = true, }, true)); this.Control.ShadowedAnimationMode = FleuxControl.ShadowedAnimationOptions.FromRight; }