Skip to content

davqq/MahAppsIconPackPreview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MahApps.IconPack Preview Extension

License Platform NuGet

Overview

The MahApps.IconPack Preview Extension is a Visual Studio Code extension that provides an instant preview of icons from the MahApps.Metro.IconPacks directly in your code. This extension is designed to streamline the development process by offering a visual representation of icons right within your development environment.

Features

  • Real-time Icon Preview: Displays a preview of the icons as you work in the code.
  • Support for all MahApps.IconPacks: Compatible with all icon packs available in MahApps.Metro.IconPacks.
  • Easy Integration: Simply add the extension to your Visual Studio Code to start seeing previews instantly.

Installation

To install the MahApps.IconPack Preview Extension, follow these steps:

  1. Open Visual Studio Code.
  2. Go to the Extensions view (Ctrl+Shift+X).
  3. Search for MahApps.IconPack Preview.
  4. Click Install to add the extension to your editor. Alternatively, you can install the extension directly from the Visual Studio Code Marketplace.

Usage

  1. After installing the extension, open any .cs or .xaml file that uses MahApps.Metro.IconPacks.
  2. When you enter an icon key (e.g., PackIconModernKind.Settings, Kind=Settings) in your code, a preview of the corresponding icon will appear.
  3. Hover over the icon, and a tooltip will appear displaying the icon in a larger size.

⚠️Warning⚠️

Ensure that the version of the MahApps.IconPack Preview Extension matches the version of the installed NuGet package for MahApps.Metro.IconPacks in your project. Using mismatched versions might result in incorrect or missing icon previews.

Examples

Here are some examples of how the preview might appear in your code:

image image

When you hover over the icon, the corresponding icon will be displayed.

Support & Feedback

If you encounter any issues or have feedback about the extension, please open an Issue in the repository. We value your contributions and look forward to improving the extension together.

License

This project is licensed under the MIT License.

Acknowledgements

This extension was inspired by the excellent work on MahApps.Metro.IconPacks. Many thanks to the original developers!