Skip to content
This repository was archived by the owner on Apr 29, 2024. It is now read-only.

Commit ecc722b

Browse files
committed
Page rename.
1 parent 310406d commit ecc722b

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

UserInterface/PlatformSpecifics/PlatformSpecifics/PlatformSpecificsPage.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<TextCell Text="Application PanGestureRecognizer" Command="{Binding NavigateCommand}" CommandParameter="{x:Type local:iOSPanGestureRecognizerPage}" />
1919
<TextCell Text="Slider Update on Tap" Command="{Binding NavigateCommand}" CommandParameter="{x:Type local:iOSSliderUpdateOnTapPage}" />
2020
<TextCell Text="NavigationPage NavigationBarSeparator" Command="{Binding NavigateCommand}" CommandParameter="{x:Type local:iOSTitleViewPage}" />
21-
<TextCell Text="Modal FormSheet Page" Command="{Binding NavigateCommand}" CommandParameter="{x:Type local:iOSModalFormSheetPage}" />
21+
<TextCell Text="Modal Page Presentation Style" Command="{Binding NavigateCommand}" CommandParameter="{x:Type local:iOSModalPagePresentationStyle}" />
2222
<TextCell Text="Hide Home Indicator on Page" Command="{Binding NavigateCommand}" CommandParameter="{x:Type local:iOSHideHomeIndicatorPage}" />
2323
<TextCell Text="SwipeView SwipeTransitionMode" Command="{Binding NavigateCommand}" CommandParameter="{x:Type local:iOSSwipeViewTransitionModePage}" />
2424
<TextCell Text="DatePicker UpdateMode" Command="{Binding NavigateCommand}" CommandParameter="{x:Type local:iOSDatePickerPage}" />

UserInterface/PlatformSpecifics/PlatformSpecifics/PlatformSpecificsPage.xaml.cs

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async Task NavigateToPage(Type pageType)
4444
else
4545
{
4646
Page page = (Page)Activator.CreateInstance(pageType);
47-
if (page is iOSModalFormSheetPage)
47+
if (page is iOSModalPagePresentationStyle)
4848
{
4949
await Navigation.PushModalAsync(page);
5050
}

UserInterface/PlatformSpecifics/PlatformSpecifics/PlatformSpecificsPageCS.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public PlatformSpecificsPageCS()
4141
new TextCell { Text = "Application PanGestureRecognizer", Command = NavigateCommand, CommandParameter = typeof(iOSPanGestureRecognizerPageCS) },
4242
new TextCell { Text = "Slider Update on Tap", Command = NavigateCommand, CommandParameter = typeof(iOSSliderUpdateOnTapPageCS) },
4343
new TextCell { Text = "NavigationPage NavigationBarSeparator", Command = NavigateCommand, CommandParameter = typeof(iOSTitleViewPageCS) },
44-
new TextCell { Text = "Modal FormSheet Page", Command = NavigateCommand, CommandParameter = typeof(iOSModalFormSheetPageCS) },
44+
new TextCell { Text = "Modal Page Presentation Style", Command = NavigateCommand, CommandParameter = typeof(iOSModalPagePresentationStyleCS) },
4545
new TextCell { Text = "Hide Home Indicator on Page", Command = NavigateCommand, CommandParameter = typeof(iOSHideHomeIndicatorPageCS) },
4646
new TextCell { Text = "SwipeView SwipeTransitionMode", Command = NavigateCommand, CommandParameter = typeof(iOSSwipeViewTransitionModePageCS) },
4747
new TextCell { Text = "DatePicker UpdateMode", Command = NavigateCommand, CommandParameter = typeof(iOSDatePickerPageCS) },
@@ -111,7 +111,7 @@ async Task NavigateToPage(Type pageType)
111111
else
112112
{
113113
Page page = (Xamarin.Forms.Page)Activator.CreateInstance(pageType);
114-
if (page is iOSModalFormSheetPageCS)
114+
if (page is iOSModalPagePresentationStyleCS)
115115
{
116116
await Navigation.PushModalAsync(page);
117117
}

UserInterface/PlatformSpecifics/PlatformSpecifics/iOS/CS/iOSModalFormSheetPageCS.cs renamed to UserInterface/PlatformSpecifics/PlatformSpecifics/iOS/CS/iOSModalPagePresentationStyleCS.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
namespace PlatformSpecifics
66
{
7-
public class iOSModalFormSheetPageCS : ContentPage
7+
public class iOSModalPagePresentationStyleCS : ContentPage
88
{
9-
public iOSModalFormSheetPageCS()
9+
public iOSModalPagePresentationStyleCS()
1010
{
11-
On<iOS>().SetModalPresentationStyle(UIModalPresentationStyle.FormSheet);
11+
On<iOS>().SetModalPresentationStyle(UIModalPresentationStyle.OverFullScreen);
1212

1313
var button = new Button { Text = "Return to Platform-Specifics List" };
1414
button.Clicked += async (sender, e) =>
@@ -18,7 +18,7 @@ public iOSModalFormSheetPageCS()
1818

1919
Content = new StackLayout
2020
{
21-
Margin = new Thickness(20),
21+
Margin = new Thickness(20,35,20,20),
2222
Children = {
2323
new Label { Text = "Modal popup as a form sheet.", HorizontalOptions = LayoutOptions.Center },
2424
button

UserInterface/PlatformSpecifics/PlatformSpecifics/iOS/XAML/iOSModalFormSheetPage.xaml renamed to UserInterface/PlatformSpecifics/PlatformSpecifics/iOS/XAML/iOSModalPagePresentationStyle.xaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
33
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
44
xmlns:ios="clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core"
5-
x:Class="PlatformSpecifics.iOSModalFormSheetPage"
5+
x:Class="PlatformSpecifics.iOSModalPagePresentationStyle"
66
Title="Modal FormSheet Page"
7-
ios:Page.ModalPresentationStyle="FormSheet">
8-
<StackLayout Margin="20">
7+
ios:Page.ModalPresentationStyle="OverFullScreen">
8+
<StackLayout Margin="20,35,20,20">
99
<Label Text="Modal popup as a form sheet." HorizontalOptions="Center" />
1010
<Button Text="Return to Platform-Specifics List" Clicked="OnReturnButtonClicked" />
1111
</StackLayout>

UserInterface/PlatformSpecifics/PlatformSpecifics/iOS/XAML/iOSModalFormSheetPage.xaml.cs renamed to UserInterface/PlatformSpecifics/PlatformSpecifics/iOS/XAML/iOSModalPagePresentationStyle.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
namespace PlatformSpecifics
55
{
6-
public partial class iOSModalFormSheetPage : ContentPage
6+
public partial class iOSModalPagePresentationStyle : ContentPage
77
{
8-
public iOSModalFormSheetPage()
8+
public iOSModalPagePresentationStyle()
99
{
1010
InitializeComponent();
1111
}

0 commit comments

Comments
 (0)