-
Notifications
You must be signed in to change notification settings - Fork 777
Open
Labels
area-IslandsXaml Islands featureXaml Islands featurebugSomething isn't workingSomething isn't workingdocumentationAn issue with existing documentation or a request for documenation of a new topicAn issue with existing documentation or a request for documenation of a new topic
Description
Describe the bug
I am crossreferencing this bug: CommunityToolkit/Windows#744
When I try to use community toolkit in XAML, the parsing of file fails:
I initialize resources like this:
protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs args)
{
XamlControlsXamlMetaDataProvider.Initialize();
xamlMetaDataProvider = new();
this.Resources.MergedDictionaries.Add(new Microsoft.UI.Xaml.Controls.XamlControlsResources());
//this.Resources.MergedDictionaries.Add(new Microsoft.UI.Xaml.ResourceDictionary() { Source = new Uri("ms-appx:///CommunityToolkit.WinUI.Controls.Segmented/Themes/Generic.xaml") });
}
Its possible I am initializing XAML Islands wrongly, there is not much documentation for that.
Why is this important?
This prevents me from launching any Control using external libraries?
Steps to reproduce the bug
https://github.com/castorix/WPF_XAML_Islands_WinUI3/tree/master
Clone this repo, update to newest WinUI SDK, add CommunityToolkit.WinUI.Segmented and add Segmented. Same issue.
Actual behavior
Expected behavior
It should load
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.8.3: 1.8.251106002
Windows version
Windows 10 (21H2): Build 19044
Additional context
Is issue in Community Toolkit or WinUI XAML Islands, or my init?
Metadata
Metadata
Assignees
Labels
area-IslandsXaml Islands featureXaml Islands featurebugSomething isn't workingSomething isn't workingdocumentationAn issue with existing documentation or a request for documenation of a new topicAn issue with existing documentation or a request for documenation of a new topic
Type
Projects
Status
Backlog