Skip to content

Commit 4ddad7f

Browse files
committed
Merge branch 'develop'
2 parents 6e4ec24 + 43ca77e commit 4ddad7f

32 files changed

+2307
-1353
lines changed

GitVersion.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
assembly-versioning-scheme: Major
22
assembly-file-versioning-scheme: MajorMinorPatchTag
3-
next-version: 6.0.0
3+
next-version: 6.1.0
44
mode: ContinuousDeployment
55
branches:
66
master:

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ The same icons are also available for [Avalonia](https://avaloniaui.net/ with th
3333

3434
| Icon collection | Version | ∑ | NuGet |
3535
|---|--:|--:|:--|
36-
| Complete IconPacks collection with all Icons in one package | | 65181 | <a href="https://www.nuget.org/packages/MahApps.Metro.IconPacks/" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/nuget/dt/MahApps.Metro.IconPacks.svg?style=flat-square&&label=IconPacks"></a> |
36+
| Complete IconPacks collection with all Icons in one package | | 65612 | <a href="https://www.nuget.org/packages/MahApps.Metro.IconPacks/" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/nuget/dt/MahApps.Metro.IconPacks.svg?style=flat-square&&label=IconPacks"></a> |
3737
| [Bootstrap Icons](https://icons.getbootstrap.com/) | 1.13.1 | 2078 | <a href="https://www.nuget.org/packages/MahApps.Metro.IconPacks.BootstrapIcons/" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/nuget/dt/MahApps.Metro.IconPacks.BootstrapIcons.svg?style=flat-square&&label=BootstrapIcons"></a> |
3838
| [Boxicons](https://boxicons.com/) | 2.1.4 | 1634 | <a href="https://www.nuget.org/packages/MahApps.Metro.IconPacks.BoxIcons/" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/nuget/dt/MahApps.Metro.IconPacks.BoxIcons.svg?style=flat-square&&label=BoxIcons"></a> |
3939
| [Circum Icons Free](https://github.com/Klarr-Agency/Circum-Icons) | 2.0.2 | 288 | <a href="https://www.nuget.org/packages/MahApps.Metro.IconPacks.CircumIcons/" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/nuget/dt/MahApps.Metro.IconPacks.CircumIcons.svg?style=flat-square&&label=CircumIcons"></a> |
40-
| [Codicons](https://github.com/microsoft/vscode-codicons) | 0.0.38 | 492 | <a href="https://www.nuget.org/packages/MahApps.Metro.IconPacks.Codicons/" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/nuget/dt/MahApps.Metro.IconPacks.Codicons.svg?style=flat-square&&label=Codicons"></a> |
40+
| [Codicons](https://github.com/microsoft/vscode-codicons) | 0.0.39 | 493 | <a href="https://www.nuget.org/packages/MahApps.Metro.IconPacks.Codicons/" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/nuget/dt/MahApps.Metro.IconPacks.Codicons.svg?style=flat-square&&label=Codicons"></a> |
4141
| [Coolicons](https://github.com/krystonschwarze/coolicons) | 4.1 | 442 | <a href="https://www.nuget.org/packages/MahApps.Metro.IconPacks.Coolicons/" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/nuget/dt/MahApps.Metro.IconPacks.Coolicons.svg?style=flat-square&&label=Coolicons"></a> |
4242
| [Entypo+](http://www.entypo.com/) | | 411 | <a href="https://www.nuget.org/packages/MahApps.Metro.IconPacks.Entypo/" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/nuget/dt/MahApps.Metro.IconPacks.Entypo.svg?style=flat-square&&label=Entypo"></a> |
4343
| [Eva Icons](https://akveo.github.io/eva-icons/) | 1.1.3 | 490 | <a href="https://www.nuget.org/packages/MahApps.Metro.IconPacks.EvaIcons/" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/nuget/dt/MahApps.Metro.IconPacks.EvaIcons.svg?style=flat-square&&label=EvaIcons"></a> |
@@ -52,7 +52,8 @@ The same icons are also available for [Avalonia](https://avaloniaui.net/ with th
5252
| [Game Icons](https://github.com/game-icons/icons) | May 4, 2025 | 4170 | <a href="https://www.nuget.org/packages/MahApps.Metro.IconPacks.GameIcons/" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/nuget/dt/MahApps.Metro.IconPacks.GameIcons.svg?style=flat-square&&label=GameIcons"></a> |
5353
| [Ionicons](https://ionicons.com/) | 4.6.4.1 | 696 | <a href="https://www.nuget.org/packages/MahApps.Metro.IconPacks.Ionicons/" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/nuget/dt/MahApps.Metro.IconPacks.Ionicons.svg?style=flat-square&&label=Ionicons"></a> |
5454
| [Jam Icons](https://jam-icons.com/) | 3.1.0 | 940 | <a href="https://www.nuget.org/packages/MahApps.Metro.IconPacks.JamIcons/" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/nuget/dt/MahApps.Metro.IconPacks.JamIcons.svg?style=flat-square&&label=JamIcons"></a> |
55-
| [Lucide Icons](https://github.com/lucide-icons/lucide) | 0.525.0 | 1611 | <a href="https://www.nuget.org/packages/MahApps.Metro.IconPacks.Lucide/" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/nuget/dt/MahApps.Metro.IconPacks.Lucide.svg?style=flat-square&&label=Lucide"></a> |
55+
| [Keyrune Icons](https://github.com/andrewgioia/keyrune) | 3.17.1 | 404 | <a href="https://www.nuget.org/packages/MahApps.Metro.IconPacks.KeyruneIcons/" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/nuget/dt/MahApps.Metro.IconPacks.KeyruneIcons.svg?style=flat-square&&label=KeyruneIcons"></a> |
56+
| [Lucide Icons](https://github.com/lucide-icons/lucide) | 0.539.0 | 1630 | <a href="https://www.nuget.org/packages/MahApps.Metro.IconPacks.Lucide/" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/nuget/dt/MahApps.Metro.IconPacks.Lucide.svg?style=flat-square&&label=Lucide"></a> |
5657
| [Material Design Icons](https://pictogrammers.com/library/mdi/) | 7.4.47 | 7447 | <a href="https://www.nuget.org/packages/MahApps.Metro.IconPacks.Material/" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/nuget/dt/MahApps.Metro.IconPacks.Material.svg?style=flat-square&&label=Material"></a> |
5758
| [Material Design Icons Light](https://github.com/Templarian/MaterialDesignLight) | 0.2.63 | 257 | <a href="https://www.nuget.org/packages/MahApps.Metro.IconPacks.MaterialLight/" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/nuget/dt/MahApps.Metro.IconPacks.MaterialLight.svg?style=flat-square&&label=MaterialLight"></a> |
5859
| [Material Icons (Google)](https://github.com/google/material-design-icons) | 4.0.0 | 8413 | <a href="https://www.nuget.org/packages/MahApps.Metro.IconPacks.MaterialDesign/" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/nuget/dt/MahApps.Metro.IconPacks.MaterialDesign.svg?style=flat-square&&label=MaterialDesign"></a> |
@@ -61,14 +62,14 @@ The same icons are also available for [Avalonia](https://avaloniaui.net/ with th
6162
| [MingCute Icon](https://github.com/Richard9394/MingCute) | 2.9.6 | 3098 | <a href="https://www.nuget.org/packages/MahApps.Metro.IconPacks.MingCuteIcons/" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/nuget/dt/MahApps.Metro.IconPacks.MingCuteIcons.svg?style=flat-square&&label=MingCuteIcons"></a> |
6263
| [Modern UI Icons](https://github.com/Templarian/WindowsIcons) | Feb 12, 2015 | 1260 | <a href="https://www.nuget.org/packages/MahApps.Metro.IconPacks.Modern/" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/nuget/dt/MahApps.Metro.IconPacks.Modern.svg?style=flat-square&&label=Modern"></a> |
6364
| [MynaUI Icons](https://github.com/praveenjuge/mynaui-icons) | 0.3.9 | 2544 | <a href="https://www.nuget.org/packages/MahApps.Metro.IconPacks.MynaUIIcons/" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/nuget/dt/MahApps.Metro.IconPacks.MynaUIIcons.svg?style=flat-square&&label=MynaUIIcons"></a> |
64-
| [Primer Octicons (GitHub)](https://github.com/primer/octicons) | 19.15.4 | 657 | <a href="https://www.nuget.org/packages/MahApps.Metro.IconPacks.Octicons/" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/nuget/dt/MahApps.Metro.IconPacks.Octicons.svg?style=flat-square&&label=Octicons"></a> |
65+
| [Primer Octicons (GitHub)](https://github.com/primer/octicons) | 19.15.5 | 657 | <a href="https://www.nuget.org/packages/MahApps.Metro.IconPacks.Octicons/" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/nuget/dt/MahApps.Metro.IconPacks.Octicons.svg?style=flat-square&&label=Octicons"></a> |
6566
| [Phosphor Icons](https://phosphoricons.com/) | 2.1.1 | 7560 | <a href="https://www.nuget.org/packages/MahApps.Metro.IconPacks.PhosphorIcons/" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/nuget/dt/MahApps.Metro.IconPacks.PhosphorIcons.svg?style=flat-square&&label=PhosphorIcons"></a> |
6667
| [PICOL Icons](https://github.com/PicolSigns/Icons) | 1.1.0 | 549 | <a href="https://www.nuget.org/packages/MahApps.Metro.IconPacks.PicolIcons/" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/nuget/dt/MahApps.Metro.IconPacks.PicolIcons.svg?style=flat-square&&label=PicolIcons"></a> |
6768
| [Pixelarticons](https://pixelarticons.com/) | 1.8.1 | 486 | <a href="https://www.nuget.org/packages/MahApps.Metro.IconPacks.PixelartIcons/" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/nuget/dt/MahApps.Metro.IconPacks.PixelartIcons.svg?style=flat-square&&label=PixelartIcons"></a> |
6869
| [Radix Icons](https://github.com/radix-ui/icons) | 1.3.0 | 324 | <a href="https://www.nuget.org/packages/MahApps.Metro.IconPacks.RadixIcons/" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/nuget/dt/MahApps.Metro.IconPacks.RadixIcons.svg?style=flat-square&&label=RadixIcons"></a> |
6970
| [Remix Icon](https://remixicon.com/) | 4.6.0 | 3058 | <a href="https://www.nuget.org/packages/MahApps.Metro.IconPacks.RemixIcon/" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/nuget/dt/MahApps.Metro.IconPacks.RemixIcon.svg?style=flat-square&&label=RemixIcon"></a> |
7071
| [RPG Awesome](http://nagoshiashumari.github.io/Rpg-Awesome/) | 0.2.0 | 495 | <a href="https://www.nuget.org/packages/MahApps.Metro.IconPacks.RPGAwesome/" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/nuget/dt/MahApps.Metro.IconPacks.RPGAwesome.svg?style=flat-square&&label=RPGAwesome"></a> |
71-
| [Simple Icons](https://github.com/simple-icons/simple-icons) | 15.7.0 | 3336 | <a href="https://www.nuget.org/packages/MahApps.Metro.IconPacks.SimpleIcons/" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/nuget/dt/MahApps.Metro.IconPacks.SimpleIcons.svg?style=flat-square&&label=SimpleIcons"></a> |
72+
| [Simple Icons](https://github.com/simple-icons/simple-icons) | 15.10.0 | 3343 | <a href="https://www.nuget.org/packages/MahApps.Metro.IconPacks.SimpleIcons/" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/nuget/dt/MahApps.Metro.IconPacks.SimpleIcons.svg?style=flat-square&&label=SimpleIcons"></a> |
7273
| [Typicons](https://www.s-ings.com/typicons/) | 2.1.2 | 336 | <a href="https://www.nuget.org/packages/MahApps.Metro.IconPacks.Typicons/" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/nuget/dt/MahApps.Metro.IconPacks.Typicons.svg?style=flat-square&&label=Typicons"></a> |
7374
| [Unicons](https://github.com/Iconscout/unicons) | 4.2.0 | 1610 | <a href="https://www.nuget.org/packages/MahApps.Metro.IconPacks.Unicons/" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/nuget/dt/MahApps.Metro.IconPacks.Unicons.svg?style=flat-square&&label=Unicons"></a> |
7475
| [Vaadin Icons](https://vaadin.com/icons) | 24.8.4 | 636 | <a href="https://www.nuget.org/packages/MahApps.Metro.IconPacks.VaadinIcons/" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/nuget/dt/MahApps.Metro.IconPacks.VaadinIcons.svg?style=flat-square&&label=VaadinIcons"></a> |

src/MahApps.Metro.IconPacks.Codicons/PackIconCodiconsKind.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,7 @@ public enum PackIconCodiconsKind
400400
[Description("search-sparkle (EC50)")] SearchSparkle,
401401
[Description("search-stop (EB4E)")] SearchStop,
402402
[Description("send (EC0F)")] Send,
403+
[Description("send-to-remote-agent (EC53)")] SendToRemoteAgent,
403404
[Description("server (EB50)")] Server,
404405
[Description("server-environment (EBA3)")] ServerEnvironment,
405406
[Description("server-process (EBA2)")] ServerProcess,
@@ -432,7 +433,7 @@ public enum PackIconCodiconsKind
432433
[Description("symbol-enum-member (EB5E)")] SymbolEnumMember,
433434
[Description("symbol-event (EA86)")] SymbolEvent,
434435
[Description("symbol-field (EB5F)")] SymbolField,
435-
[Description("symbol-file (F2A0)")] SymbolFile,
436+
[Description("symbol-file (F2A1)")] SymbolFile,
436437
[Description("symbol-interface (EB61)")] SymbolInterface,
437438
[Description("symbol-key (EA93)")] SymbolKey,
438439
[Description("symbol-keyword (EB62)")] SymbolKeyword,

src/MahApps.Metro.IconPacks.Codicons/Resources/Icons.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project Sdk="Microsoft.NET.Sdk">
3+
4+
<PropertyGroup>
5+
<DefineConstants>$(DefineConstants);KEYRUNEICONS</DefineConstants>
6+
<IconsName>KeyruneIcons</IconsName>
7+
<AssemblyName>MahApps.Metro.IconPacks.KeyruneIcons</AssemblyName>
8+
<Title>MahApps.Metro.IconPacks.KeyruneIcons</Title>
9+
<RootNamespace>MahApps.Metro.IconPacks</RootNamespace>
10+
</PropertyGroup>
11+
12+
<ItemGroup>
13+
<ProjectReference Include="..\MahApps.Metro.IconPacks.Core\MahApps.Metro.IconPacks.Core.csproj" />
14+
</ItemGroup>
15+
16+
<ItemGroup>
17+
<Compile Remove="Resources\*.*" />
18+
<EmbeddedResource Include="Resources\*.*" />
19+
</ItemGroup>
20+
21+
<!-- WPF Items include -->
22+
<ItemGroup Condition="'$(IsWpf)' == 'true'">
23+
<None Remove="**\*.rd.xml" />
24+
<Compile Remove="Path*.*" />
25+
<Page Generator="MSBuild:Compile" Include="Themes\WPF\*.xaml" Link="Themes\%(RecursiveDir)%(Filename)%(Extension)" SubType="Designer" Exclude="**\bin\**\*.xaml;**\obj\**\*.xaml" />
26+
</ItemGroup>
27+
28+
<!-- UWP Items include -->
29+
<ItemGroup Condition="'$(IsUwp)' == 'true'">
30+
<Compile Remove="*Image*.cs;*Cursor*.cs" />
31+
<Compile Remove="Themes\**\*.*" />
32+
<EmbeddedResource Include="Properties\$(AssemblyName).rd.xml" />
33+
<Page Generator="MSBuild:Compile" Include="Themes\UAP\*.xaml" Link="Themes\%(RecursiveDir)%(Filename)%(Extension)" SubType="Designer" Exclude="**\bin\**\*.xaml;**\obj\**\*.xaml" />
34+
<Compile DependentUpon="%(Filename)" Update="**\*.xaml.cs" />
35+
</ItemGroup>
36+
37+
</Project>
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
using System;
2+
using System.Collections.Generic;
3+
#if (NETFX_CORE || WINDOWS_UWP)
4+
using Windows.UI.Xaml;
5+
using Windows.UI.Xaml.Data;
6+
#else
7+
using System.Windows;
8+
#endif
9+
10+
namespace MahApps.Metro.IconPacks
11+
{
12+
/// <summary>
13+
/// All icons sourced from GitHub <see><cref>https://github.com/andrewgioia/keyrune</cref></see>
14+
/// In accordance of <see><cref>https://github.com/andrewgioia/keyrune?tab=License-1-ov-file</cref></see>.
15+
/// </summary>
16+
[MetaData("Keyrune Icons", "https://github.com/andrewgioia/keyrune", "https://github.com/andrewgioia/keyrune?tab=License-1-ov-file")]
17+
public class PackIconKeyruneIcons : PackIconControlBase
18+
{
19+
public static readonly DependencyProperty KindProperty
20+
= DependencyProperty.Register(nameof(Kind), typeof(PackIconKeyruneIconsKind), typeof(PackIconKeyruneIcons), new PropertyMetadata(default(PackIconKeyruneIconsKind), KindPropertyChangedCallback));
21+
22+
private static void KindPropertyChangedCallback(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e)
23+
{
24+
if (e.NewValue != e.OldValue)
25+
{
26+
((PackIconKeyruneIcons)dependencyObject).UpdateData();
27+
}
28+
}
29+
30+
/// <summary>
31+
/// Gets or sets the icon to display.
32+
/// </summary>
33+
public PackIconKeyruneIconsKind Kind
34+
{
35+
get { return (PackIconKeyruneIconsKind)GetValue(KindProperty); }
36+
set { SetValue(KindProperty, value); }
37+
}
38+
39+
#if !(NETFX_CORE || WINDOWS_UWP)
40+
static PackIconKeyruneIcons()
41+
{
42+
DefaultStyleKeyProperty.OverrideMetadata(typeof(PackIconKeyruneIcons), new FrameworkPropertyMetadata(typeof(PackIconKeyruneIcons)));
43+
}
44+
#endif
45+
46+
public PackIconKeyruneIcons()
47+
{
48+
#if NETFX_CORE || WINDOWS_UWP
49+
this.DefaultStyleKey = typeof(PackIconKeyruneIcons);
50+
#endif
51+
}
52+
53+
protected override void SetKind<TKind>(TKind iconKind)
54+
{
55+
#if NETFX_CORE || WINDOWS_UWP
56+
BindingOperations.SetBinding(this, PackIconKeyruneIcons.KindProperty, new Binding() { Source = iconKind, Mode = BindingMode.OneTime });
57+
#else
58+
this.SetCurrentValue(KindProperty, iconKind);
59+
#endif
60+
}
61+
62+
protected override void UpdateData()
63+
{
64+
if (Kind != default(PackIconKeyruneIconsKind))
65+
{
66+
string data = null;
67+
PackIconDataFactory<PackIconKeyruneIconsKind>.DataIndex.Value?.TryGetValue(Kind, out data);
68+
this.Data = data;
69+
}
70+
else
71+
{
72+
this.Data = null;
73+
}
74+
}
75+
}
76+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
using System;
2+
using System.Windows;
3+
using System.Windows.Input;
4+
using System.Windows.Markup;
5+
using System.Windows.Media;
6+
7+
namespace MahApps.Metro.IconPacks
8+
{
9+
[MarkupExtensionReturnType(typeof(Cursor))]
10+
public class KeyruneIconsCursorExtension : KeyruneIconsImageExtension, IPackIconCursorExtension
11+
{
12+
public KeyruneIconsCursorExtension() : base() => base.Brush = PackIconCursorHelper.DefaultBrush;
13+
public KeyruneIconsCursorExtension(PackIconKeyruneIconsKind kind) : base(kind) => base.Brush = PackIconCursorHelper.DefaultBrush;
14+
15+
/// <inheritdoc/>
16+
public Point HotSpot { get; set; }
17+
/// <inheritdoc/>
18+
public double Width { get; set; } = PackIconCursorHelper.DefaultWidth;
19+
/// <inheritdoc/>
20+
public double Height { get; set; } = PackIconCursorHelper.DefaultHeight;
21+
/// <inheritdoc/>
22+
public Brush StrokeBrush { get; set; }
23+
/// <inheritdoc/>
24+
public double StrokeThickness { get; set; } = PackIconCursorHelper.DefaultStrokeThickness;
25+
26+
public override object ProvideValue(IServiceProvider serviceProvider)
27+
{
28+
TransformGroup transformGroup = (TransformGroup)GetTransformGroup(this.Kind);
29+
Geometry geometry = PackIconCursorHelper.GetCursorGeometry(GetPathData(this.Kind), transformGroup, Width, Height);
30+
return PackIconCursorHelper.GeometryToCursor(geometry, Brush, StrokeBrush, StrokeThickness, HotSpot);
31+
}
32+
}
33+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#if (NETFX_CORE || WINDOWS_UWP)
2+
using Windows.UI.Xaml.Markup;
3+
#else
4+
using System;
5+
using System.Windows.Markup;
6+
#endif
7+
8+
namespace MahApps.Metro.IconPacks
9+
{
10+
#if (NETFX_CORE || WINDOWS_UWP)
11+
[MarkupExtensionReturnType(ReturnType = typeof(PackIconKeyruneIcons))]
12+
#else
13+
[MarkupExtensionReturnType(typeof(PackIconKeyruneIcons))]
14+
#endif
15+
public class KeyruneIconsExtension : BasePackIconExtension
16+
{
17+
public KeyruneIconsExtension()
18+
{
19+
}
20+
21+
#if !(NETFX_CORE || WINDOWS_UWP)
22+
public KeyruneIconsExtension(PackIconKeyruneIconsKind kind)
23+
{
24+
this.Kind = kind;
25+
}
26+
27+
[ConstructorArgument("kind")]
28+
#endif
29+
public PackIconKeyruneIconsKind Kind { get; set; }
30+
31+
#if (NETFX_CORE || WINDOWS_UWP)
32+
protected override object ProvideValue()
33+
#else
34+
public override object ProvideValue(IServiceProvider serviceProvider)
35+
#endif
36+
{
37+
return this.GetPackIcon<PackIconKeyruneIcons, PackIconKeyruneIconsKind>(this.Kind);
38+
}
39+
}
40+
}

0 commit comments

Comments
 (0)