UI/accounts: adds a loading screen during account loading
- adds faded loading pages with a spinner animation
- starts and stops the load page during account creation and loading
- resizes the loading graphics when window is resized
- adds an event handler for DPI and scale factor changes
- removes stretching from welcome page image
- clears account creation alias box after account creation clicked
Change-Id: I5046e0bc820e91c8b2f91ca223534d93ddf916f1
Tuleap: #1010
diff --git a/MainPage.xaml.h b/MainPage.xaml.h
index 7b9691b..aa76667 100644
--- a/MainPage.xaml.h
+++ b/MainPage.xaml.h
@@ -20,6 +20,7 @@
using namespace Windows::UI::Xaml::Controls;
using namespace Windows::UI::Xaml::Input;
+using namespace Windows::Foundation;
namespace RingClientUWP
{
@@ -29,11 +30,25 @@
{
public:
MainPage();
+ void showLoadingOverlay(bool load, bool modal);
+ void hideLoadingOverlay();
+
+ property bool isLoading;
protected:
virtual void OnNavigatedTo(Windows::UI::Xaml::Navigation::NavigationEventArgs^ e) override;
virtual void OnKeyDown(KeyRoutedEventArgs^ e) override;
+
+ void PositionImage();
+ void PositionRing();
+ void OnResize(Platform::Object^ sender, Windows::UI::Core::WindowSizeChangedEventArgs^ e);
+
private:
+ // Multi-monitor, DPI, scale factor change, and window resize detection
+ void DisplayProperties_DpiChanged(Windows::Graphics::Display::DisplayInformation^ sender, Platform::Object^ args);
+ Windows::Foundation::EventRegistrationToken dpiChangedtoken;
+ Rect bounds;
+
void _toggleSmartBoxButton__Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
void showFrame(Windows::UI::Xaml::Controls::Frame^ frame);
};