Skip to content

Commit 316c99e

Browse files
committed
Added note about WinUI compatibility
1 parent 4b1ea4b commit 316c99e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/extensions/IconMarkupExtensions.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,10 @@ The [SymbolIconSource markup extension](https://docs.microsoft.com/en-us/dotnet/
188188
| IsTextScaleFactorEnabled | bool | Indicates whether automatic text enlargement, to reflect the system text size setting, is enabled. |
189189
| MirroredWhenRightToLeft | bool | Indicates whether the icon is mirrored when the flow direction is right to left. |
190190

191+
## Remarks
192+
193+
All the values returned by these markup extensions belong to the `Windows.UI.Xaml.*` namespace. This means that they will only work properly when used with controls from that namespace, and not from `Microsoft.UI.Xaml.*` (the WinUI namespace). For instance, trying to use the `FontIconSourceExtension` to set the `IconSource` property on the `Microsoft.UI.Xaml.Controls.SwipeItems` will not work correctly, as the extension will produce a `Windows.UI.Xaml.Controls.FontIconSource` value instead of a `Microsoft.UI.Xaml.Controls.FontIconSource` one. When working with WinUI controls, you'll need to manually declare the icons you need with the explicit XAML syntax.
194+
191195
## Requirements
192196

193197
| Device family | Universal, 10.0.16299.0 or higher |

0 commit comments

Comments
 (0)