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

C# UITableViewCellStyle类代码示例

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

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



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

示例1: PickerViewCell

        /// <summary>
        /// Initializes a new instance of the <see cref="PickerCells.PickerViewCell"/> class.
        /// </summary>
        /// <param name="items">Items.</param>
        public PickerViewCell(List<String> items, UITableViewCellStyle style = UITableViewCellStyle.Default)
            : base(style)
        {
            if (items != null)
            {
                var simps = new Dictionary<int,PickerViewCellComponent>();
                simps[0] = new PickerViewCellComponent()
                {
                    Width = -1,
                    Items = new List<PickerViewCellItem>()
                    {

                    }
                };

                foreach (var aItem in items)
                {
                    simps[0].Items.Add(new PickerViewCellItem()
                    {
                        SelectedValue = aItem,
                        DisplayValue = aItem,

                    });
                }

                mDataDict = simps;

            }

            SecondarySetup();
        }
开发者ID:newky2k,项目名称:PickerCells,代码行数:35,代码来源:PickerViewCell.cs


示例2: SessionCell

        public SessionCell(UITableViewCellStyle style, NSString ident, MonkeySpace.Core.Session session, string big, string small)
            : base(style, ident)
        {
            SelectionStyle = UITableViewCellSelectionStyle.Blue;

            bigLabel = new UILabel () {
                TextAlignment = UITextAlignment.Left,
                BackgroundColor = UIColor.Clear
            };
            smallLabel = new UILabel () {
                TextAlignment = UITextAlignment.Left,
                Font = smallFont,
                TextColor = UIColor.DarkGray,
                BackgroundColor = UIColor.Clear
            };
            button = UIButton.FromType (UIButtonType.Custom);
            button.TouchDown += delegate {
                UpdateImage (ToggleFavorite ());
            };
            UpdateCell (session, big, small);

            ContentView.Add (bigLabel);
            ContentView.Add (smallLabel);
            ContentView.Add (button);
        }
开发者ID:bramleffers,项目名称:MonkeySpace,代码行数:25,代码来源:SessionElement.cs


示例3: PatientTableViewCell

		public PatientTableViewCell (UITableViewCellStyle style, NSString ident, Patient showPatient) : base (style, ident)
		{
			this.SelectionStyle = UITableViewCellSelectionStyle.Blue;
		    showPatient.ItemUpdated += (sender, args) => this.UpdateCell(showPatient);

			this.nameLabel = new UILabel () {
				TextAlignment = UITextAlignment.Left,
				Font = bigFont,
				BackgroundColor = UIColor.FromWhiteAlpha (0f, 0f)
			};
			this.companyLabel = new UILabel () {
				TextAlignment = UITextAlignment.Left,
				Font = smallFont,
				TextColor = UIColor.DarkGray,
				BackgroundColor = UIColor.FromWhiteAlpha (0f, 0f)
			};

			this.image = new UIImageView();

			this.UpdateCell(showPatient);
			
			this.ContentView.Add (this.nameLabel);
			this.ContentView.Add (this.companyLabel);
			this.ContentView.Add (this.image);
		}
开发者ID:DnyaneshwarWadghanePM,项目名称:notes-for-nurses-redux,代码行数:25,代码来源:PatientTableViewCell.cs


示例4: SessionCell

		const int buttonSpace = 45; //24;
		
		public SessionCell (UITableViewCellStyle style, NSString ident, Session showSession, string big, string small) : base (style, ident)
		{
			SelectionStyle = UITableViewCellSelectionStyle.Blue;
			
			titleLabel = new UILabel () {
				TextAlignment = UITextAlignment.Left,
				BackgroundColor = UIColor.FromWhiteAlpha (0f, 0f)
			};
			speakerLabel = new UILabel () {
				TextAlignment = UITextAlignment.Left,
				Font = smallFont,
				TextColor = UIColor.DarkGray,
				BackgroundColor = UIColor.FromWhiteAlpha (0f, 0f)
			};
			locationImageView = new UIImageView();
			locationImageView.Image = building;

			button = UIButton.FromType (UIButtonType.Custom);
			button.TouchDown += delegate {
				UpdateImage (ToggleFavorite ());
				if (AppDelegate.IsPad) {
					NSObject o = new NSObject();
					NSDictionary progInfo = NSDictionary.FromObjectAndKey(o, new NSString("FavUpdate"));

					NSNotificationCenter.DefaultCenter.PostNotificationName(
						"NotificationFavoriteUpdated", o, progInfo);
				}
			};
			UpdateCell (showSession, big, small);
			
			ContentView.Add (titleLabel);
			ContentView.Add (speakerLabel);
			ContentView.Add (button);
			ContentView.Add (locationImageView);
		}
