* RootPageDetail.xaml:

* RootPageMaster.xaml:
* RootPageDetail.xaml.cs:
* RootPageMaster.xaml.cs:
* RootPageMenuItem.cs: Remove Unused Items

* RootPage.xaml:
* RootPage.xaml.cs: Convert to Flyout and MasterDetail deprecated

* packages.config:
* packages.config:
* qController.iOS.csproj:
* qController.Droid.csproj:
* Resource.designer.cs:
* qController.csproj: Update Dependencies

* QNavBar.cs: Conver QNavBar to Frame Based

* App.xaml.cs: Reorganize intialization and convert to Flyout

* QBrowserPage.xaml: Convert to StackLayout
This commit is contained in:
2021-01-28 13:39:44 -06:00
parent 3ba1b81304
commit 795f9bafa6
17 changed files with 1615 additions and 9550 deletions
+7 -13
View File
@@ -37,10 +37,8 @@ namespace qController
{
InitializeComponent();
Sharpnado.MaterialFrame.Initializer.Initialize(loggerEnable: false, debugLogEnable: false);
AppActions.OnAppAction += AppActions_OnAppAction;
/*MainPage = new NavigationPage(new QConnectionPage());
iNav = MainPage.Navigation;*/
App.Current.RequestedThemeChanged += Current_RequestedThemeChanged;
SetAppResources();
mainDisplayInfo = DeviceDisplay.MainDisplayInfo;
@@ -48,6 +46,7 @@ namespace qController
Width = mainDisplayInfo.Width / mainDisplayInfo.Density;
HeightUnit = Height / 100.0;
WidthUnit = Width / 100.0;
switch (Device.RuntimePlatform)
{
case Device.iOS:
@@ -56,22 +55,16 @@ namespace qController
case Device.Android:
QFont = "qfont.ttf#qfont";
break;
}
SetAppResources();
App.Current.RequestedThemeChanged += Current_RequestedThemeChanged;
var menuPage = new MenuPage();
rootPage = new RootPage();
NavigationPage = new NavigationPage(new QBrowserPage());
rootPage.Master = menuPage;
rootPage.Detail = NavigationPage;
MainPage = rootPage;
Log.Debug("Finished rootPage Setup in App Constructor");
rootPage.Init();
AppActions.OnAppAction += AppActions_OnAppAction;
}
private void AppActions_OnAppAction(object sender, AppActionEventArgs e)
@@ -103,6 +96,7 @@ namespace qController
private void SetAppResources()
{
switch (App.Current.RequestedTheme)
{
case OSAppTheme.Light: