Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Conversation

jsuarezruiz
Copy link
Collaborator

@jsuarezruiz jsuarezruiz commented Nov 5, 2020

Description of Change

The TabView is a way to display a set of tabs and their respective content. TabView is useful for displaying several content while giving a user the capability to customize mostly everything.

xct-tabview

Bugs Fixed

API Changes

Added:

Properties

TabView Properties

Property Type Description
TabItemsSource IEnumerable A collection used to generate the TabView's tab items.
TabViewItemDataTemplate DataTemplate the template the Tab View uses to generate tab items' header.
TabContentDataTemplate DataTemplate The template the Tab View uses to generate tab items' content.
SelectedIndex Int Gets or sets the currently selected tab. Default is 0.
TabStripPlacement TabStripPlacement The TabStrip placement (top or bottom).
TabStripBackground Brush The TabStrip background.
TabIndicatorBrush Brush The TabIndicator background.
TabIndicatorHeight double The TabIndicator height.
TabIndicatorWidth double The TabIndicator width.
TabIndicatorPlacement TabIndicatorPlacement
TabIndicatorView View The TabIndicator content.
TabContentBackground Brush The tab content background.
TabContentHeight Double The tab content height.
TabStripHeight Double The TabStrip height.
TabContentHeight Double The tab content height.
IsTabTransitionEnabled Bool Enable or disable the transition between tabs.
IsSwipeEnabled Bool Enable or disable the swipe gesture.

TabViewItem Properties

Property Type Description
Text String The text of the tab.
TextColor Color The text color of the tab.
TextColorSelected Color The text color of the selected tab.
FontSize FontSize The font size used in the tab text.
FontSizeSelected FontSize The font size used in the selected tab.
FontFamily String The font family used in the tab.
FontFamilySelected String The font family used in the selected tab.
FontAttributes FontAttributes The font attributes used in the tab.
FontAttributesSelected FontAttributes The font attributes used in the selected tab.
Icon ImageSource The icon of the tab.
IconSelected ImageSource The ImageSource used as icon in the selected tab.
Content View The content of the tab. Is View, can use anything as content.
BadgeText Bool The badge text used in the tab.
BadgeTextColor Color The badge text color used in the tab.
BadgeTextColorSelected Color The badge text color used in the selected tab.
BadgeBackgroundColor Color The badge color used in the tab.
BadgeBackgroundColorSelected Color The badge color used in the selected tab.
IsSelected Bool a bool that indicate if the tab is selected or not.
TapCommand ICommand Command that is executed when the user tap a tab.
TapCommandParameter object The tap command parameter.

Events

TabView Events

Event Description
SelectionChanged Event that is raised when the selected tab changed.
Scrolled Event that is raised when is swiping between tabs.

TabViewItem Events

Event Description
TabTapped Event that is raised when the user tap a tab.

Screenshots

xct-basic-tabview
xct-custom-tabview
xct-tabview-badge
xct-tabview-nocontent

PR Checklist

  • Has tests (if omitted, state reason in description)
  • Has samples (if omitted, state reason in description)
  • Rebased on top of main at time of PR
  • Changes adhere to coding standard

@jsuarezruiz jsuarezruiz added enhancement Small enhancement to the library a/sample-app labels Nov 5, 2020
@jsuarezruiz jsuarezruiz added p/android This issue impacts Android p/iOS iOS platform issue. UWP UWP platform issue. labels Nov 5, 2020
@jfversluis
Copy link
Member

Seems some things are not in the right namespace. Although this might be legit in this case.

@jfversluis jfversluis merged commit 0514c55 into main Nov 6, 2020
@jfversluis jfversluis deleted the tabview branch November 6, 2020 10:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a/sample-app enhancement Small enhancement to the library p/android This issue impacts Android p/iOS iOS platform issue. UWP UWP platform issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Spec] TabView
3 participants