Font Icon Background

Jassim Al Rahma 1,616 Reputation points
2023-01-10T14:26:04.55+00:00

Hi,

In below image

277982-52a85fec-0d80-43a9-b736-187c7c5d1ff9-4-5005-c.jpeg

I am using a fontawesome on the top of a Border but as you can see that the border line is visible inside the icon.

How can I fix this?

Thanks, Jassim

Developer technologies .NET .NET MAUI
{count} votes

Accepted answer
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 36,436 Reputation points Microsoft External Staff
    2023-01-13T09:50:26.1133333+00:00

    Hello,

    Please try to set the BackgroundColor for the Image, and the color should response the theme, I test Black and White, you can set the color according to your needs, refer to the following code:

      <Image BackgroundColor="{AppThemeBinding Light= "White", Dark= Black}"... Margin="0,0,0,-30" VerticalOptions="End" >
    

    Best Regards,

    Wenyan Zhang


    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 documentationto enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

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.