-
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.
Merge branch 'main' of https://github.com/NanthiniMahalingam/maui int…
…o issue-18452
- Loading branch information
Showing
32 changed files
with
663 additions
and
62 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 was deleted.
Oops, something went wrong.
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
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
2 changes: 1 addition & 1 deletion
2
src/Controls/src/Core/PublicAPI/net-windows/PublicAPI.Unshipped.txt
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 |
---|---|---|
@@ -1 +1 @@ | ||
#nullable enable | ||
#nullable enable |
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
Binary file added
BIN
+34.1 KB
...ols/tests/TestCases.Android.Tests/snapshots/android/ChangeShellContentTitle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+24 KB
...ontrols/tests/TestCases.Android.Tests/snapshots/android/NavigationPageTitle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions
40
src/Controls/tests/TestCases.HostApp/Issues/Issue19859.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,40 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<FlyoutPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
x:Class="Maui.Controls.Sample.Issues.Issue19859" | ||
Title="DemoFlyoutPage" | ||
FlyoutLayoutBehavior="Default"> | ||
|
||
<FlyoutPage.Flyout> | ||
<ContentPage Title="The Flyout" BackgroundColor="DarkBlue"> | ||
<VerticalStackLayout> | ||
<Label Text="This is FlyoutPage Flyout" | ||
FontAttributes="Bold" | ||
FontSize="20" | ||
TextColor="White" | ||
HorizontalTextAlignment="Center" | ||
Margin="20"/> | ||
<Button Clicked="OnClicked" Text="Change Title"/> | ||
</VerticalStackLayout> | ||
</ContentPage> | ||
</FlyoutPage.Flyout> | ||
|
||
<FlyoutPage.Detail> | ||
<NavigationPage BarBackgroundColor="Yellow" BarTextColor="Red" Title="Title 1" x:Name="NavigationPage"> | ||
<x:Arguments> | ||
<ContentPage BackgroundColor="DarkRed"> | ||
<VerticalStackLayout> | ||
<Label Text="This is FlyoutPage Detail" | ||
FontAttributes="Bold" | ||
FontSize="20" | ||
TextColor="White" | ||
HorizontalTextAlignment="Center" | ||
Margin="20"/> | ||
<Button x:Name="button" Clicked="OnClicked" AutomationId="Button" Text="Change Title"/> | ||
</VerticalStackLayout> | ||
</ContentPage> | ||
</x:Arguments> | ||
</NavigationPage> | ||
</FlyoutPage.Detail> | ||
|
||
</FlyoutPage> |
37 changes: 37 additions & 0 deletions
37
src/Controls/tests/TestCases.HostApp/Issues/Issue19859.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,37 @@ | ||
namespace Maui.Controls.Sample.Issues | ||
{ | ||
[XamlCompilation(XamlCompilationOptions.Compile)] | ||
[Issue(IssueTracker.Github, 19859, "NavigationPage: BarBackgroundColor, BarTextColor and Title not updating", PlatformAffected.Android)] | ||
public partial class Issue19859 : FlyoutPage | ||
{ | ||
public Issue19859() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
private static int _count = 0; | ||
|
||
private void OnClicked(object sender, EventArgs e) | ||
{ | ||
var oldBarBackgroundColor = NavigationPage.BarBackgroundColor; | ||
NavigationPage.BarBackgroundColor = oldBarBackgroundColor.Equals(Colors.Yellow) | ||
? Colors.Red | ||
: Colors.Yellow; | ||
var newBarBackgroundColor = NavigationPage.BarBackgroundColor; | ||
|
||
var oldBarTextColor = NavigationPage.BarTextColor; | ||
NavigationPage.BarTextColor = oldBarTextColor.Equals(Colors.Yellow) | ||
? Colors.Red | ||
: Colors.Yellow; | ||
var newBarTextColor = NavigationPage.BarTextColor; | ||
|
||
var oldTitle = NavigationPage.Title; | ||
NavigationPage.Title = oldTitle == "Title 1" | ||
? "Title 2" | ||
: "Title 1"; | ||
var newTitle = NavigationPage.Title; | ||
|
||
button.Text = $"{_count++}"; | ||
} | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
src/Controls/tests/TestCases.HostApp/Issues/Issue7453.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,29 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<Shell xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
x:Class="Maui.Controls.Sample.Issues.Issue7453" | ||
FlyoutBehavior="Disabled" | ||
Title="Issue7453"> | ||
<TabBar AutomationId="TabBar"> | ||
<Tab Title="Nested Tabs" AutomationId="tabbar"> | ||
<ShellContent x:Name="tab" Title="Home"> | ||
<ContentPage> | ||
<StackLayout HorizontalOptions="Center" Spacing="30"> | ||
<HorizontalStackLayout> | ||
<Label Text="Current Shell Title : " FontAttributes="Bold"/> | ||
<Label Text="{Binding Source={x:Reference tab}, Path=Title}" AutomationId="LabelId" /> | ||
</HorizontalStackLayout> | ||
<Button Text="Change Title" AutomationId="ChangeShellContentTitle" VerticalOptions="Center" HorizontalOptions="Center" WidthRequest="100" HeightRequest="40" Clicked="OnButtonClicked"/> | ||
</StackLayout> | ||
</ContentPage> | ||
</ShellContent> | ||
|
||
<ShellContent Title="Settings"> | ||
<ContentPage> | ||
<Label Text="This is Settings page"/> | ||
</ContentPage> | ||
</ShellContent> | ||
</Tab> | ||
</TabBar> | ||
|
||
</Shell> |
16 changes: 16 additions & 0 deletions
16
src/Controls/tests/TestCases.HostApp/Issues/Issue7453.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,16 @@ | ||
namespace Maui.Controls.Sample.Issues; | ||
|
||
[XamlCompilation(XamlCompilationOptions.Compile)] | ||
[Issue(IssueTracker.Github, 7453, "ShellContent Title doesn't observe changes to bound properties", PlatformAffected.UWP | PlatformAffected.Android)] | ||
public partial class Issue7453 : Shell | ||
{ | ||
public Issue7453() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
private void OnButtonClicked(object sender, EventArgs e) | ||
{ | ||
this.tab.Title = "Updated title"; | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
src/Controls/tests/TestCases.HostApp/Issues/RenderingPerformance.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,41 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:issues="clr-namespace:Maui.Controls.Sample.Issues" | ||
x:Class="Maui.Controls.Sample.Issues.RenderingPerformance" | ||
Title="RenderingPerformance"> | ||
|
||
<Grid Padding="24" RowDefinitions="Auto,Auto,*" RowSpacing="8"> | ||
<Button x:Name="StartButton" Clicked="ButtonClicked" Text="Start" AutomationId="StartButton" /> | ||
<Label Grid.Row="1" Text="Do not press 'Start' more than once, just wait." /> | ||
|
||
<ScrollView Grid.Row="2"> | ||
<ContentView> | ||
<VerticalStackLayout x:Name="BindableContainer" BindableLayout.ItemsSource="{Binding Models}"> | ||
<BindableLayout.ItemTemplate> | ||
<DataTemplate> | ||
<Border Margin="0,16" Padding="8" StrokeShape="RoundRectangle 8" Background="LightBlue"> | ||
<Grid RowDefinitions="Auto,Auto,Auto"> | ||
<Label Text="{Binding Header}" /> | ||
<Label Text="{Binding Content}" Grid.Row="1" /> | ||
<VerticalStackLayout Grid.Row="2" BindableLayout.ItemsSource="{Binding SubModels}" Margin="16,0"> | ||
<BindableLayout.ItemTemplate> | ||
<DataTemplate> | ||
<ContentView> | ||
<VerticalStackLayout Margin="0,8"> | ||
<Label Text="{Binding Header}" /> | ||
<issues:MeasuredLabel IsMeasured="{Binding IsMeasured}" Text="{Binding Content}" /> | ||
</VerticalStackLayout> | ||
</ContentView> | ||
</DataTemplate> | ||
</BindableLayout.ItemTemplate> | ||
</VerticalStackLayout> | ||
</Grid> | ||
</Border> | ||
</DataTemplate> | ||
</BindableLayout.ItemTemplate> | ||
</VerticalStackLayout> | ||
</ContentView> | ||
</ScrollView> | ||
</Grid> | ||
</ContentPage> |
Oops, something went wrong.