Skip to content

Commit

Permalink
fix: no way to back on platform other than Skia
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc-Antoine-Soucy committed Aug 16, 2023
1 parent 28d581c commit eb77ea8
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 16 deletions.
8 changes: 5 additions & 3 deletions UI/NativeFrameNav/NativeFrameNav.Shared/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ public App()
{
InitializeLogging();

#if __IOS__ || __ANDROID__
Uno.UI.FeatureConfiguration.Style.ConfigureNativeFrameNavigation();
#endif
// This cannot be used with IOS because of this bug: https://github.com/unoplatform/uno/issues/13284
//#if __IOS__ || __ANDROID__
//#if __ANDROID__
// Uno.UI.FeatureConfiguration.Style.ConfigureNativeFrameNavigation();
//#endif
this.InitializeComponent();

#if HAS_UNO || NETFX_CORE
Expand Down
2 changes: 1 addition & 1 deletion UI/NativeFrameNav/NativeFrameNav.Shared/BlankPage1.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<CommandBar Grid.Row="0" Content="BlankPage1">
<CommandBar.PrimaryCommands>
<skia:AppBarButton Content="Back" Click="NavigateBack" />
<AppBarButton Content="Back" Click="NavigateBack" />
</CommandBar.PrimaryCommands>
</CommandBar>
<StackPanel Grid.Row="1">
Expand Down
2 changes: 1 addition & 1 deletion UI/NativeFrameNav/NativeFrameNav.Shared/BlankPage2.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<CommandBar Grid.Row="0" Content="BlankPage2">
<CommandBar.PrimaryCommands>
<skia:AppBarButton Content="Back" Click="NavigateBack" />
<AppBarButton Content="Back" Click="NavigateBack" />
</CommandBar.PrimaryCommands>
</CommandBar>
<StackPanel Grid.Row="1">
Expand Down
22 changes: 11 additions & 11 deletions UI/NativeFrameNav/NativeFrameNav.Shared/MainPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">

<Grid toolkit:VisibleBoundsPadding.PaddingMask="Top">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid toolkit:VisibleBoundsPadding.PaddingMask="Top">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>

<CommandBar Grid.Row="0" Content="MainPage" />
<StackPanel Grid.Row="1">
<TextBlock Text="Main Content" />
<Button Content="Next Page" Click="GotoNextPage" />
</StackPanel>
</Grid>
<CommandBar Grid.Row="0" Content="MainPage" />
<StackPanel Grid.Row="1">
<TextBlock Text="Main Content" />
<Button Content="Next Page" Click="GotoNextPage" />
</StackPanel>
</Grid>
</Page>
1 change: 1 addition & 0 deletions UI/NativeFrameNav/NativeFrameNav.sln
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ Global
{71F85A48-AE93-4807-9F4B-B64A786056E2}.AppStore|x86.Build.0 = Debug|Any CPU
{71F85A48-AE93-4807-9F4B-B64A786056E2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{71F85A48-AE93-4807-9F4B-B64A786056E2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{71F85A48-AE93-4807-9F4B-B64A786056E2}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{71F85A48-AE93-4807-9F4B-B64A786056E2}.Debug|ARM.ActiveCfg = Debug|Any CPU
{71F85A48-AE93-4807-9F4B-B64A786056E2}.Debug|ARM.Build.0 = Debug|Any CPU
{71F85A48-AE93-4807-9F4B-B64A786056E2}.Debug|ARM64.ActiveCfg = Debug|Any CPU
Expand Down

0 comments on commit eb77ea8

Please sign in to comment.