Skip to content

Wrong Behavior on latest Winui3 App #192

@Tartarusome

Description

@Tartarusome

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();
	}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions