A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
Hi @RobDev ,
Glad to hear you got it working.
The original XAML did not work because i:Name="close" only names the XAML element. It does not select which icon should be displayed.
For this package, the icon is selected through the Kind property. The value should include the icon_ prefix plus the icon name, for example:
<Menu Grid.Row="0">
<MenuItem Header="Adjust Colours">
<MenuItem.Icon>
<i:Icon i:Kind="icon_close" />
</MenuItem.Icon>
</MenuItem>
</Menu>
So in this case, the important part is:
<i:Icon i:Kind="icon_close" />
Here, icon_close tells the WPF-Icons control to render the close icon.
You can also place the icon directly as you tested, but using MenuItem.Icon is the usual WPF pattern for showing an icon beside a menu item. You can read more about the WPF side in the MenuItem.Icon property, and the available Kind usage is described on the WPF-Icons NuGet page.
If you found my response helpful or informative, I would greatly appreciate it if you could follow this guidance or provide feedback.
Thank you.