You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WinFormsAvaloniaControlHost is failing to display content for .Net Framework Projects. Content is displayed correctly when the framework is changed to net8.0-windows.
In my example I've set the host Content to a TextBlock. It only renders for net8.0-windows
net8.0-windows
.Net Framework 4.8.1
To Reproduce
I've attached a solution with two projects with identical code targeting .net481 and .net8.0-windows that demonstrates the problem
Describe the bug
WinFormsAvaloniaControlHost is failing to display content for .Net Framework Projects. Content is displayed correctly when the framework is changed to net8.0-windows.
In my example I've set the host Content to a TextBlock. It only renders for net8.0-windows
net8.0-windows
![Image](https://private-user-images.githubusercontent.com/20780337/412054139-0d1820ac-2eaa-425a-a14d-1b42e41c9ac3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNDk1OTgsIm5iZiI6MTczOTM0OTI5OCwicGF0aCI6Ii8yMDc4MDMzNy80MTIwNTQxMzktMGQxODIwYWMtMmVhYS00MjVhLWExNGQtMWI0MmU0MWM5YWMzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDA4MzQ1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFkYTI1ZTRkNTdhYWQyMjk4MGZhMjViY2JkNDhjOWNkMTRkZmQzNDFhZWI2MzBjNzI4ZWYzYWQyYzE4YzIwZWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.8fIEtbDZ8qrBu_Fp2kvBlMnOM4WfyrL-Msh8RRVSoNA)
.Net Framework 4.8.1
![Image](https://private-user-images.githubusercontent.com/20780337/412052895-1df4416b-ba16-45b9-bb36-3d9c2a0de95b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNDk1OTgsIm5iZiI6MTczOTM0OTI5OCwicGF0aCI6Ii8yMDc4MDMzNy80MTIwNTI4OTUtMWRmNDQxNmItYmExNi00NWI5LWJiMzYtM2Q5YzJhMGRlOTViLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDA4MzQ1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg1OWQxYWI2MmQ2N2E5YzdhYzg3OWUxNzMyN2MwZjIyMDkxYmE2OGQ2ZDY3ZmJhOTRkYzFlMzViMWYxOWZmNTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.EaAIy_HBaAiR4pA8v1s7oYUQhGzpnfvSTS49jvjeSJU)
To Reproduce
I've attached a solution with two projects with identical code targeting .net481 and .net8.0-windows that demonstrates the problem
AvaloniaWinForms.zip
Program:
Form:
Expected behavior
No response
Avalonia version
11.2.3
OS
Windows
Additional context
No response
The text was updated successfully, but these errors were encountered: