• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# UITableViewStyle类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中UITableViewStyle的典型用法代码示例。如果您正苦于以下问题:C# UITableViewStyle类的具体用法?C# UITableViewStyle怎么用?C# UITableViewStyle使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



UITableViewStyle类属于命名空间,在下文中一共展示了UITableViewStyle类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: TableScreen

		/// <summary>
		/// You specify the table style in the constructor when using a UITableViewController
		/// </summary>
		public TableScreen (UITableViewStyle tableStyle, UITableViewCellStyle cellStyle
			, UITableViewCellAccessory cellAccessory)
			: base (tableStyle)
		{
			this.cellStyle = cellStyle;
			this.cellAccessory = cellAccessory;
		}
开发者ID:rojepp,项目名称:monotouch-samples,代码行数:10,代码来源:TableScreen.cs


示例2: FlyoutNavigationController

        public FlyoutNavigationController(UITableViewStyle navigationStyle = UITableViewStyle.Plain)
        {
            navigation = new DialogViewController(navigationStyle,null);
            navigation.OnSelection += NavigationItemSelected;
            var navFrame = navigation.View.Frame;
            navFrame.Width = menuWidth;
            navigation.View.Frame = navFrame;
            this.View.AddSubview (navigation.View);
            SearchBar = new UISearchBar (new RectangleF (0, 0, navigation.TableView.Bounds.Width, 44)) {
                //Delegate = new SearchDelegate (this),
                TintColor = this.TintColor
            };

            TintColor = UIColor.Black;
            //navigation.TableView.TableHeaderView = SearchBar;
            navigation.TableView.TableFooterView = new UIView (new RectangleF (0, 0, 100, 100)){BackgroundColor = UIColor.Clear};
            navigation.TableView.ScrollsToTop = false;
            shadowView = new UIView ();
            shadowView.BackgroundColor = UIColor.White;
            shadowView.Layer.ShadowOffset = new System.Drawing.SizeF (-5, -1);
            shadowView.Layer.ShadowColor = UIColor.Black.CGColor;
            shadowView.Layer.ShadowOpacity = .75f;
            closeButton = new UIButton ();
            closeButton.TouchDown += delegate {
                HideMenu ();
            };
            AlwaysShowLandscapeMenu = true;

            this.View.AddGestureRecognizer (new OpenMenuGestureRecognizer (this, new Selector ("panned"), this));

            ShouldAutoPushFirstView = true;
        }
开发者ID:neilkennedy,项目名称:FlyoutNavigation,代码行数:32,代码来源:FlyoutNavigationController.cs


示例3: MakeTableView

 public override UITableView MakeTableView(System.Drawing.RectangleF bounds, UITableViewStyle style)
 {
     var tv = base.MakeTableView (bounds, style);
     tv.BackgroundView = new UIView () { BackgroundColor = Colors.TableViewBackground };
     tv.SeparatorStyle = UITableViewCellSeparatorStyle.None;
     return tv;
 }
开发者ID:rmawani,项目名称:themesystem,代码行数:7,代码来源:BTDialogViewController.cs


示例4: OptionTableViewController

        public OptionTableViewController(List<SelectionItem> options, UITableViewStyle style = UITableViewStyle.Plain)
            : base(style)
        {
            int items = 0;
            int headers = 0;

            Options = options;
            OptionDictionary = new Dictionary<string, List<SelectionItem>>();

            List<SelectionItem> temp = new List<SelectionItem>();
            string previousBlockName = "";

            foreach (var item in options) {
                if (temp != null) {
                    items++;
                    temp.Add(item);
                }
            }

            if (temp != null && temp.Count > 0) {
                headers++;
                OptionDictionary.Add(previousBlockName, temp);
            }

            if (headers > 1) {
                totalHeight = totalHeight + (headers * headerheight);
            }
            totalHeight = totalHeight + (items * rowheight);
        }
开发者ID:vespassassina,项目名称:Sample-MvvmCross-iOS-App,代码行数:29,代码来源:OptionTableViewController.cs


示例5: CustomFlyoutNavigationController

 public CustomFlyoutNavigationController(UITableViewStyle navigationStyle = UITableViewStyle.Plain)
     : base(navigationStyle)
 {
     OverlayView = new UIView(UIScreen.MainScreen.Bounds);
     OverlayView.BackgroundColor = UIColor.FromRGBA(0, 0, 0, 0.5f);
     OverlayView.Alpha = 0;
 }
