public override UITableViewCell GetCell (UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath)
			{
				var section = root.Sections [indexPath.Section];
				var element = section.Elements [indexPath.Row];
				
				return element.GetCell (tableView);
			}
 /// <summary>
 /// Called when the touches are cancelled due to a phone call, etc.
 /// </summary>
 public override void TouchesCancelled(MonoTouch.Foundation.NSSet touches, UIEvent evt)
 {
     base.TouchesCancelled (touches, evt);
     // we fail the recognizer so that there isn't unexpected behavior
     // if the application comes back into view
     base.State = UIGestureRecognizerState.Failed;
 }
        protected override MonoTouch.UIKit.UITableViewCell GetCellImpl(MonoTouch.UIKit.UITableView tv)
        {
            //Implement binding of Title property in the business object to Caption propery of String Element
            this.Bind(MvxBindingTouchView, DataContext, "{'Caption':{'Path':'Title'}}");

            return base.GetCellImpl(tv);
        }
        /// <summary>
        /// Called by the TableView to get the actual UITableViewCell to render for the particular section and row
        /// </summary>
        /*
         * public override UITableViewCell GetCell
           (UITableView tableView, NSIndexPath indexPath)
        {
           TDBadgedCell cell = new TDBadgedCell (UITableViewCellStyle.Subtitle, "Cell");
           cell.TextLabel.Text = contents[indexPath.Row].Title;
           cell.TextLabel.Font = UIFont.BoldSystemFontOfSize (14);

           cell.DetailTextLabel.Text = contents[indexPath.Row].Detail;
           cell.DetailTextLabel.Font = UIFont.SystemFontOfSize (13);

           cell.Accessory = UITableViewCellAccessory.DisclosureIndicator;
           cell.BadgeNumber = Convert.ToInt32 (contents[indexPath.Row].Badge);

           if (indexPath.Row == 1)
          cell.BadgeColor = UIColor.FromRGBA (1.000f, 0.397f, 0.419f, 1.000f);
           if (indexPath.Row == 2)
          cell.BadgeColor = UIColor.FromWhiteAlpha (0.783f, 1.000f);
           return cell;
        }
         */
        public override UITableViewCell GetCell(UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath)
        {
            Console.WriteLine ("Calling Get Cell, isEditing:" + tableView.Editing);

            //---- declare vars
            TDBadgedCell cell = (TDBadgedCell)tableView.DequeueReusableCell (cellIdentifier);

            //---- if there are no cells to reuse, create a new one
            if (cell == null)
                cell = new TDBadgedCell (UITableViewCellStyle.Subtitle, cellIdentifier);

            //---- set the item text
            cell.TextLabel.Text = tableItems [indexPath.Section].Items [indexPath.Row].activityType.activityTypeName;
            DateTime dd = Tools.ConvertJavaMiliSecondToDateTime (tableItems [indexPath.Section].Items [indexPath.Row].lastDate);

            if (tableItems [indexPath.Section].Items [indexPath.Row].lastDate > 0) {
                cell.DetailTextLabel.Text = dd.ToLongDateString () + " - " + dd.ToShortTimeString();
                cell.DetailTextLabel.Font = UIFont.SystemFontOfSize (11);
                cell.Accessory = UITableViewCellAccessory.DetailDisclosureButton;

            }
            UIImage img = UIImage.FromFile ("Images/258-checkmark.png");
            cell.ImageView.Image = img;
            cell.BadgeNumber = Convert.ToInt32 (tableItems [indexPath.Section].Items [indexPath.Row].total);

            if (indexPath.Row == 1)
                cell.BadgeColor = UIColor.FromRGBA (1.000f, 0.397f, 0.419f, 1.000f);
            if (indexPath.Row == 2)
                cell.BadgeColor = UIColor.FromWhiteAlpha (0.783f, 1.000f);
            if (indexPath.Row == 3)
                cell.BadgeColor = UIColor.FromRGBA (1.000f, 0.333f, 0.666f, 1.000f);

            return cell;
        }
            public override UITableViewCell GetCell(UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath)
            {
                if (indexPath.Section < _viewModel.UpcomingSlots.Count)
                {
                    var cell = tableView.DequeueReusableCell(OVERVIEW_SCHEDULE_CELL)
                                ?? new UITableViewCell(UITableViewCellStyle.Subtitle, OVERVIEW_SCHEDULE_CELL);
                    var session = _viewModel.UpcomingSlots[indexPath.Section].Sessions[indexPath.Row];

                    cell.TextLabel.Text = session.Title;

                    if (string.IsNullOrEmpty(session.Speaker.Name))
                        cell.DetailTextLabel.Text = "Room: " + session.Room;
                    else
                        cell.DetailTextLabel.Text = string.Format("Room: {0}, {1}", session.Room, session.Speaker.Name);

                    cell.Accessory = UITableViewCellAccessory.DisclosureIndicator;

                    return cell;
                }
                else
                {
                    var cell = tableView.DequeueReusableCell(OVERVIEW_LINK_CELL)
                                ?? new UITableViewCell(UITableViewCellStyle.Default, OVERVIEW_LINK_CELL);

                    cell.TextLabel.Text = "Full Schedule";
                    cell.Accessory = UITableViewCellAccessory.DisclosureIndicator;

                    return cell;
                }
            }
        public override UITableViewCell GetCell (UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath)
        {
            var item = this.Data[indexPath.Row] as Stock;

            if (item == null)
            {
                return base.GetCell (tableView, indexPath);
            }

            var cellProvider = tableView as ITableCellProvider;

            if (cellProvider != null)
            {
                return cellProvider.GetCell (item);
            }

            var cell = tableView.DequeueReusableCell(StockCell.Key) as StockCell;

            if (cell == null)
            {
                cell = StockCell.Create();
                //var views = NSBundle.MainBundle.LoadNib("StockTableCell", cell, null);
                //cell = Runtime.GetNSObject( views.ValueAt(0) ) as StockTableCell;
            }

            cell.Bind (item);

            return cell;
        }
		/// <summary>
		/// Called by the TableView to get the actual UITableViewCell to render for the particular row
		/// </summary>
		public override UITableViewCell GetCell (UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath)
		{
			// request a recycled cell to save memory
			UITableViewCell cell = tableView.DequeueReusableCell (cellIdentifier);

			// UNCOMMENT one of these to use that style
			var cellStyle = UITableViewCellStyle.Default;
//			var cellStyle = UITableViewCellStyle.Subtitle;
//			var cellStyle = UITableViewCellStyle.Value1;
//			var cellStyle = UITableViewCellStyle.Value2;

			// if there are no cells to reuse, create a new one
			if (cell == null) {
				cell = new UITableViewCell (cellStyle, cellIdentifier);
			}

			cell.TextLabel.Text = tableItems[indexPath.Row].Heading;
			
			// Default style doesn't support Subtitle
			if (cellStyle == UITableViewCellStyle.Subtitle 
			   || cellStyle == UITableViewCellStyle.Value1
			   || cellStyle == UITableViewCellStyle.Value2) {
				cell.DetailTextLabel.Text = tableItems[indexPath.Row].SubHeading;
			}
			
			// Value2 style doesn't support an image
			if (cellStyle != UITableViewCellStyle.Value2)
				cell.ImageView.Image = UIImage.FromFile ("Images/" +tableItems[indexPath.Row].ImageName);
			
			return cell;
		}
partial         void showWindow(MonoTouch.Foundation.NSObject sender)
        {
            hud = BindingLibrarySDK.MBProgressHUD.ShowHUDAddedTo(this.View, true);
            hud.Show(true);
            hud.LabelText = "加载中...";
            hud.Hide(true, 1); // hide hud after 1s
        }
        public MonoTouch.UIKit.UITableViewCell GetCell(MonoTouch.UIKit.UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath)
        {
            if (VM.CanLoadMore && !VM.IsBusy && (indexPath.Row == VM.Members.Count - 1))
                VM.LoadMoreCommand.Execute (null);

            return MainTableView.Source.GetCell (tableView, indexPath);
        }
		public string TitleForHeader (MonoTouch.UIKit.UITableView tableView, int section)
		{
			if (section == 1)
				return "Right Drawer Width";
			else
				return base.TitleForHeader (tableView, section);
		}
 public override MonoTouch.UIKit.UITableViewCell GetCell(MonoTouch.UIKit.UITableView tv)
 {
     var cell = base.GetCell (tv);
     cell.TextLabel.Font = AppDelegate.Font;
     cell.TextLabel.TextColor = UIColor.Black;
     return cell;
 }
        public override UITableViewCell GetCell(UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath)
        {
            ShopsTableCell cell = new ShopsTableCell(cellIdentifier);
            try
            {
                cell = tableView.DequeueReusableCell(cellIdentifier) as ShopsTableCell;

                if (cell == null)
                    cell = new ShopsTableCell(cellIdentifier);
                if (!String.IsNullOrEmpty(tableItems[indexPath.Row].FirstPhotoUrl))
                {
                    NSUrl nsUrl = new NSUrl(tableItems[indexPath.Row].FirstPhotoUrl);
                    NSData data = NSData.FromUrl(nsUrl);

                    if (data != null)
                        cell.UpdateCell(tableItems[indexPath.Row].Name, tableItems[indexPath.Row].Description, tableItems[indexPath.Row].Price.ToString("N2"), new UIImage(data));
                    else
                        cell.UpdateCell(tableItems[indexPath.Row].Name, tableItems[indexPath.Row].Description, tableItems[indexPath.Row].Price.ToString("N2"), new UIImage());
                }
                else
                    cell.UpdateCell(tableItems[indexPath.Row].Name, tableItems[indexPath.Row].Description, tableItems[indexPath.Row].Price.ToString("N2"), new UIImage());

                OnGotCell();
                CellOn = indexPath.Row;
            }
            catch (Exception exception)
            {
                ErrorHandler.Save(exception, MobileTypeEnum.iPhone);
            }
            return cell;
        }
		/// <summary>
		/// Called by the TableView to get the actual UITableViewCell to render for the particular section and row
		/// </summary>
		public override UITableViewCell GetCell (UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath)
		{
			//---- declare vars
			UITableViewCell cell = tableView.DequeueReusableCell (this._customCellIdentifier);
			CustomTableViewCell customCellController = null;
			
			//---- if there are no cells to reuse, create a new one
			if (cell == null)
			{
				customCellController = new CustomTableViewCell ();
				// retreive the cell from our custom cell controller
				cell = customCellController.Cell;
				// give the cell a unique ID, so we can match it up to the controller
				cell.Tag = Environment.TickCount;
				// store our controller with the unique ID we gave our cell
				this._cellControllers.Add (cell.Tag, customCellController);
			}
			else
			{
				// retreive our controller via it's unique ID
				customCellController = this._cellControllers[cell.Tag];
			}
			
			//---- create a shortcut to our item
			TagesgerichtBasicTableViewItem item = this._tableItems[indexPath.Section].Items[indexPath.Row];
			
			//---- set our cell properties
			customCellController.Heading = item.Name;
			customCellController.SubHeading = item.SubHeading;
			customCellController.Speisentext = item.Speisentext;
			
			//---- return the custom cell
			return cell;
		}
			public override void RowSelected (UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath)
			{
				var section = root.Sections [indexPath.Section];
				var element = section.Elements [indexPath.Row];

				element.Selected (container, tableView, indexPath);
			}
		public override UITableViewCell GetCell (UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath)
		{
			UITableViewCell cell = tableView.DequeueReusableCell(kTableViewCellIdentifier, indexPath);
			cell.TextLabel.Text = _visibleResults[indexPath.Row];

			return cell;
		}
 public override MonoTouch.UIKit.UITableViewCell GetCell(DialogViewController dvc, MonoTouch.UIKit.UITableView tv)
 {
     var cell =  base.GetCell (dvc, tv);
     cell.ImageView.Image = ImageStore.GetLocalProfilePicture(Friend.ID);
     cell.DetailTextLabel.Text = "Shot Count: " + Friend.HitCount;
     return cell;
 }
partial         void plusButtonClick(MonoTouch.Foundation.NSObject sender)
        {
            //NSError error;
            mapView.zoomIn();
            Console.WriteLine("xxx");
            Console.WriteLine(mapView.zoomLevel);
        }
Example #18
0
        /// <summary>
        /// Called by the TableView to get the actual UITableViewCell to render for the particular row
        /// </summary>
        public override UITableViewCell GetCell(UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath)
        {
            //			// request a recycled cell to save memory
            //			UITableViewCell cell = tableView.DequeueReusableCell (cellIdentifier);
            //			// if there are no cells to reuse, create a new one
            //			if (cell == null)
            //				cell = new UITableViewCell (UITableViewCellStyle.Default, cellIdentifier);
            //
            DCTCell cell = tableView.DequeueReusableCell (cellIdentifier) as DCTCell;

            if (cell == null)
                cell = new DCTCell ((MonoTouch.Foundation.NSString)cellIdentifier);

            //cell.Editing = true; // Make the cell deletable
            //cell.ShouldIndentWhileEditing = true;
            //cell.ShowingDeleteConfirmation = true;
            cell.TextLabel.Text = indexedTableItems[keys[indexPath.Section]][indexPath.Row];
            //cell.

            //			BlackLeatherTheme.Apply(cell);
            cell.Layer.CornerRadius = 7.0f;
            cell.Layer.MasksToBounds = true;
            cell.Layer.BorderWidth = 2.0f;
            cell.Layer.BorderColor = UIColor.FromRGBA (34f,139f,34f, 0.9f).CGColor;
            cell.TintColor = UIColor.Orange;
            cell.BackgroundColor = UIColor.FromRGBA (34f,139f,34f, 0.5f);
            return cell;
        }
Example #19
0
        public override void CommitEditingStyle(UITableView tableView, UITableViewCellEditingStyle editingStyle, MonoTouch.Foundation.NSIndexPath indexPath)
        {
            switch (editingStyle) {
            case UITableViewCellEditingStyle.Delete:
                // remove the item from the underlying data source
                this.RaiseTaskDeleted(indexPath.Row);
                tableItems.RemoveAt(indexPath.Row);
                // delete the row from the table
                tableView.DeleteRows (new NSIndexPath[] { indexPath }, UITableViewRowAnimation.Fade);

                break;

            case UITableViewCellEditingStyle.Insert:
                //---- create a new item and add it to our underlying data

                Item obj = new Item();
                obj.Name = "Inserted";
                obj.Description ="Placeholder";
            //				obj.imageFileName = "second.png";

                tableItems.Insert (indexPath.Row, obj);

                //---- insert a new row in the table
                tableView.InsertRows (new NSIndexPath[] { indexPath }, UITableViewRowAnimation.Fade);
                break;

            case UITableViewCellEditingStyle.None:
                Console.WriteLine ("CommitEditingStyle:None called");
                break;
            }
        }
partial         void scanPressed(MonoTouch.UIKit.UIBarButtonItem sender)
        {
            if (overlayController.ParentPicker == null)
            {
                BarcodePickerController picker = new BarcodePickerController ();

                // setup picker
                picker.Overlay = overlayController;
                picker.Delegate = new BarcodePickerDelegate (this);

                // Initialize with portrait mode as default
                picker.Orientation = UIImageOrientation.Up;

                // The active scanning region size is set in OverlayController.m
            }

            // Update barcode on/off settings
            overlayController.ParentPicker.ScanUPCE = enableUPCESwitch.On;
            overlayController.ParentPicker.ScanEAN8 = enableEAN8Switch.On;
            overlayController.ParentPicker.ScanEAN13 = enableEAN13Switch.On;
            overlayController.ParentPicker.ScanQRCODE = enableQRCodeSwitch.On;
            overlayController.ParentPicker.ScanCODE128 = enableCode128Switch.On;
            overlayController.ParentPicker.ScanCODE39 = enableCode39Switch.On;
            //overlayController.parentPicker.ScanDataMatrix = enableDataMatrixSwitch.On;
            overlayController.ParentPicker.ScanITF = enableITFSwitch.On;

            // Data matrix decoding does not work very well so it is disabled for now
            overlayController.ParentPicker.ScanDATAMATRIX = false;

            // hide the status bar
            UIApplication.SharedApplication.StatusBarHidden = true;

            // Show the scanner overlay
            this.PresentModalViewController (overlayController.ParentPicker, true);
        }
		public void RowSelected (MonoTouch.UIKit.UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath){
			if (indexPath.Section == 1) {
				MMDrawerController_UIViewController.Mm_drawerController.SetMaximumLeftDrawerWidth ((float)this.DrawerWidths.ValueAt ((uint)indexPath.Row).ToInt32 (), true, null);
			} else {
				base.RowSelected (tableView, indexPath);
			}
		}
        public override float GetHeightForRow(UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath)
        {
            if (ExpandedPath != null && indexPath.Equals(ExpandedPath) && indexPath.Row != _messages.Count)
                return 160;

            return 80;
        }
        public override void WireToViewController(MonoTouch.UIKit.UIViewController viewController, 
		                                           CEInteractionOperation operation)
        {
            this.operation = operation;
            this.viewController = viewController;
            PrepareGestureRecognizer (viewController.View);
        }
		async partial void SaveRecord (MonoTouch.UIKit.UIButton sender)
		{
			if (nameTextField.Text.Length < 1) {
				nameTextField.ResignFirstResponder ();
				return;
			}

			var saveLocation = new CLLocation (pin.Coordinate.Latitude, pin.Coordinate.Longitude);
			var record = await CloudManager.AddRecordAsync (nameTextField.Text, saveLocation);

			if (record == null) {
				Console.WriteLine ("Error: null returned on save");
				return;
			}

			nameTextField.Text = string.Empty;
			nameTextField.ResignFirstResponder ();

			var alert = UIAlertController.Create ("CloudKitAtlas", "Saved record", UIAlertControllerStyle.Alert);
			alert.AddAction (UIAlertAction.Create ("OK", UIAlertActionStyle.Default, (act) => {
				DismissViewController (true, null);
			}));

			PresentViewController (alert, true, null);
		}
