-
Notifications
You must be signed in to change notification settings - Fork 70
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
CommunityTookit controls conflicts with WindowsAppSDK 1.5 control #365
Comments
Exception says cannot find resource TabViewButtonBackground, don't know why SelectorBar needs TabViewButtonBackground. |
I've updated the bug comment with full xaml file content for MainWnidow and App, and corrected the snapshot. @insomniachi |
@efreykongcn 8.0 wasn't built against 1.5, it's the same issue was you found in the WinUI repo. If you look at our https://aka.ms/wct/wiki/previewpackages latest feed, they now build against 1.5 and should work. |
Like @michael-hawker said. The preview packages for 8.1 should have what you need, let us know if they fix the issue for you @efreykongcn! |
I followed the Preview Packages instructions and updated communitytoolkit packages (SettingsControls and TokenizingTextBox) to 1.0.0 (published on 2/27/2024) , and then build and run the test app, it works as expected. So I think this release does fix the issue. |
@efreykongcn Here's the issues I can see in your screenshot:
|
@Arlodotexe Thanks for your reply, here's my notes: Issue 1 NuGet Package Explorer is set to "Windows Community Toolkit Labs" Issue 2, The URL for the "Windows Community Toolkit Labs" is set to the PullRequests feed, not the labs feed -- I added the labs feed at the first time, but the labs feed doesn't provide any release of preview packages (Pls see the snapshot). I've tried all those 3 sources (Labs, latest, pull requests), only PullRequests feed provides new release of the packages, which published date is 2/27/2024, but version is 1.0.0. |
@efreykongcn see https://aka.ms/wct/wiki/previewpackages for more info, but sounds like you're looking for the That'll have the latest builds from our Though we recently shipped previews on NuGet itself in preparation for our 8.1 release (for that you need to check the 'include prerelease' checkbox next to the search box to see them). @Arlodotexe maybe we should list the Latest feed first in the wiki? Can also call out the Nuget checkbox too. And also, maybe add details about the version numbers, breakdown of the date format and also how the build number corresponds to the action run number and such? (Similarly for the PR one we could break down the PR number that's included, and remove the Nerdbank info as we don't use that anymore.) |
@michael-hawker Thanks a lot. I just updated the package to 8.1.240328-rc from nuget.org source, it satisfied my requirements. |
Describe the bug
I have an WinUI project which using CommunityToolkit controls (SettingsControls etc.)
After upgrade the WindowsAppSDK to 1.5, and using Selectorbar control in a new page, run app and visit the new page, the app throws
Microsoft.UI.Xaml.Markup.XamlParseException
with error messageThe text associated with this error code could not be found. Cannot find a Resource with the Name/Key
.If I remove the CommunityToolkit reference, the SelectorBar page can be displayed correctly.
Steps to reproduce
Below is full content of
App.xaml
file:Below is the full content of
MainWindow.xaml
file:Expected behavior
App should display the page with selectorbar control.
Screenshots
Code Platform
Windows Build Number
Other Windows Build number
No response
App minimum and target SDK version
Other SDK version
No response
Visual Studio Version
2022
Visual Studio Build Number
No response
Device form factor
Desktop
Additional context
There is a similar issue on Microsoft WinUI repo: microsoft/microsoft-ui-xaml#8810.
Help us help you
Yes, I'd like to be assigned to work on this item.
The text was updated successfully, but these errors were encountered: