[WinUI] The 'Icon' property that can be attached was not found in type 'SvgAwesome'.
djonasdev opened this issue · 3 comments
djonasdev commented
Using the attached property SvgAwesome.Icon
does not work.
<Button svg:SvgAwesome.Icon="Soild_Flags"/>
*.csproj
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows10.0.18362.0</TargetFramework>
<TargetPlatformMinVersion>10.0.18362.0</TargetPlatformMinVersion>
<RootNamespace>HtSuite.WinUI.Leitstand</RootNamespace>
<ApplicationManifest>app.manifest</ApplicationManifest>
<Platforms>x86;x64;arm64</Platforms>
<RuntimeIdentifiers>win10-x86;win10-x64;win10-arm64</RuntimeIdentifiers>
<PublishProfile>win10-$(Platform).pubxml</PublishProfile>
<UseWinUI>true</UseWinUI>
<EnablePreviewMsixTooling>true</EnablePreviewMsixTooling>
<WindowsPackageType>None</WindowsPackageType>
<SupportedOSPlatformVersion>10.0.18362.0</SupportedOSPlatformVersion>
</PropertyGroup>
MartinTopfstedt commented
Hi, WinUI does not have attached property support right now.
djonasdev commented
Thanks for the fast respond. 👍 Unfortunately, it is difficult to see from the readme.
MartinTopfstedt commented
I will see if i can improve the README, and probably implement this at some time.