alexa
menu

Xamarin.iOS

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class SfTabView

    TabView control lets users explore and switch among different views.

    Inheritance
    System.Object
    SfTabView
    Implements
    System.IDisposable
    System.ComponentModel.INotifyPropertyChanged
    Namespace: Syncfusion.iOS.TabView
    Assembly: Syncfusion.SfTabView.iOS.dll
    Syntax
    public class SfTabView : UIView, IDisposable, INotifyPropertyChanged

    Constructors

    SfTabView()

    Initializes a new instance of the SfTabView class.

    Declaration
    public SfTabView()

    SfTabView(IntPtr)

    Initializes a new instance of the SfTabView class.

    Declaration
    public SfTabView(IntPtr handle)
    Parameters
    Type Name Description
    System.IntPtr handle

    The handle.

    Properties

    CenterButtonSettings

    Gets or sets the center button settings.

    Declaration
    public CenterButtonSettings CenterButtonSettings { get; set; }
    Property Value
    Type Description
    CenterButtonSettings

    The center button settings.

    CenterButtonView

    Gets or sets the center button view.

    Declaration
    public UIView CenterButtonView { get; set; }
    Property Value
    Type Description
    UIKit.UIView

    The center button view.

    ContentTransitionDuration

    Gets or sets a value indicating whether this SfTabView content transition duration.

    Declaration
    public int ContentTransitionDuration { get; set; }
    Property Value
    Type
    System.Int32

    DisplayMode

    Gets or sets the value to define the type of header. By default it will display title from SfTabItem.

    Declaration
    public TabDisplayMode DisplayMode { get; set; }
    Property Value
    Type
    TabDisplayMode

    EnableScrollButton

    Gets or sets a value indicating whether this SfTabView enable scroll button.

    Declaration
    public bool EnableScrollButton { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if enable scroll button; otherwise, false.

    EnableSwiping

    Gets or sets a value indicating whether this SfTabView enable swiping.

    Declaration
    public bool EnableSwiping { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if enable swiping; otherwise, false.

    Items

    Gets or sets the Data Source.

    Declaration
    public TabItemCollection Items { get; set; }
    Property Value
    Type
    TabItemCollection

    OverflowButtonSettings

    Gets or sets the value to configure the overflow button attributes.

    Declaration
    public OverflowButtonSettings OverflowButtonSettings { get; set; }
    Property Value
    Type
    OverflowButtonSettings

    OverflowMode

    Gets or sets the value to choose navigation option for the exceeded headers which can't be occupied in the current view.

    Declaration
    public OverflowMode OverflowMode { get; set; }
    Property Value
    Type
    OverflowMode

    ScrollButtonBackgroundColor

    Gets or sets the color of the Scroll Button Background Color in SfTabView.

    Declaration
    public UIColor ScrollButtonBackgroundColor { get; set; }
    Property Value
    Type Description
    UIKit.UIColor

    The color of the Scroll Button Background.

    ScrollButtonTextColor

    Gets or sets the color of the Scroll Button Foreground Color in SfTabView.

    Declaration
    public UIColor ScrollButtonTextColor { get; set; }
    Property Value
    Type Description
    UIKit.UIColor

    The color of the Scroll Button Foreground Color.

    SelectedIndex

    Gets or sets the value for current view index.

    Declaration
    public int SelectedIndex { get; set; }
    Property Value
    Type
    System.Int32

    SelectionIndicatorSettings

    Gets or sets value to configure the attributes of SelectionIndicatorSettings, Selection indicator is a selectionStrip which is used to indicate the selected index of SfTabView.

    Declaration
    public SelectionIndicatorSettings SelectionIndicatorSettings { get; set; }
    Property Value
    Type
    SelectionIndicatorSettings

    TabHeaderBackgroundColor

    Gets or sets the color of the tab header background in SfTabView.

    Declaration
    public UIColor TabHeaderBackgroundColor { get; set; }
    Property Value
    Type Description
    UIKit.UIColor

    The color of the tab header background.

    TabHeaderPosition

    Gets or sets the value for the position of the header.

    Declaration
    public TabHeaderPosition TabHeaderPosition { get; set; }
    Property Value
    Type
    TabHeaderPosition

    TabHeight

    Gets or sets the value for the height of header in SfTabView.

    Declaration
    public double TabHeight { get; set; }
    Property Value
    Type
    System.Double

    TabWidth

    Gets or sets the value for the width of each header in SfTabView.

    Declaration
    public double TabWidth { get; set; }
    Property Value
    Type
    System.Double

    TabWidthMode

    Gets or sets a value indicating whether this SfTabView AutoTabWidth.

    Declaration
    public TabWidthMode TabWidthMode { get; set; }
    Property Value
    Type Description
    TabWidthMode

    true if enable AutoTabWidth otherwise, false.

    VisibleHeaderCount

    Gets or sets the value for the number of headers to be displayed in the visible region.

    Declaration
    public Nullable<int> VisibleHeaderCount { get; set; }
    Property Value
    Type
    System.Nullable<System.Int32>

    Methods

    AwakeFromNib()

    Awakes from nib.

    Declaration
    public override void AwakeFromNib()

    Dispose(Boolean)

    The Override Dispose method.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    The Disposing.

    HitTest(CGPoint, UIEvent)

    Hits the test.

    Declaration
    public override UIView HitTest(CGPoint point, UIEvent uievent)
    Parameters
    Type Name Description
    CoreGraphics.CGPoint point

    Point of Tapped location.

    UIKit.UIEvent uievent

    Touch events.

    Returns
    Type Description
    UIKit.UIView

    The test.

    LayoutSubviews()

    Layouts the subviews.

    Declaration
    public override void LayoutSubviews()

    RaiseOnPropertyChanged(String)

    This method is called by the Set accessor of each property. The CallerMemberName attribute that is applied to the optional propertyName parameter causes the property name of the caller to be substituted as an argument.

    Declaration
    protected virtual void RaiseOnPropertyChanged(string propertyName = null)
    Parameters
    Type Name Description
    System.String propertyName

    string type.

    TouchesBegan(NSSet, UIEvent)

    The Override Touches Began Method.

    Declaration
    public override void TouchesBegan(NSSet touches, UIEvent evt)
    Parameters
    Type Name Description
    Foundation.NSSet touches

    The Touches.

    UIKit.UIEvent evt

    The Event.

    TouchesEnded(NSSet, UIEvent)

    The Override Touches Ended Method.

    Declaration
    public override void TouchesEnded(NSSet touches, UIEvent evt)
    Parameters
    Type Name Description
    Foundation.NSSet touches

    The Touches.

    UIKit.UIEvent evt

    The Event.

    Events

    CenterButtonTapped

    CenterButtonTapped event handler for TabView.

    Declaration
    public event EventHandler<EventArgs> CenterButtonTapped
    Event Type
    Type
    System.EventHandler<System.EventArgs>

    OverflowButtonTapped

    OverflowButtonTapped event handler for TabView.

    Declaration
    public event EventHandler<CancelEventArgs> OverflowButtonTapped
    Event Type
    Type
    System.EventHandler<System.ComponentModel.CancelEventArgs>

    PropertyChanged

    PropertyChanged event handler for Tabview.

    Declaration
    public event PropertyChangedEventHandler PropertyChanged
    Event Type
    Type
    System.ComponentModel.PropertyChangedEventHandler

    SelectionChanged

    Selection changed event handler for TabView.

    Declaration
    public event EventHandler<SelectionChangedEventArgs> SelectionChanged
    Event Type
    Type
    System.EventHandler<SelectionChangedEventArgs>

    SelectionChanging

    Occurs before Selected

    Declaration
    public event EventHandler<SelectionChangingEventArgs> SelectionChanging
    Event Type
    Type
    System.EventHandler<SelectionChangingEventArgs>

    TabItemTapped

    TabItemTapped event handler for Tabview.

    Declaration
    public event EventHandler<TabItemTappedEventArgs> TabItemTapped
    Event Type
    Type
    System.EventHandler<TabItemTappedEventArgs>

    Implements

    System.IDisposable
    System.ComponentModel.INotifyPropertyChanged
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved