microsoft/microsoft-ui-xaml

Proposal: TabViewItem should respect CornerRadius API

Open

#3,084 创建于 2020年8月9日

在 GitHub 查看
 (7 评论) (4 反应) (0 负责人)C# (659 fork)batch import
area-TabViewfeature proposalhelp wantedteam-Controls

仓库指标

Star
 (5,815 star)
PR 合并指标
 (平均合并 5天 15小时) (30 天内合并 9 个 PR)

描述

Proposal: TabViewItem should respect CornerRadius API

Summary

To set the corner radius of a TabViewItem, developers today have to override the OverlayCornerRadius resource. They should also be able to use the TabViewItem.CornerRadius API for that.

Example

<muxc:TabView>
    <muxc:TabView.TabItems>
        <muxc:TabViewItem Header="Tab 1" CornerRadius="0">
            Some tab content
        </muxc:TabViewItem>
    </muxc:TabView.TabItems>
</muxc:TabView>

image

Additional Context

This proposal is related to a few other TabViewItem issues like https://github.com/microsoft/microsoft-ui-xaml/issues/3047 and https://github.com/microsoft/microsoft-ui-xaml/issues/2653. @stmoy FYI

贡献者指南