Добавлен проект UI
This commit is contained in:
16
Lattice.UI/Primitives/LatticeIcon.cs
Normal file
16
Lattice.UI/Primitives/LatticeIcon.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using Microsoft.UI.Xaml.Controls;
|
||||
using Microsoft.UI.Xaml.Media;
|
||||
|
||||
namespace Lattice.UI.Primitives;
|
||||
|
||||
/// <summary>
|
||||
/// Утилита для быстрого получения иконок в стиле Fluent UI 2.
|
||||
/// </summary>
|
||||
public static class LatticeIcon
|
||||
{
|
||||
public static FontIcon GetIcon(string glyph) => new FontIcon
|
||||
{
|
||||
Glyph = glyph,
|
||||
FontFamily = new FontFamily("Segoe Fluent Icons")
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user