Custom title bar
- adds style.
- adds logic to the hamburger button.
Change-Id: Ieda5f8224bdcb1ab1c666d83c258a9d4f212e536
diff --git a/App.xaml.cpp b/App.xaml.cpp
index deb390e..c89f423 100644
--- a/App.xaml.cpp
+++ b/App.xaml.cpp
@@ -22,9 +22,11 @@
using namespace Windows::ApplicationModel::Core;
using namespace Windows::Foundation;
using namespace Windows::Graphics::Display;
+using namespace Windows::UI;
using namespace Windows::UI::Xaml;
using namespace Windows::UI::Xaml::Controls;
using namespace Windows::UI::Xaml::Interop;
+using namespace Windows::UI::Xaml::Media;
using namespace Windows::UI::ViewManagement;
using namespace RingClientUWP;
@@ -49,4 +51,11 @@
Window::Current->Activate();
} else
rootFrame->Navigate(TypeName(MainPage::typeid), e->Arguments);
+
+ CoreApplication::GetCurrentView()->TitleBar->ExtendViewIntoTitleBar = true;
+ ApplicationView::GetForCurrentView()->TitleBar->ButtonBackgroundColor = Colors::LightBlue;
+ ApplicationView::GetForCurrentView()->TitleBar->ButtonInactiveBackgroundColor = Colors::LightBlue;
+ ApplicationView::GetForCurrentView()->TitleBar->ForegroundColor = Colors::White;
+ ApplicationView::GetForCurrentView()->TitleBar->ButtonForegroundColor = Colors::White;
+
}
\ No newline at end of file