how to set cornerradius to broder?

mc 5,061 Reputation points
2023-07-05T09:48:18.1833333+00:00

how to set a corner radius to a border?

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

Accepted answer
  1. Leon Lu (Shanghai Wicresoft Co,.Ltd.) 78,586 Reputation points Microsoft Vendor
    2023-07-06T02:31:19+00:00

    Hello,

    how to set a corner radius to a border?

    You can do this by setting RoundRectangle and adding corner radius to StrokeShape property directly.

       <Border 
              StrokeShape="RoundRectangle 10,10,10,10">
    

    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.


0 additional answers

Sort by: Most 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.