How to fit Applogo icon in .Net Maui

Anuradha Aluri 0 Reputation points
2023-05-05T12:03:09.66+00:00

Applogo is not fitting to correct size and for another icon replacing its resolution issue is coming

Developer technologies | .NET | .NET MAUI
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 50,126 Reputation points Microsoft External Staff
    2023-05-09T01:51:24.96+00:00

    Hello,

    For how to change the size of your App Logo Icon, please refer to the solutions given in this official document:

    The base size is specified with the BaseSize="W,H" attribute, where W is the width of the icon and H is the height of the icon. The value specified as the base size must be divisible by 8. The following example sets the base size:

    XML

    Copy
    <ItemGroup>
        <MauiIcon Include="Resources\AppIcon\appicon.png" BaseSize="128,128" />
    </ItemGroup>
    

    Best Regards,

    Alec Liu.


    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 comments No comments

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.