Hello,
If you want to implement this same result with other controls, you can use Border and Image to implement it. You can set Border.StrokeShape to add the border and add command to TapGestureRecognizer
like following code.
<Border HeightRequest="36"
WidthRequest="36"
Margin="0,10,15,10"
Padding="6"
BackgroundColor="{StaticResource Neutral085}"
>
<Border.StrokeShape>
<RoundRectangle CornerRadius="18" />
</Border.StrokeShape>
<Image Source="Icons/close.png">
<Image.GestureRecognizers>
<TapGestureRecognizer Command="{Binding CancelCommand}"/>
</Image.GestureRecognizers>
</Image>
</Border>
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.