| 25 | } |
| 26 | |
| 27 | MainPage::MainPage() |
| 28 | { |
| 29 | InitializeComponent(); |
| 30 | |
| 31 | const auto coreTitleBar{ CoreApplication::GetCurrentView().TitleBar() }; |
| 32 | const auto window{ Window::Current() }; |
| 33 | coreTitleBar.ExtendViewIntoTitleBar(true); |
| 34 | window.SetTitleBar(CustomTitleBar()); |
| 35 | |
| 36 | coreTitleBar.LayoutMetricsChanged({ this,&MainPage::CoreTitleBar_LayoutMetricsChanged }); |
| 37 | window.Activated({ this, &MainPage::CoreWindow_Activated }); |
| 38 | } |
| 39 | |
| 40 | void MainPage::CoreTitleBar_LayoutMetricsChanged(CoreApplicationViewTitleBar const& coreTitleBar, IInspectable const&) |
| 41 | { |
nothing calls this directly
no outgoing calls
no test coverage detected