partial         void Button1click(MonoTouch.Foundation.NSObject sender)
        {
            var btn = (UIButton)sender;
            var btnTag = btn.Tag;

            UIView.BeginAnimations(string.Empty);
            UIView.SetAnimationCurve(UIViewAnimationCurve.EaseInOut);
            UIView.SetAnimationDuration(Duration);

            switch (btnTag) {
                case 101:
                    UIView.SetAnimationTransition(UIViewAnimationTransition.CurlUp, this.View, true);
                    break;
                case 102:
                    UIView.SetAnimationTransition(UIViewAnimationTransition.CurlDown, this.View, true);
                    break;
                case 103:
                    UIView.SetAnimationTransition(UIViewAnimationTransition.FlipFromRight, this.View, true);
                    break;
                case 104:
                    UIView.SetAnimationTransition(UIViewAnimationTransition.FlipFromLeft, this.View, true);
                    break;
            }

            var greenImageViewIndex = Array.IndexOf(this.View.Subviews, this.GreenImageView);
            var redImageViewIndex = Array.IndexOf(this.View.Subviews, this.RedImageView);

            this.View.ExchangeSubview(greenImageViewIndex, redImageViewIndex);

            UIView.SetAnimationDelegate(this);
            UIView.CommitAnimations();
        }
		/// <summary>
		/// Event handler when the user clicks the Take a Photo button
		/// </summary>
		/// <param name='sender'>
		/// Sender
		/// </param>
		partial void takePhotoBtnClicked (MonoTouch.Foundation.NSObject sender)
		{
			Console.WriteLine("takePhotoBtnClicked");
			
			picker = new MediaPicker ();
			
			// Check if a camera is available and photos are supported on this device
			if (!picker.IsCameraAvailable || !picker.PhotosSupported)
			{
				ShowUnsupported();
				return;
			}

			// Call TakePhotoAsync, which gives us a Task<MediaFile>
			picker.TakePhotoAsync (new StoreCameraMediaOptions
			{
				Name = "test.jpg",
				Directory = "MediaPickerSample"
			})
			.ContinueWith (t => // Continue when the user has taken a photo
			{
				if (t.IsCanceled) // The user canceled
					return;
					
				// Show the photo the user took
				InvokeOnMainThread( delegate {
					UIImage image = UIImage.FromFile(t.Result.Path);
					this.imageView.Image = image;	
				});
			});
		}
        /// <summary>
        /// Called when the fingers move
        /// </summary>
        public override void TouchesMoved(MonoTouch.Foundation.NSSet touches, UIEvent evt)
        {
            base.TouchesMoved (touches, evt);

            // if we haven't already failed
            if(base.State != UIGestureRecognizerState.Failed) {

                // get the current and previous touch point
                PointF newPoint = (touches.AnyObject as UITouch).LocationInView (View);
                PointF previousPoint = (touches.AnyObject as UITouch).PreviousLocationInView (View);

                // if we're not already on the upstroke
                if(!strokeUp) {

                    // if we're moving down, just continue to set the midpoint at
                    // whatever point we're at. when we start to stroke up, it'll stick
                    // as the last point before we upticked
                    if (newPoint.X >= previousPoint.X && newPoint.Y >= previousPoint.Y)
                        midpoint = newPoint;
                    // if we're stroking up (moving right x and up y [y axis is flipped])
                    else if (newPoint.X >= previousPoint.X && newPoint.Y <= previousPoint.Y)
                        strokeUp = true;
                    // otherwise, we fail the recognizer
                    else
                        base.State = UIGestureRecognizerState.Failed;
                }
            }

            Console.WriteLine (base.State.ToString ());
        }
		/// <summary>
		/// Event handler when the user clicks the Pick a Photo button
		/// </summary>
		/// <param name='sender'>
		/// Sender
		/// </param>
		partial void pickPhotoBtnClicked (MonoTouch.Foundation.NSObject sender)
		{
			Console.WriteLine("pickPhotoBtnClicked");
			
			picker = new MediaPicker ();
			
			// Check if photos are supported on this device
			if (!picker.PhotosSupported)
			{
				ShowUnsupported();
				return;
			}
			
			// Call PickPhotoAsync, which gives us a Task<MediaFile>
			picker.PickPhotoAsync ()
			.ContinueWith (t => // Continue when the user has picked a photo
			{
				if (t.IsCanceled) // The user canceled
					return;
					
				// Show the photo the user selected
				InvokeOnMainThread( delegate {
					UIImage image = UIImage.FromFile(t.Result.Path);
					this.imageView.Image = image;	
				});
			});
		}