开发者ID:topcbl,项目名称:mobile-samples,代码行数:37,代码来源:SessionCell.cs


示例5: PatientCell

        public PatientCell(UITableViewCellStyle style, NSString ident, Patient showSpeaker)
            : base(style, ident)
        {
            SelectionStyle = UITableViewCellSelectionStyle.Blue;

            nameLabel = new UILabel()
            {
                TextAlignment = UITextAlignment.Left,
                Font = bigFont,
                BackgroundColor = UIColor.FromWhiteAlpha(0f, 0f)
            };
            companyLabel = new UILabel()
            {
                TextAlignment = UITextAlignment.Left,
                Font = smallFont,
                TextColor = UIColor.DarkGray,
                BackgroundColor = UIColor.FromWhiteAlpha(0f, 0f)
            };

            image = new UIImageView();

            UpdateCell(showSpeaker);

            ContentView.Add(nameLabel);
            ContentView.Add(companyLabel);
            ContentView.Add(image);
        }
开发者ID:ewilde,项目名称:notes-for-nurses,代码行数:27,代码来源:PatientCell.cs


示例6: MvxBindableTableViewCell

 public MvxBindableTableViewCell(IEnumerable<MvxBindingDescription> bindingDescriptions,
                                 UITableViewCellStyle cellStyle, NSString cellIdentifier,
                                 UITableViewCellAccessory tableViewCellAccessory = UITableViewCellAccessory.None)
     : base(bindingDescriptions, cellStyle, cellIdentifier, tableViewCellAccessory)
 {
     InitialiseImageHelper();
 }
开发者ID:JoanMiro,项目名称:MvxMod,代码行数:7,代码来源:MvxBindableTableViewCell.cs


示例7: MvxBindableTableViewSource

 public MvxBindableTableViewSource(UITableView tableView, UITableViewCellStyle style, NSString cellIdentifier, IEnumerable<MvxBindingDescription> descriptions)
 {
     _tableView = tableView;
     _cellStyle = style;
     _cellIdentifier = cellIdentifier;
     _bindingDescriptions = descriptions;
 }
开发者ID:GSerjo,项目名称:MvvmCross,代码行数:7,代码来源:MvxBindableTableViewSource.cs


示例8: CustomOwnerDrawnElement

		public CustomOwnerDrawnElement (UITableViewCellStyle style, string cellIdentifier, 
                      UITableViewCellSelectionStyle selectionStyle, UITableViewCellAccessory accesory)
			: this(style, cellIdentifier)
		{
			this.SelectionStyle = selectionStyle;
			this.Accessory = accesory;			
		}
开发者ID:21Off,项目名称:21Off,代码行数:7,代码来源:OwnerDrawnElement.cs


示例9: 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


示例10: PrimaryCell

                public PrimaryCell( CGSize parentSize, UITableViewCellStyle style, string cellIdentifier ) : base( style, cellIdentifier )
                {
                    BackgroundColor = Rock.Mobile.UI.Util.GetUIColor( ControlStylingConfig.BG_Layer_Color );
                    SelectionStyle = UITableViewCellSelectionStyle.None;

                    Image = new UIImageView( );
                    Image.BackgroundColor = UIColor.Yellow;
                    Image.ContentMode = UIViewContentMode.ScaleAspectFill;
                    Image.Layer.AnchorPoint = CGPoint.Empty;
                    AddSubview( Image );

                    // Banner Image
                    Image.Image = new UIImage( NSBundle.MainBundle.BundlePath + "/" + PrivateConnectConfig.MainPageHeaderImage );
                    Image.SizeToFit( );

                    // resize the image to fit the width of the device
                    nfloat imageAspect = Image.Bounds.Height / Image.Bounds.Width;
                    Image.Frame = new CGRect( 0, 0, parentSize.Width, parentSize.Width * imageAspect );


                    Title = new UILabel( );
                    Title.Text = ConnectStrings.Main_Connect_Header;
                    Title.Font = Rock.Mobile.PlatformSpecific.iOS.Graphics.FontManager.GetFont( ControlStylingConfig.Font_Bold, ControlStylingConfig.Large_FontSize );
                    Title.Layer.AnchorPoint = CGPoint.Empty;
                    Title.TextColor = Rock.Mobile.UI.Util.GetUIColor( ControlStylingConfig.TextField_ActiveTextColor );
                    Title.LineBreakMode = UILineBreakMode.TailTruncation;
                    Title.TextAlignment = UITextAlignment.Center;
                    Title.Frame = new CGRect( 5, Image.Frame.Bottom, parentSize.Width - 10, 0 );
                    Title.SizeToFit( );
                    AddSubview( Title );
                }
