Replies: 8 comments
-
Hello, 'ProJend! Thanks for submitting a new feature request. I've automatically added a vote 👍 reaction to help get things started. Other community members can vote to help us prioritize this feature in the future! |
Beta Was this translation helpful? Give feedback.
-
@ProJend Thanks for the feature request! Going to open this up for discussion with the community. |
Beta Was this translation helpful? Give feedback.
-
@dotMorten isn't this what the |
Beta Was this translation helpful? Give feedback.
-
Yup. Full screen and tablet mode are two different things. You can be full screen both in or outside tablet mode, and tablet mode doesn't mean things will be full-screen either. |
Beta Was this translation helpful? Give feedback.
-
No, it isn't what I looking for. |
Beta Was this translation helpful? Give feedback.
-
Well, full screen or tablet mode both can switch show state on titlebar. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the clarification @ProJend. I believe this is the API we'd have to hook into for a new State Trigger: var coreTitleBar = CoreApplication.GetCurrentView().TitleBar;
// Register a handler for when the title bar visibility changes.
// For example, when the title bar is invoked in full screen mode.
coreTitleBar.IsVisibleChanged += CoreTitleBar_IsVisibleChanged;
}
private void CoreTitleBar_IsVisibleChanged(CoreApplicationViewTitleBar sender, object args)
{
// sender.IsVisible
} @marb2000 @azchohfi will this also work for WinUI 3 in the future? |
Beta Was this translation helpful? Give feedback.
-
AFAIK, if in UWP, yes. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the problem this feature would solve
I try to run the FullScreenModeStateTrigger but it ain't catch the Tablet Mode settings that have been changed. so I just running code in class rather than XAML at this time.
Describe the solution
it can make me do something in XAML when IsVisibleChanged of Window's TitleBar has been changed.
Describe alternatives you've considered
just look like the FullScreenModeStateTrigger function.
Additional context & Screenshots
Beta Was this translation helpful? Give feedback.
All reactions