示例#1
0
        void PhoneInit()
        {
            var tabarController = Window.RootViewController as UITabBarController;

            var nav1 = tabarController.ViewControllers [0] as UINavigationController;
            var icon1 = UIImage.FromFile ("icon1.png");
            var item1 = new UITabBarItem ("Recipes", icon1, 0);
            item1.SetFinishedImages (icon1, icon1);
            nav1.TabBarItem = item1;

            var nav2 = tabarController.ViewControllers [1] as UINavigationController;
            var icon2 = UIImage.FromFile ("icon2.png");
            var item2 = new UITabBarItem ("Steps", icon2, 1);
            item2.SetFinishedImages (icon2, icon2);
            nav2.TabBarItem = item2;

            var nav3 = tabarController.ViewControllers [2] as UIViewController;
            var icon3 = UIImage.FromFile ("icon3.png");
            var item3 = new UITabBarItem ("Elements", icon3, 2);
            item3.SetFinishedImages (icon3, icon3);
            nav3.TabBarItem = item3;

            var nav4 = tabarController.ViewControllers [3] as UIViewController;
            var item4 = new UITabBarItem ("License", icon3, 3);
            item4.SetFinishedImages (icon3, icon3);
            nav4.TabBarItem = item4;
        }
 void ReleaseDesignerOutlets()
 {
     if (tbNearby != null) {
         tbNearby.Dispose ();
         tbNearby = null;
     }
 }
		public override void AwakeFromNib ()
		{
			base.AwakeFromNib ();

			Title = Strings.Messages.TabBarTitle;
			TabBarItem = new UITabBarItem(Strings.Messages.TabBarTitle, UIImage.FromBundle("tabIconMessages"), 1);
		}
		void ReleaseDesignerOutlets ()
		{
			if (tabBarItem != null) {
				tabBarItem.Dispose ();
				tabBarItem = null;
			}
		}
 public SecondViewController()
 {
     // Tab bar item
     var item = new UITabBarItem();
     item.Title = "RX Demo - Time Flies";
     TabBarItem = item;
 }
		public override void AwakeFromNib ()
		{
			base.AwakeFromNib ();

			Title = Strings.Profile.TabBarTitle;
			TabBarItem = new UITabBarItem(Strings.Profile.TabBarTitle, UIImage.FromBundle("tabIconProfile"), 3);
		}
		void ReleaseDesignerOutlets ()
		{
			if (tabBarItemLief != null) {
				tabBarItemLief.Dispose ();
				tabBarItemLief = null;
			}
		}
		public override void AwakeFromNib ()
		{
			base.AwakeFromNib ();

			Title = Strings.Friends.TabBarTitle;
			TabBarItem = new UITabBarItem(Strings.Friends.TabBarTitle, UIImage.FromBundle("tabIconFriend"), 2);
		}
		public ProfileViewController (IntPtr handle)
			: base (handle)
		{
            TabBarItem = new UITabBarItem(Strings.Profile.TabBarTitle, UIImage.FromBundle("tabIconProfile"), 3);

			var icon = UIImage.FromBundle ("toolbarSettingsIcon");
			NavigationItem.RightBarButtonItem = new UIBarButtonItem (icon, UIBarButtonItemStyle.Plain, OnSettingsClicked);
		}
 // PRIVATE METHODS /////////////////////////////////////////////
 private void Add(UITabBarItem item, UIViewController view_controller)
 {
     Need_To_Call_Done = true;
     item.Tag = Items.Count + 1;
     view_controller.TabBarItem = item;
     Items.Add(item);
     Controllers.Add(view_controller);
 }
		void ConfigureTabBarItemWithImageName (string imageUrl, string title, UIViewController viewController)
		{
			var icon = UIImage.FromFile (imageUrl);
			var tabBarItem = new UITabBarItem (title, icon, 0);

			tabBarItem.SetFinishedImages (icon, icon);

			viewController.TabBarItem = tabBarItem;
		}
        public ModuleViewController(Plugin.Iconize.IIconModule module, UICollectionViewLayout layout)
            : base(layout)
        {
            _module = module;

            CollectionView.BackgroundColor = UIColor.White;

            TabBarItem = new UITabBarItem(module.FontFamily, null, 0);
        }
 public ProductsListScreen(IEnumerable<Product> products)
     : base("ProductsListScreen", null)
 {
     this.products = products.ToList();
     TabBarItem = new UITabBarItem
     {
         Title = "List",
         Image = UIImage.FromFile("Images/list_64.png")
     };
 }