开发者ID:Higherbound,项目名称:HBMobileApp,代码行数:31,代码来源:ConnectMainPageViewController.cs


示例11: BadgeTableViewCell

		public BadgeTableViewCell(UITableViewCellStyle style, string reuseIdentifier) : base(style, reuseIdentifier)
		{
			_badgeView = new BadgeView(new RectangleF(0.0f, 0.0f, 55.0f, 20.0f));
			_badgeView.BackgroundColor = UIColor.Clear;
			_badgeView.BadgeAlignment = BadgeViewAlignment.Right;
			AccessoryView = _badgeView;
		}
开发者ID:modulexcite,项目名称:artapp,代码行数:7,代码来源:BadgeTableViewCell.cs


示例12: DropdownMenuTableViewCell

        public DropdownMenuTableViewCell(UITableViewCellStyle style, string reuseIdentifier, DropdownMenuConfiguration configuration)
            : base(style, reuseIdentifier)
        {
            this.Configuration = configuration;

            // Setup cell
            CellContentFrame = new CGRect(0, 0, UIScreen.MainScreen.Bounds.Width, this.Configuration.CellHeight);
            this.ContentView.BackgroundColor = this.Configuration.CellBackgroundColor;
            this.SelectionStyle = UITableViewCellSelectionStyle.None;
            this.TextLabel.TextAlignment = UITextAlignment.Left;
            this.TextLabel.TextColor = this.Configuration.CellTextLabelColor;
            this.TextLabel.Font = this.Configuration.CellTextLabelFont;
            this.TextLabel.Frame = new CGRect(20, 0, CellContentFrame.Width, CellContentFrame.Height);

            // Checkmark icon
            this.CheckMarkIcon = new UIImageView(new CGRect(CellContentFrame.Width - 50, (CellContentFrame.Height - 30)/2, 30, 30));
            this.CheckMarkIcon.Hidden = true;
            this.CheckMarkIcon.Image = this.Configuration.CheckMarkImage;
            this.CheckMarkIcon.ContentMode = UIViewContentMode.ScaleAspectFill;
            this.ContentView.AddSubview (this.CheckMarkIcon);

            // Separator for cell
            var separator = new DropdownMenuTableCellContentView(CellContentFrame);
            separator.BackgroundColor = UIColor.Clear;
            this.ContentView.AddSubview (separator);
        }
开发者ID:kanvuduc,项目名称:xdropdownmenu,代码行数:26,代码来源:DropdownMenuView.cs


示例13: CreateTableViewCell

 // We need to create our own cell so we can position the image view appropriately
 protected override UITableViewCell CreateTableViewCell(UITableViewCellStyle style, string key)
 {
     if (UsePinnedImage)
         return new PinnedImageTableViewCell(style, key);
     else
         return base.CreateTableViewCell(style, key);
 }
开发者ID:Mikoj,项目名称:CodeBucket,代码行数:8,代码来源:UserElement.cs


示例14: MovieCell

        public MovieCell(UITableViewCellStyle style, string reuseId)
            : base(style, reuseId)
        {
            SelectionStyle = UITableViewCellSelectionStyle.None;

            _thumbnail = new UIImageView {
                BackgroundColor = UIColor.Gray
            };
            ContentView.AddSubview(_thumbnail);

            _movieTitle = new UILabel {
                TextColor = UIColor.Blue,
                Font = Fonts.Bold14
            };
            ContentView.AddSubview(_movieTitle);

            _freshImg = ImageInitializer.InitImageView(ImgPath.Indicators.FreshSmall);
            _rottenImg = ImageInitializer.InitImageView(ImgPath.Indicators.RottenSmall);
            ContentView.AddSubviews(_freshImg, _rottenImg);
            //			_freshImg.Hidden = _rottenImg.Hidden = true;

            _criticScore = InitInfoLabel();
            _actors = InitInfoLabel();
            _mppaRuntime = InitInfoLabel();
        }
开发者ID:johnnypilz,项目名称:RottenTomatoes-1,代码行数:25,代码来源:MovieCell.cs


示例15: MvxStandardTableViewCell

 public MvxStandardTableViewCell(IEnumerable<MvxBindingDescription> bindingDescriptions,
                                 UITableViewCellStyle cellStyle, NSString cellIdentifier,
                                 UITableViewCellAccessory tableViewCellAccessory = UITableViewCellAccessory.None)
     : base(bindingDescriptions, cellStyle, cellIdentifier, tableViewCellAccessory)
 {
     this.InitializeImageLoader();
 }
开发者ID:MvvmCross,项目名称:MvvmCross,代码行数:7,代码来源:MvxStandardTableViewCell.cs


示例16: MvxBaseBindableTableViewSource

 protected MvxBaseBindableTableViewSource(UITableView tableView, UITableViewCellStyle style, NSString cellIdentifier, IEnumerable<MvxBindingDescription> descriptions, UITableViewCellAccessory tableViewCellAccessory = UITableViewCellAccessory.None)
 {
     _tableView = tableView;
     _cellStyle = style;
     _cellIdentifier = cellIdentifier;
     _bindingDescriptions = descriptions;
     _tableViewCellAccessory = tableViewCellAccessory;
 }
开发者ID:284247028,项目名称:MvvmCross,代码行数:8,代码来源:MvxBaseBindableTableViewSource.cs


示例17: MvxBaseBindableTableViewCell

 public MvxBaseBindableTableViewCell(string bindingText, UITableViewCellStyle cellStyle, NSString cellIdentifier,
                                     UITableViewCellAccessory tableViewCellAccessory =
                                     UITableViewCellAccessory.None)
     : base(cellStyle, cellIdentifier)
 {
     Accessory = tableViewCellAccessory;
     CreateFirstBindAction(bindingText);
 }
开发者ID:JoanMiro,项目名称:MvxMod,代码行数:8,代码来源:MvxBaseBindableTableViewCell.cs


示例18: PhotoCell

		// Create the UIViews that we will use here, layout happens in LayoutSubviews
		public PhotoCell (UITableViewCellStyle style, NSString ident, List<ImageInfo> filenames, 
		                  int rowIndex, Action<BuzzPhoto> onPhotoClicked) : base(style, ident)
		{
			SelectionStyle = UITableViewCellSelectionStyle.None;
				
			photoRowView = new PhotoCellView (filenames, rowIndex, onPhotoClicked);
			ContentView.Add (photoRowView);
		}
开发者ID:21Off,项目名称:21Off,代码行数:9,代码来源:PhotoCell.cs


示例19: MvxTableViewCell

 public MvxTableViewCell(string bindingText, UITableViewCellStyle cellStyle, NSString cellIdentifier,
                         UITableViewCellAccessory tableViewCellAccessory =
                             UITableViewCellAccessory.None)
     : base(cellStyle, cellIdentifier)
 {
     this.Accessory = tableViewCellAccessory;
     this.CreateBindingContext(bindingText);
 }
开发者ID:MvvmCross,项目名称:MvvmCross,代码行数:8,代码来源:MvxTableViewCell.cs


示例20: MvxTableViewCell

 public MvxTableViewCell(IEnumerable<MvxBindingDescription> bindingDescriptions,
                         UITableViewCellStyle cellStyle, NSString cellIdentifier,
                         UITableViewCellAccessory tableViewCellAccessory =
                             UITableViewCellAccessory.None)
     : base(cellStyle, cellIdentifier)
 {
     Accessory = tableViewCellAccessory;
     this.CreateBindingContext(bindingDescriptions);
 }
开发者ID:darkice-matt-crombie,项目名称:MvxSpinnerTest,代码行数:9,代码来源:MvxTableViewCell.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# UITableViewRowAnimation类代码示例发布时间:2022-05-24
下一篇:
C# UITableViewCellEditingStyle类代码示例发布时间: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