This repository has been archived by the owner on May 1, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed Title not updating on parent page (#743)
- Loading branch information
1 parent
53b1bba
commit f449b31
Showing
3 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla43527.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,43 @@ | ||
using System; | ||
using Xamarin.Forms.CustomAttributes; | ||
using Xamarin.Forms.Internals; | ||
|
||
#if UITEST | ||
using Xamarin.UITest; | ||
using NUnit.Framework; | ||
#endif | ||
|
||
namespace Xamarin.Forms.Controls.Issues | ||
{ | ||
[Preserve(AllMembers = true)] | ||
[Issue(IssueTracker.Bugzilla, 43527, "[UWP] Detail title does not update when wrapped in a NavigationPage", PlatformAffected.WinRT)] | ||
public class Bugzilla43527 : TestMasterDetailPage | ||
{ | ||
protected override void Init() | ||
{ | ||
Master = new ContentPage | ||
{ | ||
Title = "Master", | ||
BackgroundColor = Color.Red | ||
}; | ||
|
||
Detail = new NavigationPage(new TestPage()); | ||
} | ||
|
||
class TestPage : ContentPage | ||
{ | ||
public TestPage() | ||
{ | ||
Title = "Test Page"; | ||
|
||
Content = new StackLayout | ||
{ | ||
Children = { | ||
new Label { Text = "Hello Page" }, | ||
new Button { Text = "Change Title", Command = new Command(() => Title = $"New Title: {DateTime.Now.Second}") } | ||
} | ||
}; | ||
} | ||
} | ||
} | ||
} |
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