Open X-Yunner opened 4 weeks ago
I want to make FluentWindow fullscreen, and I just need to execute the code in order while I'm on Window
WindowStyle = WindowStyle.None; ResizeMode = ResizeMode.NoResize; viewModel.MainWindowWindowState = WindowState.Maximized;
But not on fluentWIndow, it won't cover the whole screen, there will be margins, I tried many times, only in this order to be full screen.
ResizeMode = ResizeMode.NoResize; viewModel.MainWindowWindowState = WindowState.Maximized; WindowStyle = WindowStyle.None;
It's strange
private void ButtonBase_OnClick(object sender, RoutedEventArgs e) { if (viewModel.TitleBarVisibility == Visibility.Visible) { //viewModel.TitleBarVisibility =Visibility.Collapsed; WindowStyle = WindowStyle.None; ResizeMode = ResizeMode.NoResize; viewModel.MainWindowWindowState = WindowState.Maximized; //ResizeMode = ResizeMode.NoResize; //viewModel.MainWindowWindowState = WindowState.Maximized; //WindowStyle = WindowStyle.None; } else { viewModel.TitleBarVisibility = Visibility.Visible; ResizeMode = ResizeMode.CanResize; WindowStyle = WindowStyle.SingleBorderWindow; viewModel.MainWindowWindowState = WindowState.Normal; } }
WindowStyle = WindowStyle.None; ResizeMode = ResizeMode.NoResize; viewModel.MainWindowWindowState = WindowState.Maximized; ``` can fullscreen ### Screenshots _No response_ ### OS version win11 ### .NET version .net 8 ### WPF-UI NuGet version 3.0.4 ### Additional context _No response_
Any screenshots? Rn it's a bit hard to fully understand your problem.
@X-Yunner If you no longer have a problem, please close this ticket.
Describe the bug
I want to make FluentWindow fullscreen, and I just need to execute the code in order while I'm on Window
But not on fluentWIndow, it won't cover the whole screen, there will be margins, I tried many times, only in this order to be full screen.
It's strange
To Reproduce
Expected behavior