Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing link of Microsoft.UI.ColorHelper.ToDisplayName. Is it removed? #2120

Closed
vmx17 opened this issue Nov 22, 2021 · 5 comments
Closed

missing link of Microsoft.UI.ColorHelper.ToDisplayName. Is it removed? #2120

vmx17 opened this issue Nov 22, 2021 · 5 comments
Assignees
Labels
Pri2 Topic is in the second 25% of page views for the repo. uwp/prod Topic product is UWP-related. winrt-reference/tech Topic technology is WinRT-related.

Comments

@vmx17
Copy link

vmx17 commented Nov 22, 2021

at the Definition section,
"Equivalent WinUI method: Microsoft.UI.ColorHelper.ToDisplayName."
Hyperlink target of "Microsoft.UI.ColorHelper.ToDisplayName" is missing.
And, Refer to WinUI Project's Error, "Microsoft.UI.ColorHelper" seems not include "ToDisplayName" method. Can I mix Windows.UI and Microsoft.UI? Around Color class, I oftenly get errors like CS0029 "Cannot implicitly convert typw 'Windows.UI.Color' to 'Microsoft.UI.Colors'".


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@PRMerger9 PRMerger9 added uwp/prod Topic product is UWP-related. winrt-reference/tech Topic technology is WinRT-related. labels Nov 22, 2021
@jaigak
Copy link
Contributor

jaigak commented Nov 29, 2021

You can still use Windows.UI.ColorHelper in a WinUI 3 app.

@PRMerger5 PRMerger5 added the Pri2 Topic is in the second 25% of page views for the repo. label Dec 1, 2021
@jwmsft
Copy link
Contributor

jwmsft commented Feb 16, 2023

Microsoft.UI.ColorHelper does not include ToDisplayName. The incorrect links have been cleaned up.

@jwmsft jwmsft closed this as completed Feb 16, 2023
@michael-hawker
Copy link
Contributor

@jwmsft this is a UWP api that we need to understand how to map to the Windows App SDK / WinUI 3... I think that's the root issue. Don't think this is resolved?

@michael-hawker
Copy link
Contributor

Filed microsoft/microsoft-ui-xaml#8287 to ask explicitly about what the replacement is supposed to be here.

@JaiganeshKumaran I get red squiggles trying to use the Windows.UI version explicitly Windows.UI.ColorHelper.ToDisplayName(color):

image

@jaigak
Copy link
Contributor

jaigak commented Mar 16, 2023

@michael-hawker Okay, C#/WinRT doesn't project some Windows.UI* and all Windows.UI.Xaml* types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pri2 Topic is in the second 25% of page views for the repo. uwp/prod Topic product is UWP-related. winrt-reference/tech Topic technology is WinRT-related.
Projects
None yet
Development

No branches or pull requests

6 participants