Skip to content

Commit c7a8ee4

Browse files
committed
Fixes
1 parent bb243a6 commit c7a8ee4

File tree

6 files changed

+7
-43
lines changed

6 files changed

+7
-43
lines changed

src/ShinyWonderland/App.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ public App(StringsLocalized localize)
1111
}
1212

1313
protected override Window CreateWindow(IActivationState? activationState)
14-
=> new(new StartAppShell());
14+
=> new(new AppShell(localize));
1515
}

src/ShinyWonderland/Shells/AppShell.xaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
x:Class="ShinyWonderland.AppShell"
77
x:DataType="local:AppShell">
88

9-
<TabBar>
9+
<ShellItem Route="startup" FlyoutItemIsVisible="False">
10+
<ShellContent ContentTemplate="{DataTemplate local:StartupPage}" />
11+
</ShellItem>
12+
13+
<TabBar Route="main">
1014
<Tab Icon="ride_time">
1115
<ShellContent Title="{Binding Localize.RideTimes}"
1216
ContentTemplate="{DataTemplate local:RideTimesPage}"/>

src/ShinyWonderland/Shells/StartAppShell.xaml

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/ShinyWonderland/Shells/StartAppShell.xaml.cs

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/ShinyWonderland/ShinyWonderland.csproj

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -115,25 +115,4 @@
115115
<ProjectReference Include="..\ShinyWonderland.ApiClient\ShinyWonderland.ApiClient.csproj"/>
116116
<ProjectReference Include="..\ShinyWonderland.Localization\ShinyWonderland.Localization.csproj"/>
117117
</ItemGroup>
118-
119-
<ItemGroup>
120-
<MauiXaml Update="Shells\StartAppShell.xaml">
121-
<SubType>Designer</SubType>
122-
</MauiXaml>
123-
<MauiXaml Update="Shells\AppShell.xaml">
124-
<SubType>Designer</SubType>
125-
</MauiXaml>
126-
</ItemGroup>
127-
128-
<ItemGroup>
129-
<Compile Update="Shells\StartAppShell.xaml.cs">
130-
<DependentUpon>StartAppShell.xaml</DependentUpon>
131-
<SubType>Code</SubType>
132-
</Compile>
133-
<Compile Update="Shells\AppShell.xaml.cs">
134-
<DependentUpon>AppShell.xaml</DependentUpon>
135-
<SubType>Code</SubType>
136-
</Compile>
137-
</ItemGroup>
138-
139118
</Project>

src/ShinyWonderland/StartupViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public async void OnAppearing()
1313
await this.TryGps();
1414
await this.TryGeofencing();
1515

16-
await services.Navigator.SwitchShell(new AppShell(services.Localized));
16+
await services.Navigator.NavigateTo("//main");
1717
}
1818

1919
public void OnDisappearing()

0 commit comments

Comments
 (0)