mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-19 12:59:30 -07:00
General improvement of the title bar for Always-On-Top. (#634)
* Make sure TitleBar takes into account the AOT mode change * remove namespaces in cpp files * code linting * use macro for IsAlwaysOnTop and make IsAlwaysOnTop/DisplayNormalAlwaysOnTopOption read-only * Fix FontWeight
This commit is contained in:
parent
5b2d976e64
commit
eb24c085bc
7 changed files with 57 additions and 58 deletions
|
@ -546,7 +546,13 @@ void MainPage::OnNavItemInvoked(MUXC::NavigationView ^ /*sender*/, _In_ MUXC::Na
|
|||
NavView->IsPaneOpen = false;
|
||||
}
|
||||
|
||||
void MainPage::AlwaysOnTopButtonClick(Platform::Object ^ sender, Windows::UI::Xaml::RoutedEventArgs ^ e)
|
||||
void MainPage::TitleBarAlwaysOnTopButtonClick(_In_ Object ^ /*sender*/, _In_ RoutedEventArgs ^ /*e*/)
|
||||
{
|
||||
auto bounds = Window::Current->Bounds;
|
||||
Model->ToggleAlwaysOnTop(bounds.Width, bounds.Height);
|
||||
}
|
||||
|
||||
void MainPage::AlwaysOnTopButtonClick(_In_ Object ^ /*sender*/, _In_ RoutedEventArgs ^ /*e*/)
|
||||
{
|
||||
Model->ToggleAlwaysOnTop(0, 0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue