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

How do I use controls from the toolkit #416

Open
xyzzer opened this issue May 2, 2024 · 1 comment
Open

How do I use controls from the toolkit #416

xyzzer opened this issue May 2, 2024 · 1 comment

Comments

@xyzzer
Copy link

xyzzer commented May 2, 2024

Type of issue

Missing information

Description

I was just trying to use this toolkit for the first time and I have no idea how. I managed to figure out which Nuget package to add from the gallery app to use SettingsCard control, but I think I also need to merge some resource dictionaries and I can't figure out how and which. Am I missing something obvious? Seems like something that should be improved. I was trying to guess, but the below didn't work:
<ResourceDictionary Source="ms-appx:///CommunityToolkit.WinUI.Controls.SettingsControls/SettingsCard/SettingsCard.xaml" /

Page URL

https://learn.microsoft.com/en-us/dotnet/communitytoolkit/windows/getting-started

Content source URL

https://github.com/MicrosoftDocs/CommunityToolkit/blob/main/docs/windows/getting-started.md

Document Version Independent Id

36eee29f-463a-1ca5-597c-43c0ddd7f6c2

Article author

@michael-hawker

Metadata

  • ID: 36eee29f-463a-1ca5-597c-43c0ddd7f6c2
  • Service: dotnet-communitytoolkit
  • Sub-service: windows-community-toolkit
@michael-hawker
Copy link
Contributor

There's not extra resources like that you need to merge, though you should ensure you've properly configured your application to use the WinUI 2 resources in your App.xaml (if using UWP).

If you could provide more details on what type of app you're trying to build, how you're going about things, and what errors/problems you're seeing, we can provide better guidance.

FYI @Arlodotexe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants