Open efreykongcn opened 8 months ago
Exception says cannot find resource TabViewButtonBackground, don't know why SelectorBar needs TabViewButtonBackground. post full XAML for MainWindow
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.
@michael-hawker @Arlodotexe
@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" -- This is just to filter the preview packages.
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 MainLatest
feed: https://pkgs.dev.azure.com/dotnet/CommunityToolkit/_packaging/CommunityToolkit-MainLatest/nuget/v3/index.json
That'll have the latest builds from our main
branch. The Settings Controls were moved out of Labs a while ago before we shipped 8.0 even.
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:Failed to assign to property 'Microsoft.UI.Xaml.Controls.ItemsRepeater.ItemTransitionProvider'. [Line: 0 Position: 0]