diff options
author | E.Z. Hart <hartez@users.noreply.github.com> | 2017-01-26 11:51:28 -0700 |
---|---|---|
committer | Kangho Hur <kangho.hur@samsung.com> | 2017-03-24 13:15:53 +0900 |
commit | 19a2511444f9355c6935beeea0bb5c974af575d0 (patch) | |
tree | 4b942f882345aa167acc6dc67c139c16b192757a /Xamarin.Forms.Controls.Issues | |
parent | 7787b8bac9e78bd16b3519ab865a22efa564c125 (diff) | |
download | xamarin-forms-19a2511444f9355c6935beeea0bb5c974af575d0.tar.gz xamarin-forms-19a2511444f9355c6935beeea0bb5c974af575d0.tar.bz2 xamarin-forms-19a2511444f9355c6935beeea0bb5c974af575d0.zip |
Use a prototype TextBlock to resolve theme resources on Windows (#703)
* Use a prototype TextBlock to resolve theme resources on Windows
* Move textblock declaration to beginning of class
* Don't retain prototype TextBlock in memory
Diffstat (limited to 'Xamarin.Forms.Controls.Issues')
2 files changed, 31 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla43783.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla43783.cs new file mode 100644 index 00000000..99d4fcae --- /dev/null +++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla43783.cs @@ -0,0 +1,30 @@ +using Xamarin.Forms.CustomAttributes; +using Xamarin.Forms.Internals; + +namespace Xamarin.Forms.Controls.Issues +{ + [Preserve(AllMembers = true)] + [Issue(IssueTracker.Bugzilla, 43783, "[WP8.1] Most Device Styles do not render correctly in Windows Phone 8.1 (RT) applications", PlatformAffected.WinPhone)] + public class Bugzilla43783 : TestContentPage + { + protected override void Init() + { + Title = "Device"; + + Content = new StackLayout + { + Children = { + new Label { Margin = new Thickness(10), Text = "The Labels for Body, Caption, List Item, List Item Detail, and No Style should not all look the same. If all of them look the same, this test has failed."}, + new Label { Text = "Title style", Style = Device.Styles.TitleStyle }, + new Label { Text = "Subtitle style", Style = Device.Styles.SubtitleStyle }, + new Label { Text = "Body style", Style = Device.Styles.BodyStyle }, + new Label { Text = "Caption style", Style = Device.Styles.CaptionStyle }, + new Label { Text = "List item text style", Style = Device.Styles.ListItemTextStyle }, + new Label { Text = "List item detail text style", Style = Device.Styles.ListItemDetailTextStyle }, + new Label { Text = "No style" } + } + }; + } + + } +}
\ No newline at end of file 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 a8270fd5..5574bbc2 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 @@ -144,6 +144,7 @@ <Compile Include="$(MSBuildThisFileDirectory)Bugzilla43663.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Bugzilla43867.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Bugzilla43735.cs" /> + <Compile Include="$(MSBuildThisFileDirectory)Bugzilla43783.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Bugzilla44453.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Bugzilla51536.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Bugzilla44944.cs" /> |