diff --git a/docs/reference/controls/tabstrip.md b/docs/reference/controls/tabstrip.md index f4ed71a07..7c10778b5 100644 --- a/docs/reference/controls/tabstrip.md +++ b/docs/reference/controls/tabstrip.md @@ -9,21 +9,17 @@ import TabStripNavigation from '/img/reference/controls/tabstrip/tabstrip-naviga Displays a strip of tab headers. You can use this control as a horizontal menu. -The tab strip is comprised `` elements. These are displayed in the sequence that they appear in the XAML. +The `TabStrip` is composed of `TabStripItem` children. `TabStripItem`s are displayed in order of appearance and can be created by either: 1. a collection of `TabStripItem`s or 2. generated by `ItemsSource`. -## Useful Property +Unlike `TabControl`, `TabStrip` is not responsible for presenting the content of the selected tab. Instead, `TabStrip` requires developers to respond to `SelectionChanged` events or `SelectedItem` property changes and then present the desired content with a separate control, such as `ContentControl`. This gives developers full control over the displayed content and enables use cases such as custom view caching. -You will probably use this property most often: - -
PropertyDescription
TabItem.HeaderThe text for the tab.
- -## Example +## Example: TabStrip with TabStripItem ```xml - - - + Tab 1 + Tab 2 + Tab 3 ``` @@ -31,6 +27,18 @@ It looks like this running on Windows: +## Example: TabStrip with ItemsSource + +```xml + + + + + + + +``` + ## More Information :::info diff --git a/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/controls/tabstrip.md b/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/controls/tabstrip.md index 7dfe316c5..bd06e1983 100644 --- a/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/controls/tabstrip.md +++ b/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/controls/tabstrip.md @@ -8,21 +8,15 @@ import TabStripNavigation from '/img/reference/controls/tabstrip/tabstrip-naviga 显示一条选项卡头的条带。您可以将此控件用作水平菜单。 -选项卡条由 `` 元素组成。这些元素按它们在 XAML 中出现的顺序显示。 - -## 有用的属性 - -您可能最常使用此属性: - -
属性描述
TabItem.Header选项卡的文本。
+选项卡条由 `` 元素组成。这些元素按它们在 XAML 中出现的顺序显示。 ## 示例 ```xml - - - + Tab 1 + Tab 2 + Tab 3 ```