-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[net8.0] Merge main to net8 (#19898)
* Fix issue 18110 * Fix SetProgressViewOffset on SwipeRefreshLayout (#19767) * Fix SetProgressViewOffset on SwipeRefreshLayout * - update refresh icon to a better color to trigger screen shot comparison * - remove extra code * - add better exception * Fix incorrect defaults when adding non-BindableObject as AbsoluteLayout child (#19839) * [Windows] Show the Raw HTML for Html Label in case of error (#17470) * Show the Raw HTML in case of error * Try to add UITest for Broken HTML * added optional ReceiveSms permission (#19659) * iOS Keyboard Scrolling Improvements and UITests (not from fork) (#17670) * Squash all the iOS Keyboard Improvements * delay was enough manually, but not for tests * remove debugging * Add logic for Disconnect to be more useful * fix spacing from github merge conflict commit * accidently removed a var declaration * Improve UITests and add double scroll for LargeTitles * Add UITest for the grid star * Style changes * more style * add fixtureTeardown * only check for LargeTitles in portrait mode * Add changes for LargeTitles on iPad * remove the popover code until we get tests * [ci] Bump XCode to 15.2.0 (#19836) * [ci] Bump XCode to 15.1.0 * Go to Xcode 15.2 * New xcode 15.1 doesn't support 14.5 simulators * Add missing AbsoluteLayout section to layout architecture doc (#19841) * [ci] Don't install xharness globally (#19863) * dont install xharness globally * Fix restore * Update README.md (#19797) * [xamlg] improve error for Xamarin.Forms namespace (#19683) * [xamlg] improve error for Xamarin.Forms namespace Fixes: #18637 Using the old namespace `http://xamarin.com/schemas/2014/forms` was causing a NRE: System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.Maui.Controls.Xaml.XmlTypeXamlExtensions.GetTypeReference[T](XmlType xmlType, IEnumerable`1 xmlnsDefinitions, String defaultAssemblyName, Func`2 refFromTypeInfo) at Microsoft.Maui.Controls.SourceGen.CodeBehindGenerator.GetTypeNameFromCustomNamespace(XmlType xmlType, Compilation compilation, AssemblyCaches caches) at Microsoft.Maui.Controls.SourceGen.CodeBehindGenerator.GetTypeName(XmlType xmlType, Compilation compilation, AssemblyCaches caches) at Microsoft.Maui.Controls.SourceGen.CodeBehindGenerator.TryParseXaml(SourceText text, String uid, Compilation compilation, AssemblyCaches caches, CancellationToken cancellationToken, String targetFramework, String& accessModifier, String& rootType, String& rootClrNamespace, Boolean& generateDefaultCtor, Boolean& addXamlCompilationAttribute, Boolean& hideFromIntellisense, Boolean& xamlResourceIdOnly, String& baseType, IEnumerable`1& namedFields, Exception& exception) at Microsoft.Maui.Controls.SourceGen.CodeBehindGenerator.GenerateXamlCodeBehind(ProjectItem projItem, Compilation compilation, SourceProductionContext context, AssemblyCaches caches) at Microsoft.Maui.Controls.SourceGen.CodeBehindGenerator.<>c.<Initialize>b__1_1(SourceProductionContext sourceProductionContext, ValueTuple`3 provider) at Microsoft.CodeAnalysis.UserFunctionExtensions.<>c__DisplayClass3_0`2.<WrapUserAction>b__0(TInput1 input1, TInput2 input2, CancellationToken token) In f939049, I inadvertently introduced this NRE, but even after fixing it, I would instead get: FormsNamespace.xaml.sg.cs(15,48): error CS1001: Identifier expected Due to the namespace, type, and base type all being `null` in this case, the generated C# is invalid. Instead of generating C# *at all*, let's emit an error message that says to use the correct namespace. I also provided a `Location` for the error message, so we will now know what file the error originated from. I attempted to write some test here, but adding an invalid file like this causes the XAML unit tests project to fail to build. It feels like we actually need to create a unit test project for the source generator -- as there isn't one now. * Add `[Obsolete]` to `FormsUri` --------- Co-authored-by: Mike Parker <mikeparker104> Co-authored-by: Shane Neuville <shneuvil@microsoft.com> Co-authored-by: E.Z. Hart <hartez@users.noreply.github.com> Co-authored-by: Tim Miller <drasticactions@users.noreply.github.com> Co-authored-by: Mike Parker <mikeparker104@users.noreply.github.com> Co-authored-by: Georgy <tarasverq@yandex.ru> Co-authored-by: TJ Lambert <50846373+tj-devel709@users.noreply.github.com> Co-authored-by: James Montemagno <james.montemagno@gmail.com> Co-authored-by: Jonathan Peppers <jonathan.peppers@microsoft.com>
- Loading branch information
1 parent
527a658
commit 62ca213
Showing
45 changed files
with
1,051 additions
and
33 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
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
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
30 changes: 30 additions & 0 deletions
30
src/Controls/samples/Controls.Sample.UITests/Elements/KeyboardScrollingEditorsPage.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,30 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
AutomationId="KeyboardScrollingEditorsPage" | ||
x:Class="Maui.Controls.Sample.KeyboardScrollingEditorsPage"> | ||
<Grid RowDefinitions="*,*"> | ||
<Grid Grid.Row="0"> | ||
<VerticalStackLayout> | ||
<Editor Placeholder="Editor1" AutomationId="Editor1" Background="lightgray" HeightRequest="50"/> | ||
<Editor Placeholder="Editor2" AutomationId="Editor2" Background="lightgray" HeightRequest="50"/> | ||
<Editor Placeholder="Editor3" AutomationId="Editor3" Background="lightgray" HeightRequest="50"/> | ||
<Editor Placeholder="Editor4" AutomationId="Editor4" Background="lightgray" HeightRequest="50"/> | ||
<Editor Placeholder="Editor5" AutomationId="Editor5" Background="lightgray" HeightRequest="50"/> | ||
<Editor Placeholder="Editor6" AutomationId="Editor6" Background="lightgray" HeightRequest="50"/> | ||
<Editor Placeholder="Editor7" AutomationId="Editor7" Background="lightgray" HeightRequest="50"/> | ||
<Editor Placeholder="Editor8" AutomationId="Editor8" Background="lightgray" HeightRequest="50"/> | ||
<Editor Placeholder="Editor9" AutomationId="Editor9" Background="lightgray" HeightRequest="50"/> | ||
<Editor Placeholder="Editor10" AutomationId="Editor10" Background="lightgray" HeightRequest="50"/> | ||
<Editor Placeholder="Editor11" AutomationId="Editor11" Background="lightgray" HeightRequest="50"/> | ||
<Editor Placeholder="Editor12" AutomationId="Editor12" Background="lightgray" HeightRequest="50"/> | ||
<Editor Placeholder="Editor13" AutomationId="Editor13" Background="lightgray" HeightRequest="50"/> | ||
<Editor Placeholder="Editor14" AutomationId="Editor14" Background="lightgray" HeightRequest="50"/> | ||
<Editor Placeholder="Editor15" AutomationId="Editor15" Background="lightgray" HeightRequest="50"/> | ||
<Editor Placeholder="Editor16" AutomationId="Editor16" Background="lightgray" HeightRequest="50"/> | ||
<Editor Placeholder="Editor17" AutomationId="Editor17" Background="lightgray" HeightRequest="50"/> | ||
<Editor Placeholder="Editor18" AutomationId="Editor17" Background="lightgray" HeightRequest="65"/> | ||
</VerticalStackLayout> | ||
</Grid> | ||
</Grid> | ||
</ContentView> |
14 changes: 14 additions & 0 deletions
14
src/Controls/samples/Controls.Sample.UITests/Elements/KeyboardScrollingEditorsPage.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,14 @@ | ||
using System; | ||
using Microsoft.Maui.Controls; | ||
using Microsoft.Maui.Controls.Xaml; | ||
|
||
namespace Maui.Controls.Sample; | ||
|
||
[XamlCompilation(XamlCompilationOptions.Compile)] | ||
public partial class KeyboardScrollingEditorsPage : ContentView | ||
{ | ||
public KeyboardScrollingEditorsPage() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
src/Controls/samples/Controls.Sample.UITests/Elements/KeyboardScrollingEntriesPage.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,31 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
AutomationId="KeyboardScrollingEntriesPage" | ||
x:Class="Maui.Controls.Sample.KeyboardScrollingEntriesPage" | ||
xmlns:ios="clr-namespace:Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific;assembly=Microsoft.Maui.Controls"> | ||
<Grid RowDefinitions="*,*"> | ||
<Grid Grid.Row="0"> | ||
<VerticalStackLayout> | ||
<Entry Placeholder="Entry1" AutomationId="Entry1" Background="lightgray" HeightRequest="50"/> | ||
<Entry Placeholder="Entry2" AutomationId="Entry2" Background="lightgray" HeightRequest="50"/> | ||
<Entry Placeholder="Entry3" AutomationId="Entry3" Background="lightgray" HeightRequest="50"/> | ||
<Entry Placeholder="Entry4" AutomationId="Entry4" Background="lightgray" HeightRequest="50"/> | ||
<Entry Placeholder="Entry5" AutomationId="Entry5" Background="lightgray" HeightRequest="50"/> | ||
<Entry Placeholder="Entry6" AutomationId="Entry6" Background="lightgray" HeightRequest="50"/> | ||
<Entry Placeholder="Entry7" AutomationId="Entry7" Background="lightgray" HeightRequest="50"/> | ||
<Entry Placeholder="Entry8" AutomationId="Entry8" Background="lightgray" HeightRequest="50"/> | ||
<Entry Placeholder="Entry9" AutomationId="Entry9" Background="lightgray" HeightRequest="50"/> | ||
<Entry Placeholder="Entry10" AutomationId="Entry10" Background="lightgray" HeightRequest="50"/> | ||
<Entry Placeholder="Entry11" AutomationId="Entry11" Background="lightgray" HeightRequest="50"/> | ||
<Entry Placeholder="Entry12" AutomationId="Entry12" Background="lightgray" HeightRequest="50"/> | ||
<Entry Placeholder="Entry13" AutomationId="Entry13" Background="lightgray" HeightRequest="50"/> | ||
<Entry Placeholder="Entry14" AutomationId="Entry14" Background="lightgray" HeightRequest="50"/> | ||
<Entry Placeholder="Entry15" AutomationId="Entry15" Background="lightgray" HeightRequest="50"/> | ||
<Entry Placeholder="Entry16" AutomationId="Entry16" Background="lightgray" HeightRequest="50"/> | ||
<Entry Placeholder="Entry17" AutomationId="Entry17" Background="lightgray" HeightRequest="50"/> | ||
<Entry Placeholder="Entry18" AutomationId="Entry18" Background="lightgray" HeightRequest="50"/> | ||
</VerticalStackLayout> | ||
</Grid> | ||
</Grid> | ||
</ContentView> |
15 changes: 15 additions & 0 deletions
15
src/Controls/samples/Controls.Sample.UITests/Elements/KeyboardScrollingEntriesPage.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,15 @@ | ||
using System; | ||
using Microsoft.Maui.Controls; | ||
using Microsoft.Maui.Controls.PlatformConfiguration; | ||
using Microsoft.Maui.Controls.Xaml; | ||
|
||
namespace Maui.Controls.Sample; | ||
|
||
[XamlCompilation(XamlCompilationOptions.Compile)] | ||
public partial class KeyboardScrollingEntriesPage : ContentView | ||
{ | ||
public KeyboardScrollingEntriesPage() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...ntrols/samples/Controls.Sample.UITests/Elements/KeyboardScrollingEntryNextEditorPage.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,12 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
AutomationId="KeyboardScrollingEntryNextEditorPage" | ||
x:Class="Maui.Controls.Sample.KeyboardScrollingEntryNextEditorPage"> | ||
<Grid RowDefinitions="100,100,100,100" RowSpacing="25"> | ||
<Entry Placeholder="First Entry" AutomationId="Entry1" Background="lightgray" ReturnType="Next" Grid.Row="0"/> | ||
<Entry Placeholder="Second Entry" AutomationId="Entry2" Background="lightgray" ReturnType="Next" Grid.Row="1"/> | ||
<Entry Placeholder="Third Entry" AutomationId="Entry3" Background="lightgray" ReturnType="Next" Grid.Row="2"/> | ||
<Editor Placeholder="Editor" AutomationId="Editor" Background="lightgray" Grid.Row="3"/> | ||
</Grid> | ||
</ContentView> |
14 changes: 14 additions & 0 deletions
14
...ols/samples/Controls.Sample.UITests/Elements/KeyboardScrollingEntryNextEditorPage.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,14 @@ | ||
using System; | ||
using Microsoft.Maui.Controls; | ||
using Microsoft.Maui.Controls.Xaml; | ||
|
||
namespace Maui.Controls.Sample; | ||
|
||
[XamlCompilation(XamlCompilationOptions.Compile)] | ||
public partial class KeyboardScrollingEntryNextEditorPage : ContentView | ||
{ | ||
public KeyboardScrollingEntryNextEditorPage() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
src/Controls/samples/Controls.Sample.UITests/Elements/KeyboardScrollingGridGallery.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,15 @@ | ||
using Microsoft.Maui.Controls; | ||
using Microsoft.Maui.Controls.Internals; | ||
using Microsoft.Maui.Controls.PlatformConfiguration; | ||
using Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific; | ||
|
||
namespace Maui.Controls.Sample; | ||
|
||
[Preserve(AllMembers = true)] | ||
public class KeyboardScrollingGridGallery : ContentViewGalleryPage | ||
{ | ||
public KeyboardScrollingGridGallery() | ||
{ | ||
Content = new KeyboardScrollingGridPage(); | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
src/Controls/samples/Controls.Sample.UITests/Elements/KeyboardScrollingGridPage.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,17 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
AutomationId="KeyboardScrollingGridPage" | ||
x:Class="Maui.Controls.Sample.KeyboardScrollingGridPage"> | ||
<Grid RowDefinitions="*, Auto"> | ||
<VerticalStackLayout Grid.Row="1"> | ||
<Entry Placeholder="Entry 1" AutomationId="Entry1"/> | ||
<Entry Placeholder="Entry 2" AutomationId="Entry2"/> | ||
<Entry Placeholder="Entry 3" AutomationId="Entry3"/> | ||
<Entry Placeholder="Entry 4" AutomationId="Entry4"/> | ||
<Entry Placeholder="Entry 5" AutomationId="Entry5"/> | ||
<Entry Placeholder="Entry 6" AutomationId="Entry6"/> | ||
<Entry Placeholder="Entry 7" AutomationId="Entry7"/> | ||
</VerticalStackLayout> | ||
</Grid> | ||
</ContentView> |
14 changes: 14 additions & 0 deletions
14
src/Controls/samples/Controls.Sample.UITests/Elements/KeyboardScrollingGridPage.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,14 @@ | ||
using System; | ||
using Microsoft.Maui.Controls; | ||
using Microsoft.Maui.Controls.Xaml; | ||
|
||
namespace Maui.Controls.Sample; | ||
|
||
[XamlCompilation(XamlCompilationOptions.Compile)] | ||
public partial class KeyboardScrollingGridPage : ContentView | ||
{ | ||
public KeyboardScrollingGridPage() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...s/Controls.Sample.UITests/Elements/KeyboardScrollingNonScrollingPageLargeTitlesGallery.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,23 @@ | ||
using Microsoft.Maui.Controls.Internals; | ||
using Microsoft.Maui.Controls.PlatformConfiguration; | ||
using Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific; | ||
|
||
namespace Maui.Controls.Sample | ||
{ | ||
[Preserve(AllMembers = true)] | ||
public class KeyboardScrollingNonScrollingPageLargeTitlesGallery : ContentViewGalleryPage | ||
{ | ||
public KeyboardScrollingNonScrollingPageLargeTitlesGallery() | ||
{ | ||
On<iOS>().SetLargeTitleDisplay(LargeTitleDisplayMode.Always); | ||
Add(new KeyboardScrollingEntriesPage()); | ||
Add(new KeyboardScrollingEditorsPage()); | ||
Add(new KeyboardScrollingEntryNextEditorPage()); | ||
} | ||
|
||
protected override bool SupportsScroll | ||
{ | ||
get { return false; } | ||
} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...s/Controls.Sample.UITests/Elements/KeyboardScrollingNonScrollingPageSmallTitlesGallery.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,23 @@ | ||
using Microsoft.Maui.Controls.Internals; | ||
using Microsoft.Maui.Controls.PlatformConfiguration; | ||
using Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific; | ||
|
||
namespace Maui.Controls.Sample | ||
{ | ||
[Preserve(AllMembers = true)] | ||
public class KeyboardScrollingNonScrollingPageSmallTitlesGallery : ContentViewGalleryPage | ||
{ | ||
public KeyboardScrollingNonScrollingPageSmallTitlesGallery() | ||
{ | ||
On<iOS>().SetLargeTitleDisplay(LargeTitleDisplayMode.Never); | ||
Add(new KeyboardScrollingEntriesPage()); | ||
Add(new KeyboardScrollingEditorsPage()); | ||
Add(new KeyboardScrollingEntryNextEditorPage()); | ||
} | ||
|
||
protected override bool SupportsScroll | ||
{ | ||
get { return false; } | ||
} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...ples/Controls.Sample.UITests/Elements/KeyboardScrollingScrollingPageLargeTitlesGallery.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,23 @@ | ||
using Microsoft.Maui.Controls.Internals; | ||
using Microsoft.Maui.Controls.PlatformConfiguration; | ||
using Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific; | ||
|
||
namespace Maui.Controls.Sample | ||
{ | ||
[Preserve(AllMembers = true)] | ||
public class KeyboardScrollingScrollingPageLargeTitlesGallery : ContentViewGalleryPage | ||
{ | ||
public KeyboardScrollingScrollingPageLargeTitlesGallery() | ||
{ | ||
On<iOS>().SetLargeTitleDisplay(LargeTitleDisplayMode.Always); | ||
Add(new KeyboardScrollingEntriesPage()); | ||
Add(new KeyboardScrollingEditorsPage()); | ||
Add(new KeyboardScrollingEntryNextEditorPage()); | ||
} | ||
|
||
protected override bool SupportsScroll | ||
{ | ||
get { return true; } | ||
} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...ples/Controls.Sample.UITests/Elements/KeyboardScrollingScrollingPageSmallTitlesGallery.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,23 @@ | ||
using Microsoft.Maui.Controls.Internals; | ||
using Microsoft.Maui.Controls.PlatformConfiguration; | ||
using Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific; | ||
|
||
namespace Maui.Controls.Sample | ||
{ | ||
[Preserve(AllMembers = true)] | ||
public class KeyboardScrollingScrollingPageSmallTitlesGallery : ContentViewGalleryPage | ||
{ | ||
public KeyboardScrollingScrollingPageSmallTitlesGallery() | ||
{ | ||
On<iOS>().SetLargeTitleDisplay(LargeTitleDisplayMode.Never); | ||
Add(new KeyboardScrollingEntriesPage()); | ||
Add(new KeyboardScrollingEditorsPage()); | ||
Add(new KeyboardScrollingEntryNextEditorPage()); | ||
} | ||
|
||
protected override bool SupportsScroll | ||
{ | ||
get { return true; } | ||
} | ||
} | ||
} |
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.