Skip to content
New issue

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

FullScreen bug #1112

Open
X-Yunner opened this issue Jun 6, 2024 · 2 comments
Open

FullScreen bug #1112

X-Yunner opened this issue Jun 6, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@X-Yunner
Copy link

X-Yunner commented Jun 6, 2024

Describe the bug

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

To Reproduce

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;

    }
}

Expected behavior

 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_
@X-Yunner X-Yunner added the bug Something isn't working label Jun 6, 2024
@m0lDaViA
Copy link
Contributor

Any screenshots? Rn it's a bit hard to fully understand your problem.

@m0lDaViA
Copy link
Contributor

@X-Yunner If you no longer have a problem, please close this ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants