本文整理汇总了C#中UITableViewStyle类的典型用法代码示例。如果您正苦于以下问题:C# UITableViewStyle类的具体用法?C# UITableViewStyle怎么用?C# UITableViewStyle使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
UITableViewStyle类属于命名空间,在下文中一共展示了UITableViewStyle类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}
示例6: AllInOneTableViewController
public AllInOneTableViewController (UITableViewStyle style, bool canSearch) : base (style)
{
ClearsSelectionOnViewWillAppear = false;
CanSearch = canSearch;
RegisterType (GetType ());
}
示例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");
}
示例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;
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}