Esempio n. 1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            // Perform any additional setup after loading the view, typically from a nib.

            fireworks = new SimpleParticleGen(UIImage.FromFile("xamlogo.png"), View);
            fireworks.ContinousParticles = true;

            // configure the start button
            startButton.Layer.CornerRadius = 5.0f;
            startButton.TouchUpInside     += delegate(object sender, EventArgs e)
            {
                if (fireworks.isRunning)
                {
                    fireworks.Stop();
                    startButton.SetTitle("Start Show", UIControlState.Normal);
                }
                else
                {
                    fireworks.Start();
                    startButton.SetTitle("End Show", UIControlState.Normal);
                }
            };
        }