This repository has been archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '5.0.0' into flyout_sizing
- Loading branch information
Showing
29 changed files
with
759 additions
and
311 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue12541.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2448.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
x:Class="Xamarin.Forms.Controls.Issues.Issue2448" | ||
FlowDirection="MatchParent"> | ||
<StackLayout> | ||
<Button | ||
Clicked="AlertNoFlow_Clicked" | ||
HorizontalOptions="CenterAndExpand" | ||
Text="Display Alert No Flow Direction" | ||
VerticalOptions="CenterAndExpand" /> | ||
<Button | ||
Clicked="AlertMatchParent_Clicked" | ||
HorizontalOptions="CenterAndExpand" | ||
Text="Display Alert Flow Direction Match Parent" | ||
VerticalOptions="CenterAndExpand" /> | ||
<Button | ||
Clicked="AlertRTL_Clicked" | ||
HorizontalOptions="CenterAndExpand" | ||
Text="Display Alert Flow Direction RTL" | ||
VerticalOptions="CenterAndExpand" /> | ||
<Button | ||
Clicked="AlertLTR_Clicked" | ||
HorizontalOptions="CenterAndExpand" | ||
Text="Display Alert Flow Direction LTR" | ||
VerticalOptions="CenterAndExpand" /> | ||
<Button | ||
Clicked="ActionsheetNoFlow_Clicked" | ||
HorizontalOptions="CenterAndExpand" | ||
Text="Display ActionSheet No Flow Direction" | ||
VerticalOptions="CenterAndExpand" /> | ||
<Button | ||
Clicked="ActionsheetMatchParent_Clicked" | ||
HorizontalOptions="CenterAndExpand" | ||
Text="Display ActionSheet Flow Direction Match Parent" | ||
VerticalOptions="CenterAndExpand" /> | ||
<Button | ||
Clicked="ActionsheetRTL_Clicked" | ||
HorizontalOptions="CenterAndExpand" | ||
Text="Display ActionSheet Flow Direction RTL" | ||
VerticalOptions="CenterAndExpand" /> | ||
<Button | ||
Clicked="ActionsheetLTR_Clicked" | ||
HorizontalOptions="CenterAndExpand" | ||
Text="Display ActionSheet Flow Direction LTR" | ||
VerticalOptions="CenterAndExpand" /> | ||
</StackLayout> | ||
</ContentPage> |
70 changes: 70 additions & 0 deletions
70
Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2448.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
using Xamarin.Forms; | ||
using Xamarin.Forms.CustomAttributes; | ||
using Xamarin.Forms.Internals; | ||
using Xamarin.Forms.Xaml; | ||
|
||
namespace Xamarin.Forms.Controls.Issues | ||
{ | ||
[Preserve(AllMembers = true)] | ||
[Issue(IssueTracker.Github, 2448, "Setting FlowDirection of Alerts and ActionSheets", PlatformAffected.iOS | PlatformAffected.Android)] | ||
#if APP | ||
[XamlCompilation(XamlCompilationOptions.Compile)] | ||
#endif | ||
public partial class Issue2448 : ContentPage | ||
{ | ||
public Issue2448() | ||
{ | ||
#if APP | ||
InitializeComponent(); | ||
#endif | ||
} | ||
|
||
#if APP | ||
void AlertNoFlow_Clicked(object sender, EventArgs args) | ||
{ | ||
var alert = DisplayAlert("Alert", "You have been alerted", "OK"); | ||
} | ||
|
||
void AlertMatchParent_Clicked(object sender, EventArgs args) | ||
{ | ||
var alert = DisplayAlert("Alert", "You have been alerted", "OK", FlowDirection.MatchParent); | ||
} | ||
|
||
void AlertRTL_Clicked(object sender, EventArgs args) | ||
{ | ||
var alert = DisplayAlert("Alert", "You have been alerted", "OK", FlowDirection.RightToLeft); | ||
} | ||
|
||
void AlertLTR_Clicked(object sender, EventArgs args) | ||
{ | ||
var alert = DisplayAlert("Alert", "You have been alerted", "OK", FlowDirection.LeftToRight); | ||
} | ||
|
||
void ActionsheetNoFlow_Clicked(object sender, EventArgs args) | ||
{ | ||
var alert = DisplayActionSheet("ActionSheet: SavePhoto?", "Cancel", "Delete", "Photo Roll", "Email"); | ||
} | ||
|
||
void ActionsheetMatchParent_Clicked(object sender, EventArgs args) | ||
{ | ||
var alert = DisplayActionSheet("ActionSheet: SavePhoto?", "Cancel", "Delete", FlowDirection.MatchParent, "Photo Roll", "Email"); | ||
} | ||
|
||
void ActionsheetRTL_Clicked(object sender, EventArgs args) | ||
{ | ||
var alert = DisplayActionSheet("ActionSheet: SavePhoto?", "Cancel", "Delete", FlowDirection.RightToLeft, "Photo Roll", "Email"); | ||
} | ||
|
||
void ActionsheetLTR_Clicked(object sender, EventArgs args) | ||
{ | ||
var alert = DisplayActionSheet("ActionSheet: SavePhoto?", "Cancel", "Delete", FlowDirection.LeftToRight, "Photo Roll", "Email"); | ||
} | ||
#endif | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.