コード例 #1
0
ファイル: DataSource.cs プロジェクト: alleeclark/morganHack
        public static DataSource Source()
        {
            DataSource source = new DataSource ();

            source.items = new MenuItem[] {
                new MenuItem () { Name = "Home", ImageName = "Images/iPhone/black/menu-home.png" },
                new MenuItem () { Name = "Popular", ImageName = "Images/iPhone/black/menu-eye.png" },
                new MenuItem () { Name = "Around me", ImageName = "Images/iPhone/black/menu-pin.png", EventCount = 8 },
                new MenuItem () { Name = "Recent", ImageName = "Images/iPhone/black/menu-clock.png", EventCount = 11 },
            };

            return source;
        }
コード例 #2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad ();
            dataSource = DataSource.Source ();
            tableView.ReloadData ();
            tableView.BackgroundColor = UIColor.Clear;
            searchBar.SetTextColor (UIColor.Black);

            //var aField = searchBar.GetField ();/*.LeftView = new UIView (new RectangleF(0, 0, 15, 15));*/

            var searchFrame = searchBar.Frame;
            searchFrame.Height = 64;
            searchBar.Frame = searchFrame;

            var tableFrame = tableView.Frame;
            tableFrame.Y = 64;
            tableFrame.Height = tableFrame.Height -tableFrame.Y;
            tableView.Frame = tableFrame;

            CashflowTheme.Apply (View, ColorScheme.Black);
        }