diff --git a/.nuspec/Xamarin.Forms.DualScreen.nuspec b/.nuspec/Xamarin.Forms.DualScreen.nuspec new file mode 100644 index 000000000..921584416 --- /dev/null +++ b/.nuspec/Xamarin.Forms.DualScreen.nuspec @@ -0,0 +1,56 @@ + + + + Xamarin.Forms.DualScreen + $version$ + Microsoft + microsoft xamarin + xamarin forms twopaneview DualScreen xamarinforms xamarinformsdualscreen xamarin.forms.dualscreen + MIT + https://raw.githubusercontent.com/xamarin/Xamarin.Forms/master/Assets/xamarin_128x128.png + http://xamarin.com/forms + + true + DualScreen support for Xamarin.Forms + © Microsoft Corporation. All rights reserved. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/UWP.Build.targets b/UWP.Build.targets index ba65bfc82..8fd6159a1 100644 --- a/UWP.Build.targets +++ b/UWP.Build.targets @@ -7,10 +7,6 @@ Windows Mobile Extensions for the UWP - - - - diff --git a/Visual Studio 2019/Visualizers/attribcache140.bin b/Visual Studio 2019/Visualizers/attribcache140.bin new file mode 100644 index 000000000..c779bdbe3 Binary files /dev/null and b/Visual Studio 2019/Visualizers/attribcache140.bin differ diff --git a/Xamarin.Forms.ControlGallery.Android/Xamarin.Forms.ControlGallery.Android.csproj b/Xamarin.Forms.ControlGallery.Android/Xamarin.Forms.ControlGallery.Android.csproj index 07f066b40..e55604234 100644 --- a/Xamarin.Forms.ControlGallery.Android/Xamarin.Forms.ControlGallery.Android.csproj +++ b/Xamarin.Forms.ControlGallery.Android/Xamarin.Forms.ControlGallery.Android.csproj @@ -187,6 +187,10 @@ {4dcd0420-1168-4b77-86db-6196ee4bd491} Xamarin.Forms.CustomAttributes + + {fb4a866a-5721-4545-9e5d-b7f7d59875a4} + Xamarin.Forms.DualScreen + {bd50b39a-ebc5-408f-9c5e-923a8ebae473} Xamarin.Forms.Maps.Android diff --git a/Xamarin.Forms.ControlGallery.GTK/Xamarin.Forms.ControlGallery.GTK.csproj b/Xamarin.Forms.ControlGallery.GTK/Xamarin.Forms.ControlGallery.GTK.csproj index 212b639a3..b1a2decb4 100644 --- a/Xamarin.Forms.ControlGallery.GTK/Xamarin.Forms.ControlGallery.GTK.csproj +++ b/Xamarin.Forms.ControlGallery.GTK/Xamarin.Forms.ControlGallery.GTK.csproj @@ -115,6 +115,10 @@ {57b8b73d-c3b5-4c42-869e-7b2f17d354ac} Xamarin.Forms.Core + + {fb4a866a-5721-4545-9e5d-b7f7d59875a4} + Xamarin.Forms.DualScreen + {a9772bb1-0e17-42f5-a6db-60bfccbfdb9d} Xamarin.Forms.Maps.GTK diff --git a/Xamarin.Forms.ControlGallery.MacOS/Xamarin.Forms.ControlGallery.MacOS.csproj b/Xamarin.Forms.ControlGallery.MacOS/Xamarin.Forms.ControlGallery.MacOS.csproj index defb109af..c0f2af330 100644 --- a/Xamarin.Forms.ControlGallery.MacOS/Xamarin.Forms.ControlGallery.MacOS.csproj +++ b/Xamarin.Forms.ControlGallery.MacOS/Xamarin.Forms.ControlGallery.MacOS.csproj @@ -120,6 +120,10 @@ {57B8B73D-C3B5-4C42-869E-7B2F17D354AC} Xamarin.Forms.Core + + {fb4a866a-5721-4545-9e5d-b7f7d59875a4} + Xamarin.Forms.DualScreen + {7D13BAC2-C6A4-416A-B07E-C169B199E52B} Xamarin.Forms.Maps diff --git a/Xamarin.Forms.ControlGallery.WPF/Xamarin.Forms.ControlGallery.WPF.csproj b/Xamarin.Forms.ControlGallery.WPF/Xamarin.Forms.ControlGallery.WPF.csproj index f12c3a09f..f727a0ea1 100644 --- a/Xamarin.Forms.ControlGallery.WPF/Xamarin.Forms.ControlGallery.WPF.csproj +++ b/Xamarin.Forms.ControlGallery.WPF/Xamarin.Forms.ControlGallery.WPF.csproj @@ -123,6 +123,10 @@ {57b8b73d-c3b5-4c42-869e-7b2f17d354ac} Xamarin.Forms.Core + + {fb4a866a-5721-4545-9e5d-b7f7d59875a4} + Xamarin.Forms.DualScreen + {89b0db73-a32e-447c-9390-a2a59d89b2e4} Xamarin.Forms.Maps.WPF diff --git a/Xamarin.Forms.ControlGallery.WindowsUniversal/Xamarin.Forms.ControlGallery.WindowsUniversal.csproj b/Xamarin.Forms.ControlGallery.WindowsUniversal/Xamarin.Forms.ControlGallery.WindowsUniversal.csproj index 458603d43..c1714e0cc 100644 --- a/Xamarin.Forms.ControlGallery.WindowsUniversal/Xamarin.Forms.ControlGallery.WindowsUniversal.csproj +++ b/Xamarin.Forms.ControlGallery.WindowsUniversal/Xamarin.Forms.ControlGallery.WindowsUniversal.csproj @@ -105,6 +105,10 @@ {57b8b73d-c3b5-4c42-869e-7b2f17d354ac} Xamarin.Forms.Core + + {fb4a866a-5721-4545-9e5d-b7f7d59875a4} + Xamarin.Forms.DualScreen + {04d89a60-78ef-4a32-ae17-87e47e0233a5} Xamarin.Forms.Maps.UWP @@ -272,4 +276,4 @@ --> - \ No newline at end of file + diff --git a/Xamarin.Forms.ControlGallery.iOS/Xamarin.Forms.ControlGallery.iOS.csproj b/Xamarin.Forms.ControlGallery.iOS/Xamarin.Forms.ControlGallery.iOS.csproj index 05467fbb0..57a45e172 100644 --- a/Xamarin.Forms.ControlGallery.iOS/Xamarin.Forms.ControlGallery.iOS.csproj +++ b/Xamarin.Forms.ControlGallery.iOS/Xamarin.Forms.ControlGallery.iOS.csproj @@ -142,6 +142,10 @@ {cb9c96ce-125c-4a68-b6a1-c3ff1fbf93e1} Xamarin.Forms.Controls + + {fb4a866a-5721-4545-9e5d-b7f7d59875a4} + Xamarin.Forms.DualScreen + {aba078c4-f9bb-4924-8b2b-10fe0d2f5491} Xamarin.Forms.Maps.iOS diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue8779.xaml b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue8779.xaml new file mode 100644 index 000000000..8891067e2 --- /dev/null +++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue8779.xaml @@ -0,0 +1,51 @@ + + + + + \ No newline at end of file diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue8779.xaml.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue8779.xaml.cs new file mode 100644 index 000000000..4f0272c09 --- /dev/null +++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue8779.xaml.cs @@ -0,0 +1,73 @@ +using System; +using Xamarin.Forms.CustomAttributes; +using Xamarin.Forms.Internals; +using Xamarin.Forms.Xaml; +using System.Windows.Input; + +#if UITEST +using Xamarin.UITest; +using Xamarin.UITest.Queries; +using NUnit.Framework; +using Xamarin.Forms.Core.UITests; +#endif + +namespace Xamarin.Forms.Controls.Issues +{ +#if UITEST + [Category(UITestCategories.SwipeView)] +#endif +#if APP + [XamlCompilation(XamlCompilationOptions.Compile)] +#endif + [Preserve(AllMembers = true)] + [Issue(IssueTracker.Github, 8779, "[iOS][Android] Entry in custom SwipeItemView can't gain focus", PlatformAffected.Android | PlatformAffected.iOS)] + public partial class Issue8779 : TestContentPage + { + public Issue8779() + { +#if APP + Title = "Issue 8779"; + InitializeComponent(); + + CheckAnswerCommand = new Command(CheckAnswer); + BindingContext = this; +#endif + } + + public ICommand CheckAnswerCommand { get; private set; } + + protected override void Init() + { + + } + +#if APP + async void OnIncorrectAnswerInvoked(object sender, EventArgs e) + { + ((SwipeView)sender).Close(); + await DisplayAlert("Incorrect!", "Try again.", "OK"); + } + + async void OnCorrectAnswerInvoked(object sender, EventArgs e) + { + ((SwipeView)sender).Close(); + await DisplayAlert("Correct!", "The answer is 4.", "OK"); + } + + void CheckAnswer(string result) + { + if (!string.IsNullOrWhiteSpace(result)) + { + Int32.TryParse(resultEntry.Text, out int number); + + if (number.Equals(4)) + OnCorrectAnswerInvoked(swipeView, EventArgs.Empty); + else + OnIncorrectAnswerInvoked(swipeView, EventArgs.Empty); + + resultEntry.Text = string.Empty; + } + } +#endif + } +} diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems index 03595f023..92203ce60 100644 --- a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems +++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems @@ -1257,6 +1257,7 @@ + @@ -1413,6 +1414,7 @@ + diff --git a/Xamarin.Forms.Controls/GalleryPages/SwipeViewGalleries/CustomSizeSwipeViewGallery.xaml b/Xamarin.Forms.Controls/GalleryPages/SwipeViewGalleries/CustomSizeSwipeViewGallery.xaml index 3ff9a1e57..4ab577b54 100644 --- a/Xamarin.Forms.Controls/GalleryPages/SwipeViewGalleries/CustomSizeSwipeViewGallery.xaml +++ b/Xamarin.Forms.Controls/GalleryPages/SwipeViewGalleries/CustomSizeSwipeViewGallery.xaml @@ -26,37 +26,40 @@ Text="Test" BackgroundColor="Red" /> - + Text="This is the RightItems Content"/> +