Custom Frame in MAUI for corner radius

Bhuwan 721 Reputation points
2022-08-24T04:14:25.573+00:00

How to create custom frame in MAUI for corner radius same like Xamarin Forms Reference Below link code.

https://stackoverflow.com/questions/57790260/xamarin-frame-only-have-a-single-rounded-corner

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,579 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Leon Lu (Shanghai Wicresoft Co,.Ltd.) 76,391 Reputation points Microsoft Vendor
    2022-08-25T05:26:33.417+00:00

    Hello,

    You can use Border to achieve a single rounded corner in MAUI, please set CornerRadius like following code

       <Border.StrokeShape>  
               <RoundRectangle CornerRadius="0,0,0,40" />  
           </Border.StrokeShape>  
    

    Best Regards,

    Leon Lu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.