Replies: 1 comment 5 replies
-
@jarno9981 I'm a bit confused about your question. I don't really see any WinUIEx APIs being used above. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using WinUiEx 2.2.0
i have uwp project
using this code
var coreTitleBar = CoreApplication.GetCurrentView().TitleBar;
coreTitleBar.ExtendViewIntoTitleBar = true;
coreTitleBar.LayoutMetricsChanged += CoreTitleBar_LayoutMetricsChanged;
But When I Use it in WinUi3 With WinUiEx then it gives error .GetCurrentView().TitleBar; no element
found using this Code For titlebar
App.MainWindow.ExtendsContentIntoTitleBar = true;
App.MainWindow.SetTitleBar(CustomDragRegion);
App.MainWindow.Activated += MainWindow_Activated;
App.MainWindow.Title = "FireBrowser WinUi3";
but i cant find LayoutMetricsChanged i want to use the method the use
`` if (FlowDirection == FlowDirection.LeftToRight)
{
CustomDragRegion.MinWidth = sender.SystemOverlayRightInset;
}
else
{
CustomDragRegion.MinWidth = sender.SystemOverlayLeftInset;
without CoreTitleBar_LayoutMetricsChanged i cant use flowdirection
Beta Was this translation helpful? Give feedback.
All reactions