Icon scaling in Desktop

Eduardo Gomez Romero 625 Reputation points
2024-09-22T16:43:41.8+00:00

Screenshot 2024-09-22 183506

So, I have my custom icon for my app in my phone

METROWIND

But when I see it on desktop is tiny

User's image

and I want to see it like this
User's image

this is my csprog file

<ItemGroup>
	<!-- App Icon -->
	<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" />

	<!-- Images -->	
	<MauiImage Include="Resources\Images\*" />
	<MauiImage Update="Resources\Images\charge_station.png">
		
	  <CopyToOutputDirectory></CopyToOutputDirectory>
	</MauiImage>
	<MauiImage Update="Resources\Images\dotnet_bot.png" Resize="True" BaseSize="300,185">
	  <CopyToOutputDirectory></CopyToOutputDirectory>
	</MauiImage>
	<MauiImage Update="Resources\Images\no_image.png">
	  <CopyToOutputDirectory></CopyToOutputDirectory>
	</MauiImage>
	<MauiImage Update="Resources\Images\wind_turbine.png">
	  <CopyToOutputDirectory></CopyToOutputDirectory>
	</MauiImage> 
	
	<!-- Custom Fonts -->
	<MauiFont Include="Resources\Fonts\*" />

	<!-- Raw Assets (also remove the "Resources\Raw" prefix) -->
	<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
</ItemGroup>

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

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.