Cannot use PathIconSource for TabViewItem.IconSource
See original GitHub issueWhen I use SymbolIconSource
or FontIconSource
for TabViewItem.IconSource
, the application is happy… but when I use PathIconSource
for example:
<MUXC:TabViewItem Header="Bookmarks" IsClosable="False"> <MUXC:TabViewItem.IconSource> <MUXC:PathIconSource Data="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z"/> </MUXC:TabViewItem.IconSource> </MUXC:TabViewItem>
then I got an exception: “The parameter is incorrect.\r\n\r\nThe parameter is incorrect.\r\n” System.Exception {System.ArgumentException}
Version Info
NuGet package version: [Microsoft.UI.Xaml 2.4.2]
Windows 10 version | Saw the problem? |
---|---|
Insider Build (xxxxx) | |
November 2019 Update (18363) | |
May 2019 Update (18362) | Yes |
October 2018 Update (17763) | |
April 2018 Update (17134) | |
Fall Creators Update (16299) | |
Creators Update (15063) |
Device form factor | Saw the problem? |
---|---|
Desktop | Yes |
Mobile | |
Xbox | |
Surface Hub | |
IoT |
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Icon is not visible on TabViewItem C# UWP
I am trying to set the icon for a TabViewItem in C# for a UWP app. I am not getting any errors but...
Read more >TabViewItem.IconSource Property
Gets or sets the value for the IconSource to be displayed within the tab. This documentation applies to WinUI 2 for UWP (for...
Read more >无法使用tabviewitem.iconsource的PathIconSource - 软件工程师
Cannot use PathIconSource for TabViewItem.IconSource. When I use SymbolIconSource or FontIconSource for TabViewItem.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I would like to look into this.
Just ran into this. Is there a workaround I can use to get it working? This shouldn’t be closed, it’s still a problem.