Example #29
0
		public virtual bool WillFinishLaunching (UIApplication application, MonoTouch.Foundation.NSDictionary launchOptions){
			UIViewController leftSideDrawerViewController = new MMExampleLeftSideDrawerViewController ();
			UIViewController centerViewController = new MMExampleCenterTableViewController ();
			UIViewController rightSideDrawerViewController = new UIViewController ();// new MMExampleRightSideDrawerViewController ();

			UINavigationController navigationController = new MMNavigationController ();
			navigationController.ViewControllers = new UIViewController[]{ centerViewController };
			navigationController.RestorationIdentifier = "MMExampleCenterNavigationControllerRestorationKey";

			UINavigationController leftSideNavController = new MMNavigationController ();
			leftSideNavController.ViewControllers = new UIViewController[]{ leftSideDrawerViewController };
			leftSideNavController.RestorationIdentifier = "MMExampleLeftNavigationControllerRestorationKey";

			this.DrawerController = new MMDrawerController.MMDrawerController ();
			DrawerController.CenterViewController = navigationController;
			DrawerController.LeftDrawerViewController = leftSideNavController;

			DrawerController.RestorationIdentifier = "MMDrawer";
			DrawerController.MaximumRightDrawerWidth = 200.0F;
			DrawerController.OpenDrawerGestureModeMask = MMOpenDrawerGestureMode.BezelPanningCenterView;
			DrawerController.CloseDrawerGestureModeMask = MMCloseDrawerGestureMode.BezelPanningCenterView;

			//DrawerController.DrawerVisualStateBlock = new Action (DrawerAction (DrawerController, new MMDrawerSide(), 100F));

			this.Window = new UIWindow (UIScreen.MainScreen.Bounds);
			UIColor tintColor = new UIColor (29.0F / 255.0F, 173.0F / 255.0F, 234.0F / 255.0F, 1.0F);
			this.Window.TintColor = tintColor;

			this.Window.RootViewController = this.DrawerController;

			return true;
		}
 public override void ovrAction(MonoTouch.Foundation.NSObject sender)
 {
     if(this.Clicked != null)
     {
         this.Clicked(this, null);
     }
 }