开发者ID:ChristianJaspers,项目名称:saapp-ios,代码行数:7,代码来源:CustomFlyoutNavigationController.cs


示例6: AllInOneTableViewController

		public AllInOneTableViewController (UITableViewStyle style, bool canSearch) : base (style)
		{
			ClearsSelectionOnViewWillAppear = false;
			CanSearch = canSearch;

			RegisterType (GetType ());
		}
开发者ID:Jali2GitHub,项目名称:MonoTouch.SQLite,代码行数:7,代码来源:AllInOneTableViewController.cs


示例7: FoldersViewController

 public FoldersViewController(UITableViewStyle style)
     : base()
 {
     TraceHelper.AddMessage("Folders: constructor");
     this.Title = NSBundle.MainBundle.LocalizedString ("Folders", "Folders");
     this.TabBarItem.Image = UIImage.FromBundle ("Images/33-cabinet.png");
 }
开发者ID:ogazitt,项目名称:zaplify,代码行数:7,代码来源:FoldersViewController.cs


示例8: CustomizeCell

        public UITableViewCell CustomizeCell(UITableViewCell cell, MonoTouch.Foundation.NSIndexPath indexPath, UITableViewStyle style)
        {
            if (style == UITableViewStyle.Grouped)
            {

                if (Count == 1)
                {
                    cell.BackgroundView = new UIImageView (Resources.CellBackgroundFull);
                    cell.SelectedBackgroundView = new UIImageView (Resources.CellBackgroundFullSelected);

                } else if (indexPath.Row == 0)
                {
                    cell.BackgroundView = new UIImageView (Resources.CellBackgroundTop);
                    cell.SelectedBackgroundView = new UIImageView (Resources.CellBackgroundTopSelected);

                } else if (indexPath.Row + 1 == this.Count)
                {
                    cell.BackgroundView = new UIImageView (Resources.CellBackgroundBottom);
                    cell.SelectedBackgroundView = new UIImageView (Resources.CellBackgroundBottomSelected);
                } else
                {
                    cell.BackgroundView = new UIImageView (Resources.CellBackgroundMiddle);
                    cell.SelectedBackgroundView = new UIImageView (Resources.CellBackgroundMiddleSelected);
                }

                cell.TextLabel.BackgroundColor = UIColor.Clear;
                if (cell.DetailTextLabel != null) cell.DetailTextLabel.BackgroundColor = UIColor.Clear;

            } else {
                cell.BackgroundView = new UIImageView (Resources.CellBackgroundPlain);
                cell.SelectedBackgroundView = new UIImageView (Resources.CellBackgroundPlainSelected);
            }

            return cell;
        }
开发者ID:rmawani,项目名称:themesystem,代码行数:35,代码来源:BTBackgroundImageSection.cs


示例9: CustomTableView

		public CustomTableView(RectangleF bounds, UITableViewStyle style) : base(bounds, style)
		{
			ApplyDropShadow();
			
			// Necessary because we are using a transparent navigation bar setting
			// http://stackoverflow.com/questions/2339620/uitableview-add-content-offset-at-top
			ContentInset = new UIEdgeInsets(44, 0, 0, 0);
		}
开发者ID:modulexcite,项目名称:artapp,代码行数:8,代码来源:CustomTableView.cs


示例10: SeriesTypesController

//		public SeriesTypesController(TChart chart, ChartViewController chartController,UITableViewStyle style) : base(style)
		public SeriesTypesController(UITableViewStyle style) : base(style)
		{
	//		this.chart=chart;
	//		this.chartController = chartController;
			
				this.chartController =new ChartViewController();
				this.chart = chartController.chart;
		}
开发者ID:GSerjo,项目名称:Seminars,代码行数:9,代码来源:SeriesTypesController.cs


示例11: DefaultDialogViewController

 public DefaultDialogViewController(RootElement root, UITableViewStyle tableStyle = UITableViewStyle.Grouped, EventHandler refreshRequested = null)
     : base(root, true)
 {
     if (refreshRequested != null)
         RefreshRequested += refreshRequested;
     Style = tableStyle;
     TableView.BackgroundView = null;
     TableView.BackgroundColor = ApplicationColors.DEFAULT_BACKGROUND;
 }
开发者ID:buehler,项目名称:xamarin-hsr-challenge-project,代码行数:9,代码来源:DefaultDialogViewController.cs


