mirror of
https://github.com/jwetzell/qController.git
synced 2026-08-16 04:43:41 +00:00
* 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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user