Is there a way to prevent the background color resizing from being delayed when resizing the window? #8957
Replies: 3 comments 12 replies
-
This actually seems to be a problem with WinUI 3 itself. Hoping a fix is released soon, this is a dealbreaker for me. |
Beta Was this translation helpful? Give feedback.
-
Is it possible to change the Window background itself as you described? As far as I can tell, WinUI 3 XAML doesn't have a Background property on the Window class. I also tried Skia+GTK, but the problem was still there. |
Beta Was this translation helpful? Give feedback.
-
@jeromelaban Maybe I'm misunderstanding, but setting the Window or ContentControl's background via XAML in WPF host has no effect. The only thing that has an effect is setting the background color in code behind like so: public MainWindow()
{
InitializeComponent();
root.Content = new global::Uno.UI.Skia.Platform.WpfHost(Dispatcher, () => new TestUnoApp.App());
var contentControl = root.Content as Uno.UI.Skia.Platform.WpfHost;
contentControl.Background = new SolidColorBrush(new Color { R = 0, G = 0, B = 0, A = 128 });
} But even that behaves weird because it actually draws on top of the regular shared apps content. For example the shared apps main Page has it's background set to orange but as you can see it draws on top, if I change the alpha value to 255 it completely blocks the shared app and just draws black. 2022-06-03.12-01-08_Trim.mp4 |
Beta Was this translation helpful? Give feedback.
-
When I resize my window the background color is delayed to fill the whole window. Is there a way to fix this?
2022-06-01.18-17-48_Trim.mp4
Beta Was this translation helpful? Give feedback.
All reactions