Skip to content

[DataTemplates][ResourcesDictionary][WinAppSdk] Property Not Found Exception at Styles/GalleryTemplates.xaml - x:DataType #15

@DevTKSS

Description

@DevTKSS

Current behavior

Somehow Xaml Compiler does not find a Property in a DataTemplate Definition there, but its not altering from all the other DataTemplate Definitions, imported as ResourceDictionary and should be fine...

Image
Image

Expected behavior

Should not throw issue?

How to reproduce it (as minimally and precisely as possible)

Build the app from this commit: 50db97b

(will apply workaround meanwile I dont know the problem source at later commits)

Workaround

Do not target:

  • WinAppSdk - Unpackaged
    Debug Build Result:
    Image
  • WinAppSdk - Packaged
    Debug Build Result:
    Image

(in both cases, the x:DataType in ResourcesDictionary is not found)

Environment

Windows 11 Pro

NuGet package version(s)

No response

Affected platforms

Build tasks

IDE

Visual Studio 2022

IDE version

Visual Studio 17.13.6 - still there in 17.14.9

Metadata

Relevant Issue(s):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Blocked by Issue

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions