question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot use PathIconSource for TabViewItem.IconSource

See original GitHub issue

When 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:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
chingucodingcommented, Oct 19, 2020

I would like to look into this.

0reactions
mikernetcommented, Aug 13, 2023

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found