Example #1
0
        public TextPage()
            : base("FLEUX DEMO", "text sample")
        {
            this.LeftMenu.DisplayText = "Back";
            this.LeftMenu.OnClickAction = this.Close;

            var sv = new ScrollViewer
            {
                Size = new Size(this.Content.Size.Width - 19, this.Content.Size.Height),
                Location = new Point(21, 0),
                ShowScrollbars = true,
                VerticalScroll = true
            };

            sv.Content = new DelegateUIElement
            {
                Size = new Size(sv.Size.Width, 950),
                DrawingAction = this.DrawTextSamples
            };

            this.Content.AddElement(sv.AnimateHorizontalEntrance(true));

            this.Control.ShadowedAnimationMode = Fleux.Controls.FleuxControl.ShadowedAnimationOptions.FromRight;
        }