示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MKInputBoxView.MKInputBoxView"/> class.
        /// </summary>
        /// <param name="boxType">Box type.</param>
        public XamDialogView(XamDialogType boxType)
            : base()
        {
            var actualBoxHeight = 155.0f;
            var window          = UIApplication.SharedApplication.Windows [0];
            var allFrame        = window.Frame;

            var boxFrame = new CGRect(0, 0, Math.Min(325, window.Frame.Size.Width - 50), actualBoxHeight);

            this.Frame = allFrame;

            this.BoxType          = boxType;
            this.BackgroundColor  = UIColor.FromWhiteAlpha(1.0f, 0.0f);
            this.AutoresizingMask = UIViewAutoresizing.FlexibleHeight | UIViewAutoresizing.FlexibleHeight;
            this.ActualBox        = new UIView(boxFrame);

            this.ActualBox.Center = new CGPoint(window.Center.X, window.Center.Y);

            this.Center = new CGPoint(window.Center.X, window.Center.Y);

            this.Add(this.ActualBox);
        }
 /// <summary>
 /// Boxs the type of the of.
 /// </summary>
 /// <returns>The of type.</returns>
 /// <param name="boxType">Box type.</param>
 public static XamDialogView BoxOfType(XamDialogType boxType)
 {
     return(null);
 }
示例#3
0
		/// <summary>
		/// Boxs the type of the of.
		/// </summary>
		/// <returns>The of type.</returns>
		/// <param name="boxType">Box type.</param>
		public static XamDialogView BoxOfType (XamDialogType boxType)
		{
			return null;
		}
示例#4
0
		/// <summary>
		/// Initializes a new instance of the <see cref="MKInputBoxView.MKInputBoxView"/> class.
		/// </summary>
		/// <param name="boxType">Box type.</param>
		public XamDialogView (XamDialogType boxType)
			: base ()
		{
			var actualBoxHeight = 155.0f;
			var window = UIApplication.SharedApplication.Windows[UIApplication.SharedApplication.Windows.Length - 1];

			var allFrame = window.Frame;

			var boxFrame = new CGRect (0, 0, Math.Min (325, window.Frame.Size.Width - 50), actualBoxHeight);

			this.Frame = allFrame;

			this.BoxType = boxType;
			this.BackgroundColor = UIColor.FromWhiteAlpha (1.0f, 0.0f);
			this.AutoresizingMask = UIViewAutoresizing.FlexibleHeight | UIViewAutoresizing.FlexibleHeight;
			this.ActualBox = new UIView (boxFrame);

			this.ActualBox.Center = new CGPoint (window.Center.X, window.Center.Y);

			this.Center = new CGPoint (window.Center.X, window.Center.Y);

			this.Add (this.ActualBox);

		}