Can I nest multiple Borders within each other?

Platform: .NET MAUI| Category: General

Yes, you can nest multiple Borders by placing one <Border> element inside another. This allows you to create complex border designs.
XAML:

<Border x:Name="border1" Stroke="Black" Padding="0" WidthRequest="200" HeightRequest="100">
<Border x:Name="border2" Stroke="Red" WidthRequest="100" HeightRequest="50"/>
</Border>

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.