Exemplo n.º 1
0
        public void Show(Object sender, EventArgs e)
        {
            // >> alert-custom-content-cs
            TKAlert alert = new TKAlert();

            alert.Style.HeaderHeight = 0;
            alert.TintColor          = new UIColor(0.5f, 0.7f, 0.2f, 1f);
            alert.CustomFrame        = new CGRect((this.View.Frame.Size.Width - 300) / 2, 100, 300, 250);
            AlertCustomContentView view = new AlertCustomContentView(new CGRect(0, 0, 300, 210));

            alert.ContentView.AddSubview(view);
            // << alert-custom-content-cs

            alert.AllowParallaxEffect = true;
            alert.Style.CenterFrame   = true;

            // >> alert-animation-cs
            alert.Style.ShowAnimation    = TKAlertAnimation.Scale;
            alert.Style.DismissAnimation = TKAlertAnimation.Scale;
            // << alert-animation-cs

            // >> alert-tint-dim-cs
            alert.Style.BackgroundDimAlpha  = 0.5f;
            alert.Style.BackgroundTintColor = UIColor.LightGray;
            // << alert-tint-dim-cs

            // >> alert-anim-duration-cs
            alert.AnimationDuration = 0.5f;
            // << alert-anim-duration-cs

            alert.AddActionWithTitle("Done", (TKAlert al, TKAlertAction action) => true);
            alert.Show(true);
        }
Exemplo n.º 2
0
		public void Show(Object sender, EventArgs e)
		{
			TKAlert alert = new TKAlert ();

			alert.Style.HeaderHeight = 0;
			alert.TintColor = new UIColor (0.5f, 0.7f, 0.2f, 1f);
			alert.CustomFrame  = new CGRect ((this.View.Frame.Size.Width - 300) / 2, 100, 300, 250);
			alert.AllowParallaxEffect = true;
			alert.Style.CenterFrame = true;

			AlertCustomContentView view = new AlertCustomContentView (new CGRect(0, 0, 300, 210));
			alert.ContentView.AddSubview (view);
			alert.AddActionWithTitle("Done", (TKAlert al, TKAlertAction action) => true) ;

			alert.Show (true);
		}
Exemplo n.º 3
0
        public void Show(Object sender, EventArgs e)
        {
            TKAlert alert = new TKAlert();

            alert.Style.HeaderHeight  = 0;
            alert.TintColor           = new UIColor(0.5f, 0.7f, 0.2f, 1f);
            alert.CustomFrame         = new CGRect((this.View.Frame.Size.Width - 300) / 2, 100, 300, 250);
            alert.AllowParallaxEffect = true;
            alert.Style.CenterFrame   = true;

            AlertCustomContentView view = new AlertCustomContentView(new CGRect(0, 0, 300, 210));

            alert.ContentView.AddSubview(view);
            alert.AddActionWithTitle("Done", (TKAlert al, TKAlertAction action) => true);

            alert.Show(true);
        }
Exemplo n.º 4
0
		public CalendarDelegate(AlertCustomContentView owner) 
		{
			this.owner = owner;
		}
 public CalendarDelegate(AlertCustomContentView owner)
 {
     this.owner = owner;
 }