diff options
author | E.Z. Hart <hartez@users.noreply.github.com> | 2017-01-26 11:51:28 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-26 11:51:28 -0700 |
commit | 520ff4a227d599a2ef68ed13478cff1bd3308bb3 (patch) | |
tree | c4a2ce95ad7404bccee0b08c35d7bd27ed9408f1 /Xamarin.Forms.Controls.Issues | |
parent | c013452734ea5c8745f3ee849a40e0c65332fb82 (diff) | |
download | xamarin-forms-520ff4a227d599a2ef68ed13478cff1bd3308bb3.tar.gz xamarin-forms-520ff4a227d599a2ef68ed13478cff1bd3308bb3.tar.bz2 xamarin-forms-520ff4a227d599a2ef68ed13478cff1bd3308bb3.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 68193dc1..0ca65acd 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)Bugzilla44944.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Bugzilla44166.cs" /> |