We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ItemsControl just display UserControl not ItemTemplate
I have a interface like this and a UserControl extend this interface
in ItemsControl i used ItemTemplate to display a Textblock with PaneTitle property which is "as" in interface
It should display "as" in my ui, but it just display the content in the UserControl
11.2.2
Windows
No response
The text was updated successfully, but these errors were encountered:
This is not a bug.
https://github.com/AvaloniaUI/Avalonia/blob/master/src%2FAvalonia.Controls%2FItemsControl.cs#L497-L543
ItemsControl is designed to behave like this. As long as an element is a control, the container will display the control itself.
If you dont need this feature, you should derive a new class, and override this method according to your needs.
Further more, UserControl as ItemsSource in general is valid but not a good practice
Sorry, something went wrong.
No branches or pull requests
Describe the bug
ItemsControl just display UserControl not ItemTemplate
To Reproduce
I have a interface like this
and a UserControl extend this interface
in ItemsControl i used ItemTemplate to display a Textblock with PaneTitle property which is "as" in interface
It should display "as" in my ui, but it just display the content in the UserControl
Expected behavior
It should display "as" in my ui, but it just display the content in the UserControl
Avalonia version
11.2.2
OS
Windows
Additional context
No response
The text was updated successfully, but these errors were encountered: