{
UpdateIsEnabled();
}
- else if (e.PropertyName == ToolbarItem.IconProperty.PropertyName)
+ else if (e.PropertyName == ToolbarItem.IconImageSourceProperty.PropertyName)
{
UpdateIcon();
}
else if (flyoutGroup[j] is MenuItem menuItem)
{
title = menuItem.Text;
- if (menuItem.Icon != null)
+ if (menuItem.IconImageSource is FileImageSource source)
{
- icon = menuItem.Icon.File;
+ icon = source.File;
}
}
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
- <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningsAsErrors>NU1605</WarningsAsErrors>
</PropertyGroup>