示例#14
0
 public ProductsMapScreen(Position position, IEnumerable<Product> products)
     : base("ProductsMapScreen", null)
 {
     this.position = position;
     this.products = products;
     TabBarItem = new UITabBarItem
     {
         Title = "Map",
         Image = UIImage.FromFile("Images/globe_64.png")
     };
 }
		public SecondViewController (IntPtr handle) : base (handle)
		{
			// This doesn't work, but should work
//			TabBarItem.Title = "Second";
//			TabBarItem.Image = UIImage.FromBundle ("tabIconPoints");
//			TabBarItem.SelectedImage = UIImage.FromBundle ("tabIconPoints");

			// This doesn't work, but should work
			TabBarItem = new UITabBarItem (
				"Second",
				UIImage.FromBundle ("tabIconPoints"),
				UIImage.FromBundle ("tabIconPoints")
			);
		}
 public override void ItemSelected(UITabBar tabbar, UITabBarItem item)
 {
     var controller = ViewControllers.SingleOrDefault(x => x.TabBarItem == item);
     if (controller != null)
     {
         if (controller is TopMoviesNavigationController)
         {
             var selectedController = (TopMoviesNavigationController)controller;
             if(!selectedController.IsCategorySelected)
             {
                 this.SetMenuNavigationButton();
             }
         } 
     }
 }
 void UpdateItem(UITabBarItem item, string icon)
 {
     if (item == null)
         return;
     try
     {
         icon = icon.Replace(".png", "_selected.png");
         if(item?.SelectedImage?.AccessibilityIdentifier == icon)
             return;
         item.SelectedImage = UIImage.FromBundle(icon);
         item.SelectedImage.AccessibilityIdentifier = icon;
     }
     catch(Exception ex)
     {
         Console.WriteLine("Unable to set selected icon: " + ex);
     }
 }
示例#18
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            Current = this;
            TabBarController = new PBTabBarController ();

            window = new UIWindow (UIScreen.MainScreen.Bounds);

            ConfigureDatabase ();
            ConfigureAppearanceSettings ();
            ConfigureThirdPartyLibraries ();
            ConfigureiRate ();

            var verses = new UINavigationController (new VersesTableViewController ());
            var memorization = new UINavigationController (new MemorizationViewController ());

            var versesItem = new UITabBarItem { Image = UIImage.FromFile (Images.VersesTab) };
            var memorizationItem = new UITabBarItem { Image = UIImage.FromFile (Images.MemorizationTab) };

            verses.TabBarItem = versesItem;
            memorization.TabBarItem = memorizationItem;

            TabBarController.ViewControllers = new UIViewController[] {
                verses,
                memorization
            };
            TabBarController.TabBar.BackgroundImage = UIImage.FromFile (Images.TabBarBackground);

            window.RootViewController = TabBarController;
            window.MakeKeyAndVisible ();

            UIApplication.SharedApplication.RegisterForRemoteNotificationTypes (UIRemoteNotificationType.Alert | UIRemoteNotificationType.Badge
                | UIRemoteNotificationType.Sound);
            app.SetStatusBarStyle (UIStatusBarStyle.LightContent, true);

            return true;
        }
示例#19
0
 //
 // StyleMode
 //
 public static PXStylingMode GetStyleMode(this UITabBarItem view)
 {
     return(PixateFreestyle.GetStyleMode(view));
 }
示例#20
0
 public void SetControl(object control)
 {
     View = (UITabBarItem)control;
 }
示例#21
0
 public static void SetStyleMode(this UITabBarItem view, PXStylingMode mode)
 {
     PixateFreestyle.SetStyleMode(view, mode);
 }
示例#22
0
 public static void UpdateStylesNonRecursively(this UITabBarItem view)
 {
     PixateLib.PXEngine.UpdateStylesNonRecursively(view);
 }
		public override void ItemSelected (UITabBar tabbar, UITabBarItem item)
		{
			var userDefaults = NSUserDefaults.StandardUserDefaults;
			userDefaults [StartingTabIndexKey] = new NSNumber ((nint)Array.IndexOf (tabbar.Items, item));
		}
示例#24
0
 //========================================================================================================================================
 //  PUBLIC CLASS PROPERTIES
 //========================================================================================================================================
 //========================================================================================================================================
 //  Constructor
 //========================================================================================================================================
 /// <summary>
 /// Initializes a new instance of the <see cref="TabbedNavigtionControllers.TabThreeNavController"/> class.
 /// We must instanciate the UITabBarItem for this UINavigationController here so that when we go to
 /// set the initial SelectedIndex of the UITabBarController it exists.
 /// </summary>
 public TabThreeNavController()
 {
     TabBarItem = new UITabBarItem(UITabBarSystemItem.Downloads, 2);
 }
示例#25
0
 //
 // StyleMode
 //
 public static PXStylingMode GetStyleMode(this UITabBarItem view)
 {
     return(PixateLib.PXEngine.GetStyleMode(view));
 }
 public void OnUITabBarClick(UITabBar bar, UITabBarItem item)
 {
     SelectItem(item.index);
 }
 public override void ItemSelected(UITabBar tabbar, UITabBarItem item)
 {
     //base.ItemSelected(tabbar, item);
     SetMenuNavigationButton();
 }
 public override void ItemSelected(UITabBar tabbar, UITabBarItem item)
 {
     //base.ItemSelected(tabbar, item);
     SetMenuNavigationButton();
 }
示例#29
0
		public SettingsRootDialogController()
			: base (new SettingsDialogController())
		{
			TabBarItem = new UITabBarItem ("Settings", null, 0);
		}
示例#30
0
 /// <summary>
 /// Loads the image into given imageView using defined parameters.
 /// IMPORTANT: It throws image loading exceptions - you should handle them
 /// </summary>
 /// <returns>An awaitable Task.</returns>
 /// <param name="parameters">Parameters for loading the image.</param>
 /// <param name="item">Image view that should receive the image.</param>
 public static Task <IScheduledWork> IntoAsync(this TaskParameter parameters, UITabBarItem item)
 {
     return(parameters.IntoAsync(param => param.Into(item)));
 }
 public void Include(UITabBarItem item)
 {
     item.BadgeColor = UIColor.Red;
     item.BadgeValue = "badge";
 }
示例#32
0
        public override void ItemSelected(UITabBar tabbar, UITabBarItem item)
        {
            var userDefaults = NSUserDefaults.StandardUserDefaults;

            userDefaults [StartingTabIndexKey] = new NSNumber((nint)Array.IndexOf(tabbar.Items, item));
        }
