liveBook · Manning

Icon

As explained in .NET MAUI in Action

An app icon is a visual identifier for an application shown by an operating system, application store, or other application interface.

An app icon is the visual identifier users see in store listings, search results, notifications, and on a device before launching an app. Replacing the default .NET icon gives the application a distinctive, polished identity. section 12.1 section 12.4

Replace the default .NET MAUI icon

For MauiStockTake, copy icon-bg.svg and icon-fg.svg into Resources/AppIcon. Keep the default filenames by deleting appicon.svg and appiconfg.svg, then renaming the supplied files. In the project file, define a MauiIcon item with Include for the main icon and ForegroundFile for the foreground layer. Clean and rebuild, remove the app from the device or simulator, and run it again to verify the updated icon. section 12.1.1

Compose a .NET MAUI app icon from up to four layers:

Use SVG files where possible because they scale without losing fidelity. .NET MAUI uses Resizetizer to generate the required image sizes and platform assets automatically; generated images are PNG files when referenced by application code. section 12.1.3 section 12.4

Figure 12.4 An app icon in .NET MAUI can be composed of four layers: a background color, an icon, a foreground icon, and a tint color.

Use the layered composition diagram to distinguish the background color, primary icon, foreground image, and tint color. section 12.1.2

How .NET MAUI in Action covers it

How deep it goes
Explains layered composition, project configuration, replacement steps, and automatic resizing, but does not develop icon-design principles.
Examples
Uses MauiStockTake, icon-bg.svg, icon-fg.svg, MauiIcon configuration, and a rebuilt iOS installation as practical examples.
What it assumes
Assumes a .NET MAUI project and basic project-file familiarity while teaching layered icons and asset replacement procedurally.
What you can do after
Operate/configure a .NET MAUI project with a custom layered icon that automatically produces platform-specific sizes.
How it connects
Connects app icons with .NET MAUI, SVG, Resizetizer, image assets, splash screens, and application stores.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of .NET MAUI in Action. The section links point to the parts of the book it draws on.