Skip to main content

ModernUI

The Modern UI Icons set, packaged as a Wisej.NET icon pack: 1,276 monochrome SVG icons in the flat Windows "Metro" app bar style, including many brand and technology logos.

Installation​

Add the Wisej-4-ModernUI package to your Wisej.NET project, either with the NuGet Package Manager or from the command line:

dotnet add package Wisej-4-ModernUI

The package targets .NET Framework 4.8 and .NET 8 or later. It contains one assembly, Wisej.Ext.ModernUI.dll, and that DLL is all you deploy. There's nothing to register. After a rebuild, the pack appears as a folder in the Visual Studio ImageSource editor. See Picking icons in Visual Studio.

Browse the icons​

Every icon in the pack, drawn from the SVG files the assembly embeds. Type to filter by file name or constant name, and select an icon for its constant, its resource.wx URL and a ready-to-paste assignment, each with a copy button. The icons are shown in the page's text color, the way they follow the theme's icon color in an application; the color swatch in the preview tries a ?color= value.

Loading the icons…

Using the icons​

Every icon is an embedded SVG served at resource.wx/Wisej.Ext.ModernUI/<file-name>. In code, use the constants of the static Wisej.Ext.ModernUI.Icons class, which already hold the full URL:

// The constant holds "resource.wx/Wisej.Ext.ModernUI/appbar.home.empty.svg".
this.button1.ImageSource = Wisej.Ext.ModernUI.Icons.AppbarHomeEmpty;

// The same icon by URL, for example when the name comes from data.
this.button1.ImageSource = "resource.wx/Wisej.Ext.ModernUI/appbar.home.empty.svg";

// A specific color instead of the theme's icon color.
this.button1.ImageSource = Wisej.Ext.ModernUI.Icons.AppbarHomeEmpty + "?color=SteelBlue";

The URL works in any property that takes an image source (ImageSource, Icon, BackgroundImageSource, …), and also in HTML and CSS.

Icon names​

Each constant of the Icons class is the file name in PascalCase:

FileConstant
appbar.home.empty.svgIcons.AppbarHomeEmpty
appbar.acorn.svgIcons.AppbarAcorn
appbar.3d.3ds.svgIcons.Appbar3d3ds

Every file name starts with appbar. and uses dots between words, so every constant starts with Appbar.

Colors​

The icons are monochrome, so they follow the theme's icon color and respond to ?color=. Each one is drawn on a 76 × 76 canvas with a generous built-in margin, so it looks smaller than icons from other packs at the same size. Use a named color, #rrggbb, rgb()/rgba(), or the name of a theme color (for example ?color=activeText). See SVG Colors.

License​

The icons are distributed under the terms set by their author. Review the terms on the ModernUI site before you redistribute them. The Wisej.NET wrapper assembly is part of the Wisej.NET extensions.

See also​