I’ve recently started to use WinUI 3 and have an issue with changing the backcolor of a canvas. Coming from WPF, I was used that simply changing the Background property works. This however, results in everything inside the canvas becoming invisible until clicked or otherwise interacted with. When no background property is set, everything works fine, except the background is colored based on my windows design setting, which is not what I want. This doesn’t only affect canvasses, but also stackpanels, grids and so on.
When using a background however, like Background=”White”, the effect is the following. You can see that my cursor is the text symbol, indicating that the textbox is still there and it shows up when clicked, it’s invisible though when not interacted with. Same goes for buttons and other controls.
I’m new to WinUI 3 as mentioned, so there might be a crucial thing that I’m missing. Please let me know if that’s the point. Otherwise, is this somehow fixable? Thank you.