示例12: RangingViewController

		public RangingViewController (UITableViewStyle style) : base (style)
		{
			Unknowns = new List<CLBeacon> ();
			Immediates = new List<CLBeacon> ();
			Nears = new List<CLBeacon> ();
			Fars = new List<CLBeacon> ();
			beacons = new List<CLBeacon> [4] { Unknowns, Immediates, Nears, Fars };

			locationManager = new CLLocationManager ();
			locationManager.DidRangeBeacons += HandleDidRangeBeacons;
		}
开发者ID:Rajneesh360Logica,项目名称:monotouch-samples,代码行数:11,代码来源:RangingViewController.cs


示例13: CalibrationBeginViewController

		public CalibrationBeginViewController (UITableViewStyle style) : base (style)
		{
			Unknowns = new List<CLBeacon> ();
			Immediates = new List<CLBeacon> ();
			Nears = new List<CLBeacon> ();
			Fars = new List<CLBeacon> ();
			beacons = new List<CLBeacon> [4] { Unknowns, Immediates, Nears, Fars };
			// This location manager will be used to display beacons available for calibration.
			locationManager = new CLLocationManager ();
			locationManager.DidRangeBeacons += HandleDidRangeBeacons;
		}
开发者ID:GSerjo,项目名称:monotouch-samples,代码行数:11,代码来源:CalibrationBeginViewController.cs


示例14: RecipeListTableViewController

		public RecipeListTableViewController (UITableViewStyle style, RecipesController recipes) : base (style)
		{
			Title = "Recipes";

			this.recipes = recipes;

			// Add a print button and use PrintSelectedRecipes as the pressed event handler
			printButtonItem = new UIBarButtonItem ("Print", UIBarButtonItemStyle.Bordered, PrintSelectedRecipes);
			NavigationItem.RightBarButtonItem = printButtonItem;

			// Increase the height of the table rows - 1 pixel higher than the recipe thumbnails displayed in the table cells
			TableView.RowHeight = 43.0f;

			TableView.Source = new RecipeListSource (this);
		}
开发者ID:CBrauer,项目名称:monotouch-samples,代码行数:15,代码来源:RecipeListTableViewController.cs


示例15: DialogView

        public DialogView(RectangleF frame, UITableViewStyle style, RootElement root)
            : base(frame)
        {
            tableView = MakeTableView (new RectangleF (0, 0, frame.Width, frame.Height), style);
            tableView.BackgroundView.Alpha = 0.0f;
            tableView.AutosizesSubviews = true;

            BackgroundColor = UIColor.Clear;

            source = new Source (this);
            tableView.Source = source;

            AddSubview (tableView);

            Root = root;
        }
开发者ID:jcaudill,项目名称:FlightLog,代码行数:16,代码来源:DialogView.cs


示例16: DialogViewController

		public DialogViewController (UITableViewStyle style, RootElement root, bool pushing) : base (style)
		{
			this.pushing = pushing;
			PrepareRoot (root);
		}
开发者ID:chrisbranson,项目名称:MonoTouch.Dialog,代码行数:5,代码来源:DialogViewController.cs


示例17: MakeTableView

		public virtual UITableView MakeTableView (RectangleF bounds, UITableViewStyle style)
		{
			return new UITableView (bounds, style);
		}
开发者ID:chrisbranson,项目名称:MonoTouch.Dialog,代码行数:4,代码来源:DialogViewController.cs


示例18: DialogViewController

		public DialogViewController (UITableViewStyle style, RootElement root, bool pushing) : base (style)
		{
			Style = style;
			this.pushing = pushing;
			this.root = root;
		}
开发者ID:hisystems,项目名称:MonoTouch.Dialog,代码行数:6,代码来源:DialogViewController.cs


示例19: MvxTableViewController

 protected MvxTableViewController(UITableViewStyle style = UITableViewStyle.Plain)
     : base(style)
 {
     this.AdaptForBinding();
 }
开发者ID:indazoo,项目名称:MvvmCross_DesignData,代码行数:5,代码来源:MvxTableViewController.cs


示例20: MvxEventSourceTableViewController

 protected MvxEventSourceTableViewController(UITableViewStyle style = UITableViewStyle.Plain)
     : base(style)
 {
 }
开发者ID:MvvmCross,项目名称:MvvmCross,代码行数:4,代码来源:MvxEventSourceTableViewController.cs



注:本文中的UITableViewStyle类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# UITapGestureRecognizer类代码示例发布时间:2022-05-24
下一篇:
C# UITableViewRowAnimation类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap