WindowsCommunityToolkit icon indicating copy to clipboard operation
WindowsCommunityToolkit copied to clipboard

CommunityToolkit.WinUI.xxx 8.1.240916 issue

Open JLBLU opened this issue 1 year ago • 1 comments

Describe the bug

Hi,

After installation of CommunityToolkit.WinUI.xxx (*) new versions (from 8.1.240821 to 8.1.240916), following issue occurs during execution :

Microsoft.UI.Xaml.Markup.XamlParseException : 'The text associated with this error code could not be found.'

Failed to assign to property 'Microsoft.UI.Xaml.Controls.ItemsControl.ItemsSource'. [Line: 968 Position: 37]'

    //

    public DkItemLinksPage()
    {
        **this.InitializeComponent();**

... ///

/// InitializeComponent() /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.UI.Xaml.Markup.Compiler"," 3.0.0.2408")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public void InitializeComponent() { if (_contentLoaded) return;

        _contentLoaded = true;

        global::System.Uri resourceLocator = new global::System.Uri("ms-appx:///Views/DkItemLinksPage.xaml");
        **global::Microsoft.UI.Xaml.Application.LoadComponent(this, resourceLocator, global::Microsoft.UI.Xaml.Controls.Primitives.ComponentResourceLocation.Application);**
    }

(*) CommunityToolkit.WinUI.Extensions + .Helpers + .Controls.TabbedCommandBar + .Controls.Sizers + .Controls.RadialGauge + .Controls.Primitives + + .Controls.layoutTransformControl + .Controls.Sizers + .Controls.Behaviors

// Also warning :

DEP0840: Project 'XXXXX' `requires packages 'MicrosoftCorporationII.WinAppRuntime.Main.1.6_8wekyb3d8bbwe' and 'MicrosoftCorporationII.WinAppRuntime.Singleton_8wekyb3d8bbwe' with version version >= « 6000.242.101.0 ».. These packages should be installed on first run, if not please visit http://go.microsoft.com/fwlink/?linkid=2222757 for installation instructions. (despite several clean+rebuild)

//

WinExe net8.0-windows10.0.26100.0 10.0.17763.0 10.0.22621.38 app.manifest x64 win-x64 win-$(Platform).pubxml true

best regards, Jean-Luc

Regression

CommunityToolkit.WinUI.xxx 8.1.240821

Reproducible in sample app?

  • [ ] This bug can be reproduced in the sample app.

Steps to reproduce

Navigate to page
                case "DkItemLink":
                    DkItemLinksPage.SetParentInfos(item, arrayTabLinksLib);
                    DkItemFrame.Navigate(typeof(DkItemLinksPage), this, navOptions.TransitionInfoOverride);
                    ToolTipService.SetToolTip(btnRemove, "Suppression" + Environment.NewLine + "   ligne");
                    ToolTipService.SetPlacement(btnRemove, PlacementMode.Bottom);
                    break;

/
Page contains controls :    
Grid,  DockPanel, AppBarButton, TextBlock, StackPanel, PasswordBox, TextBox, ComboBox, ScrollViewer, 
GridSplitter, DataGrid, DataGridTemplateColumn

Expected behavior

Cannot load screen. Contains controls :
Grid, DockPanel, AppBarButton, TextBlock, StackPanel, PasswordBox, TextBox, ComboBox, ScrollViewer, GridSplitter, DataGrid, DataGridTemplateColumn

Screenshots

image

Windows Build Number

  • [ ] Windows 10 1809 (Build 17763)
  • [ ] Windows 10 1903 (Build 18362)
  • [ ] Windows 10 1909 (Build 18363)
  • [ ] Windows 10 2004 (Build 19041)
  • [ ] Windows 10 20H2 (Build 19042)
  • [ ] Windows 10 21H1 (Build 19043)
  • [ ] Windows 11 21H2 (Build 22000)
  • [X] Other (specify)

Other Windows Build number

Windows 11 23H2 Build 22631.4169

App minimum and target SDK version

  • [ ] Windows 10, version 1809 (Build 17763)
  • [ ] Windows 10, version 1903 (Build 18362)
  • [ ] Windows 10, version 1909 (Build 18363)
  • [ ] Windows 10, version 2004 (Build 19041)
  • [X] Other (specify)

Other SDK version

target SDK version 10.0.621.0

Visual Studio Version

No response

Visual Studio Build Number

Microsoft Visual Studio Community 2022 (64 bits) - Current Version 17.11.3

Device form factor

Desktop

Nuget packages

CommunityToolkit.WinUI.xxx () new versions 8.1.240916 () CommunityToolkit.WinUI.Extensions + .Helpers + .Controls.TabbedCommandBar + .Controls.Sizers + .Controls.RadialGauge + .Controls.Primitives + + .Controls.layoutTransformControl + .Controls.Sizers + .Controls.Behaviors + CommunityToolkit.Mvvm 8.3.1 + Microsoft.WindowsAppSDK 1.6.240829007

Additional context

No response

Help us help you

No.

JLBLU avatar Sep 17 '24 20:09 JLBLU