示例#33
0
 //
 // StyleId
 //
 public static string GetStyleId(this UITabBarItem view)
 {
     return(PixateFreestyle.GetStyleId(view));
 }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            // https://developer.xamarin.com/Recipes/ios/Content_Controls/Tab_Bar/Create_a_Tab_Bar/

            _tabBarItemCalendar = new UITabBarItem("Calendar", UIImage.FromBundle("TabCalendar"), UIImage.FromBundle("TabCalendarSelected"));

            _tabBarItemAgenda = new UITabBarItem("Agenda", UIImage.FromBundle("TabAgenda"), UIImage.FromBundle("TabAgendaSelected"));

            _tabBarItemSchedule = new UITabBarItem("Schedule", UIImage.FromBundle("TabSchedule"), UIImage.FromBundle("TabScheduleSelected"));

            _tabBarItemClasses = new UITabBarItem("Classes", UIImage.FromBundle("TabClasses"), UIImage.FromBundle("TabClassesSelected"));

            _tabBarItemMore = new UITabBarItem("More", UIImage.FromBundle("TabMore"), UIImage.FromBundle("TabMoreSelected"));

            _tabBar = new UITabBar()
            {
                TranslatesAutoresizingMaskIntoConstraints = false,
                Items = new UITabBarItem[]
                {
                    _tabBarItemCalendar,
                    _tabBarItemAgenda,
                    _tabBarItemSchedule,
                    _tabBarItemClasses,
                    _tabBarItemMore
                },
                //BarTintColor = ColorResources.PowerPlannerBlueChromeColor,
                //UnselectedItemTintColor = UIColor.White,
                //SelectedImageTintColor = UIColor.White
                SelectedImageTintColor = ColorResources.PowerPlannerAccentBlue
            };
            _tabBar.ItemSelected += new WeakEventHandler <UITabBarItemEventArgs>(_tabBar_ItemSelected).Handler;

            // Have to wrap tab bar in a view as per this: https://novemberfive.co/blog/apple-september-event-iphonex-apps/
            // Then that fixes the items getting squished on iPhone X
            var tabBarContainer = new UIView()
            {
                TranslatesAutoresizingMaskIntoConstraints = false
            };

            tabBarContainer.Add(_tabBar);

            _tabBar.StretchWidth(tabBarContainer);
            _tabBar.StretchHeight(tabBarContainer);

            base.Add(tabBarContainer);
            tabBarContainer.StretchWidth(base.View);
            if (UIDevice.CurrentDevice.CheckSystemVersion(11, 0))
            {
                NSLayoutConstraint.ActivateConstraints(new NSLayoutConstraint[]
                {
                    tabBarContainer.BottomAnchor.ConstraintEqualTo(this.View.SafeAreaLayoutGuide.BottomAnchor)
                });

                // We also add a bottom blur in the safe area, otherwise there's a blank white gap on iPhone X
                _bottomGlass = new BareUIBlurView()
                {
                    TranslatesAutoresizingMaskIntoConstraints = false
                };
                base.Add(_bottomGlass);
                _bottomGlass.StretchWidth(this.View);
                _bottomGlass.PinToBottom(this.View);
                NSLayoutConstraint.ActivateConstraints(new NSLayoutConstraint[]
                {
                    _bottomGlass.TopAnchor.ConstraintEqualTo(this.View.SafeAreaLayoutGuide.BottomAnchor)
                });
            }
            else
            {
                NSLayoutConstraint.ActivateConstraints(new NSLayoutConstraint[]
                {
                    tabBarContainer.BottomAnchor.ConstraintEqualTo(this.BottomLayoutGuide.GetBottomAnchor())
                });
            }
        }
示例#35
0
        public async void setupLayout()
        {
            await Task.Delay(TimeSpan.FromMilliseconds(2));

            //Console.WriteLine("View dimensions " + View.Bounds);
            //Console.WriteLine("Holder dimensions " + holderView.Bounds);
            //Console.WriteLine("Scroller dimensions " + infoScroller.Bounds);
            jobInfoButton = new UIButton(new CGRect(0, 40, .5 * View.Bounds.Width, 40));
            jobInfoButton.BackgroundColor = UIColor.White;
            jobInfoButton.SetTitle("Job Info", UIControlState.Normal);
            jobInfoButton.SetTitleColor(UIColor.Black, UIControlState.Normal);
            jobInfoButton.Font = UIFont.BoldSystemFontOfSize(15f);
            jobInfoHighlight   = new UILabel(new CGRect(0, 80, .5 * View.Bounds.Width, 5));
            jobInfoHighlight.BackgroundColor = UIColor.FromRGB(0, 174, 239);
            dataLogginButton = new UIButton(new CGRect(.5 * View.Bounds.Width, 40, .5 * View.Bounds.Width, 40));
            dataLogginButton.BackgroundColor = UIColor.LightGray;
            dataLogginButton.SetTitle("Data Logging", UIControlState.Normal);
            dataLogginButton.SetTitleColor(UIColor.Black, UIControlState.Normal);
            dataLogginButton.Font = UIFont.BoldSystemFontOfSize(15f);
            dataLoggingHighlight  = new UILabel(new CGRect(.5 * View.Bounds.Width, 80, .5 * View.Bounds.Width, 5));
            dataLoggingHighlight.BackgroundColor = UIColor.Black;

            editView = new EditJobView(infoScroller, frnJID);
            infoScroller.ContentSize = new CGSize(infoScroller.Bounds.Width, 1.5 * infoScroller.Bounds.Height);
            associateView            = new JobSessionView(infoScroller, frnJID);
            //notesView = new JobNotesView(infoScroller, frnJID);

            var infoTab = new UITabBarItem();

            infoTab.Tag   = 0;
            infoTab.Image = UIImage.FromBundle("ic_small_edit");
            infoTab.Title = Util.Strings.Job.JOBINFO;

            jobInfoButton.TouchUpInside += (sender, e) => {
                jobInfoButton.BackgroundColor    = UIColor.White;
                jobInfoHighlight.BackgroundColor = UIColor.FromRGB(0, 174, 239);

                dataLogginButton.BackgroundColor     = UIColor.LightGray;
                dataLoggingHighlight.BackgroundColor = UIColor.Black;

                NavigationItem.Title     = Util.Strings.Job.EDIT;
                infoScroller.ContentSize = new CGSize(infoScroller.Bounds.Width, 1.5 * infoScroller.Bounds.Height);

                saveButton.Hidden = false;
                associateView.sessionView.Hidden = true;
                //notesView.notesView.Hidden = true;
                editView.editView.Hidden = false;
            };

            dataLogginButton.TouchUpInside += (sender, e) => {
                jobInfoButton.BackgroundColor    = UIColor.LightGray;
                jobInfoHighlight.BackgroundColor = UIColor.Black;

                dataLogginButton.BackgroundColor     = UIColor.White;
                dataLoggingHighlight.BackgroundColor = UIColor.FromRGB(0, 174, 239);

                NavigationItem.Title     = Util.Strings.Job.EDITSESSIONS;
                infoScroller.ContentSize = new CGSize(infoScroller.Bounds.Width, infoScroller.Bounds.Height);
                saveButton.Hidden        = true;
                editView.editView.Hidden = true;
                //notesView.notesView.Hidden = true;
                associateView.sessionView.Hidden = false;
            };

            View.AddSubview(jobInfoButton);
            View.AddSubview(jobInfoHighlight);
            View.AddSubview(dataLogginButton);
            View.AddSubview(dataLoggingHighlight);

            infoScroller.AddSubview(editView.editView);
            infoScroller.AddSubview(associateView.sessionView);
            //infoScroller.AddSubview(notesView.notesView);
        }
示例#36
0
        /// <summary>
        /// Loads the image into given imageView using defined parameters.
        /// </summary>
        /// <param name="parameters">Parameters for loading the image.</param>
        /// <param name="item">Image view that should receive the image.</param>
        public static IScheduledWork Into(this TaskParameter parameters, UITabBarItem item)
        {
            var target = new UIBarItemTarget(item);

            return(parameters.Into(target));
        }
		public override void ItemSelected ( UITabBar tabbar , UITabBarItem item ) {
			var selectedIndex = Array.IndexOf ( tabbar.Items , item );
			PageRenderer.SelectedIndex = selectedIndex;
			PageRenderer.TabbedCarousel.CurrentPage = PageRenderer.TabbedCarousel.Children [ selectedIndex ];
			tabbar.BackgroundColor = PageRenderer.TabbedCarousel.Children [ selectedIndex ].BackgroundColor.ToUIColor ();
		}
示例#38
0
 public NewOperationController() : base("NewOperationController", null)
 {
     TabBarItem = new UITabBarItem("Добавить", UIImage.FromFile("Icons/plus.png"), 1);
 }
示例#39
0
 public static void SetStyleMode(this UITabBarItem view, PXStylingMode mode)
 {
     PixateLib.PXEngine.SetStyleMode(view, mode);
 }
示例#40
0
 public FriendsViewContoller(IntPtr handle)
     : base(handle)
 {
     TabBarItem = new UITabBarItem(Strings.Friends.TabBarTitle, UIImage.FromBundle("tabIconFriend"), 2);
 }
示例#41
0
 public static void UpdateStylesAsync(this UITabBarItem view)
 {
     PixateLib.PXEngine.UpdateStylesAsync(view);
 }
        private void UpdateTabBadgeText(UITabBarItem tabBarItem, Element element)
        {
            var text = TabBadge.GetBadgeText(element);

            tabBarItem.BadgeValue = string.IsNullOrEmpty(text) ? null : text;
        }
		public override void WillBeginCustomizingItems (UITabBar tabbar, UITabBarItem[] items)
		{
			base.WillBeginCustomizingItems (tabbar, items);
			Console.WriteLine (this.Tabbed);
		}
 public TimeFliesViewController()
 {
     var item = new UITabBarItem {Title = @"Time Flies"};
     TabBarItem = item;
     View = new TimeFliesView(View.Frame);
 }
