Skip to content

Add missing DataType attribute#718

Merged
timunie merged 1 commit intoAvaloniaUI:mainfrom
sharpchen:main
Sep 16, 2025
Merged

Add missing DataType attribute#718
timunie merged 1 commit intoAvaloniaUI:mainfrom
sharpchen:main

Conversation

@sharpchen
Copy link
Copy Markdown
Contributor

<DataTemplate> should have a DataType specified.

Copy link
Copy Markdown
Contributor

@timunie timunie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

x:Type isn't needed but it also doesn't hurt and is probably more sensible for the docs. So I'll approve this PR. Thx 🙏

@timunie timunie merged commit 9540ac8 into AvaloniaUI:main Sep 16, 2025
2 checks passed
@sharpchen
Copy link
Copy Markdown
Contributor Author

x:Type isn't needed

Hmm, I added this because rider was showing error on it.

And for the first build it's showing error that it can't resolve the property if DataType is not specified.

Avalonia error AVLN2000: Unable to resolve property or method of name 'Foo' on type 'XamlX.TypeSystem.Xa
mlPseudoType'.

And then build it again, error disappear 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants