CommunityToolkit icon indicating copy to clipboard operation
CommunityToolkit copied to clipboard

How do I use controls from the toolkit

Open xyzzer opened this issue 2 months ago • 1 comments

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

xyzzer avatar May 02 '24 05:05 xyzzer

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

michael-hawker avatar May 06 '24 06:05 michael-hawker