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

Wrong Behavior on latest Winui3 App #192

Open
Tartarusome opened this issue Jan 15, 2025 · 0 comments
Open

Wrong Behavior on latest Winui3 App #192

Tartarusome opened this issue Jan 15, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Tartarusome
Copy link

Tartarusome commented Jan 15, 2025

Bug 1:
Left click the tray icon has a 2 seconds delay. but show/hide in flyout has no delay.
Delay:

<tb:TaskbarIcon LeftClickCommand="{x:Bind ShowHideWindowCommand}">

No delay:

  <tb:TaskbarIcon.ContextFlyout>
      <MenuFlyout>
          <MenuFlyoutSeparator />
          <MenuFlyoutItem
              Command="{x:Bind ShowHideWindowCommand}"
              Text="show/hide" />
      </MenuFlyout>
  </tb:TaskbarIcon.ContextFlyout>

Bug 2:
When the window was hide while it is not on the top. Window.Show() will not bring it on the top, but the same z-index level. I think this is not the expectation.

public void ShowHideWindow()
{
	var window = (Window)this;
	if(window == null)
	{
		return;
	}

	if(window.Visible)
	{
		window.Hide();
	}
	else
	{
		window.Show();
	}
}
@Tartarusome Tartarusome added the bug Something isn't working label Jan 15, 2025
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

1 participant