dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.84k stars 1.67k forks source link

Border can set multi StrokeThickness; Frame can set multi CornerRadius #9100

Open tchtang opened 1 year ago

tchtang commented 1 year ago

Description

in WPF Border can set multi value of BorderThickness and CornerRadius

1

in MAUI Border only accept 1 value of StrokeThickness Frame only accept 1 value of CornerRadius

2

Public API Changes

WPF XAML

        <Border BorderBrush="Blue" BorderThickness="1,2,3,4" CornerRadius="1,2,3,4">
            <Grid>
                <TextBlock Text="Label" />
            </Grid>
        </Border>

MAUI XAML

    <Grid BackgroundColor="Blue">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>
        <Border Stroke="Black" StrokeThickness="1,2,3,4" Grid.Row="0">
            <!-- copy from https://docs.microsoft.com/en-us/dotnet/maui/user-interface/controls/border -->
            <Border.StrokeShape>
                <RoundRectangle CornerRadius="1,2,3,4" />
            </Border.StrokeShape>
            <Grid>
                <Label Text="Label" />
            </Grid>
        </Border>
        <Frame BorderColor="Gray" CornerRadius="1,2,3,4" Grid.Row="1">
            <Label Text="Label" />
        </Frame>
    </Grid>

Intended Use-Case

Would like Border StrokeThickness can set multi value

ghost commented 1 year ago

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.