示例#45
0
 public static void UpdateStylesAsync(this UITabBarItem view)
 {
     PixateFreestyle.UpdateStylesAsync(view);
 }
示例#46
0
        private void setstyle()
        {
            try
            {
                //-moz-linear-gradient(#981616, #410909) repeat scroll 0 0 #6D1010
                this.NavigationController.NavigationBar.TintColor = headerColor;

                this.NavigationItem.RightBarButtonItem = new UIBarButtonItem(UIBarButtonSystemItem.Search, delegate {
                    showSearchBox();
                });

                this.View.BackgroundColor = defaultBackgroundColor;
                // image_up
                // image_down
                UITabBarItem home = new UITabBarItem("Home", UIImage.FromFile("images/BarraHome.png"), 0);
                home.SetFinishedImages(UIImage.FromFile("images/mainBar/Barra_Home.png"), UIImage.FromFile("images/mainBar/Barra_Home.png"));
                UITabBarItem Servizi = new UITabBarItem("Servizi", null, 1);//130
                Servizi.SetFinishedImages(UIImage.FromFile("images/mainBar/Barra_Servizi.png"), UIImage.FromFile("images/mainBar/Barra_Servizi.png"));


                UITabBarItem NumeriUtili = new UITabBarItem("Numeri Utili", null, 2);//166

                NumeriUtili.SetFinishedImages(UIImage.FromFile("images/mainBar/Barra_Numeri_Utili.png"), UIImage.FromFile("images/mainBar/Barra_Numeri_Utili.png"));


                UITabBarItem Eventi = new UITabBarItem("Eventi", null, 3);

                Eventi.SetFinishedImages(UIImage.FromFile("images/mainBar/Barra_Eventi.png"), UIImage.FromFile("images/mainBar/Barra_Eventi.png"));


                UITabBarItem[] arrayA = new UITabBarItem[] { home, Servizi, NumeriUtili, Eventi };

                tabBar.Items = arrayA;

                tabBar.TintColor = UIColor.FromRGB(152, 22, 22);   //bottom bar
                //tabBar.TintColor =  UIColor.FromRGB (30, 40, 50);;

                if (!UserInterfaceIdiomIsPhone)
                {
                    /*
                     * UITextAttributes titleTextAttributes = new UITextAttributes();
                     * titleTextAttributes.Font = UIFont.FromName("TrebuchetMS-Bold", 20);
                     * tabBar.Items[0].SetTitleTextAttributes(titleTextAttributes,UIControlState.Normal);
                     * tabBar.Items[1].SetTitleTextAttributes(titleTextAttributes,UIControlState.Normal);
                     * tabBar.Items[2].SetTitleTextAttributes(titleTextAttributes,UIControlState.Normal);
                     * tabBar.Items[3].SetTitleTextAttributes(titleTextAttributes,UIControlState.Normal);
                     */
                }
                else
                {
                    /*
                     * UITextAttributes titleTextAttributes = new UITextAttributes();
                     * titleTextAttributes.Font = UIFont.FromName("TrebuchetMS-Bold", 18);
                     * tabBar.Items[0].SetTitleTextAttributes(titleTextAttributes,UIControlState.Normal);
                     * tabBar.Items[1].SetTitleTextAttributes(titleTextAttributes,UIControlState.Normal);
                     * tabBar.Items[2].SetTitleTextAttributes(titleTextAttributes,UIControlState.Normal);
                     * tabBar.Items[3].SetTitleTextAttributes(titleTextAttributes,UIControlState.Normal);
                     */
                }
                UITextAttributes titleTextAttributes = new UITextAttributes();
                //titleTextAttributes.Font = UIFont.FromName("TrebuchetMS-Bold", 18);
                titleTextAttributes.TextColor = UIColor.White;
                tabBar.Items[0].SetTitleTextAttributes(titleTextAttributes, UIControlState.Normal);
                tabBar.Items[1].SetTitleTextAttributes(titleTextAttributes, UIControlState.Normal);
                tabBar.Items[2].SetTitleTextAttributes(titleTextAttributes, UIControlState.Normal);
                tabBar.Items[3].SetTitleTextAttributes(titleTextAttributes, UIControlState.Normal);

                tabBar.Items [0].Title = "Home";
                tabBar.Items [1].Title = "Servizi";
                tabBar.Items [2].Title = "Numeri utili";
                tabBar.Items [3].Title = "Eventi";

                /*
                 * tabBar.Items [0].Title = "";
                 * tabBar.Items [1].Title = "";
                 * tabBar.Items [2].Title = "";
                 * tabBar.Items [3].Title = "";
                 */
                // myMap = new UiMapScreen (){dataPos = dataPos};

                tabBar.ItemSelected += delegate(object sender, UITabBarItemEventArgs e) {
                    switch (e.Item.Tag)
                    {
                    case 0:
                        this.NavigationController.PopToRootViewController(true);
                        break;

                    case 1:
                    {
                        this.NavigationController.PushViewController(new UiCategoryList()
                            {
                                cat_id = "130", Title = "Servizi"
                            }, true);
                    }
                    break;

                    case 2:
                    {
                        this.NavigationController.PushViewController(new UiCategoryList()
                            {
                                cat_id = "166", Title = "Numeri Utili"
                            }, true);
                    }
                    break;

                    case 3:
                    {
                        this.NavigationController.PushViewController(new UiEventsListController()
                            {
                                Title = "Eventi"
                            }, true);
                    }
                    break;
                    }
                };

                tblMain.BackgroundView  = null;
                tblMain.BackgroundColor = UIColor.Clear;
                tblMain.SeparatorStyle  = UITableViewCellSeparatorStyle.None;
            }
            catch
            {
            }
        }
示例#47
0
		public FriendsViewContoller (IntPtr handle)
			: base(handle)
		{
            TabBarItem = new UITabBarItem(Strings.Friends.TabBarTitle, UIImage.FromBundle("tabIconFriend"), 2);
		}
示例#48
0
 public static void UpdateStylesNonRecursivelyAsync(this UITabBarItem view)
 {
     PixateFreestyle.UpdateStylesNonRecursivelyAsync(view);
 }
示例#49
0
 public static void SetStyleId(this UITabBarItem view, string styleId)
 {
     PixateFreestyle.SetStyleId(view, styleId);
 }
示例#50
0
 public static void SetStyleCSS(this UITabBarItem view, string styleCss)
 {
     PixateLib.PXEngine.SetStyleCSS(view, styleCss);
 }
示例#51
0
 public static void SetStyleCSS(this UITabBarItem view, string styleCss)
 {
     PixateFreestyle.SetStyleCSS(view, styleCss);
 }
示例#52
0
 //
 // StyleId
 //
 public static string GetStyleId(this UITabBarItem view)
 {
     return(PixateLib.PXEngine.GetStyleId(view));
 }
 public override void ItemSelected(UITabBar tabbar, UITabBarItem item)
 {
     var page = ((TabbedPage)Element).CurrentPage;
 }
示例#54
0
 public static void SetStyleId(this UITabBarItem view, string styleId)
 {
     PixateLib.PXEngine.SetStyleId(view, styleId);
 }
        /// <summary>
        /// Loads the image into given imageView using defined parameters.
        /// </summary>
        /// <param name="parameters">Parameters for loading the image.</param>
        /// <param name="imageView">Image view that should receive the image.</param>
        /// <param name="imageScale">Optional scale factor to use when interpreting the image data. If unspecified it will use the device scale (ie: Retina = 2, non retina = 1)</param>
        public static IScheduledWork Into(this TaskParameter parameters, UITabBarItem item, float imageScale = -1f)
        {
            var target = new UIBarItemTarget(item);

            return(parameters.Into(imageScale, target));
        }
		public MessageListViewController (IntPtr handle)
			: base (handle)
		{
            TabBarItem = new UITabBarItem(Strings.Messages.TabBarTitle, UIImage.FromBundle("tabIconMessages"), 1);
        }
示例#57
0
 public override void ItemSelected(UITabBar tabbar, UITabBarItem item)
 {
     Title = item.Title;
 }
示例#58
0
		public BuddyListRootController()
			: base (new BuddyListViewController())
		{
			TabBarItem = new UITabBarItem (UITabBarSystemItem.Contacts, 0);
		}