diff options
author | kingces95 <kingces95@users.noreply.github.com> | 2016-04-22 13:34:13 -0700 |
---|---|---|
committer | Samantha Houts <samantha@teamredwall.com> | 2016-04-22 13:34:13 -0700 |
commit | e0c3f487774f2dbdb1fecc5a3831bd794e0b1883 (patch) | |
tree | e34ce77da63ddb685ca107b23bfd9fdb36ef5d87 /Xamarin.Forms.Platform.WinRT.Tablet | |
parent | 92ad48bbdf5804763365fee8eef337185c621b4e (diff) | |
download | xamarin-forms-e0c3f487774f2dbdb1fecc5a3831bd794e0b1883.tar.gz xamarin-forms-e0c3f487774f2dbdb1fecc5a3831bd794e0b1883.tar.bz2 xamarin-forms-e0c3f487774f2dbdb1fecc5a3831bd794e0b1883.zip |
Windows.UI.Xaml.dll on X64 Windows.UI.Xaml.Setter.get_Value is NYI (#93)
* Windows.UI.Xaml.dll on X64 Windows.UI.Xaml.Setter.get_Value is NYI
* Add comment
Diffstat (limited to 'Xamarin.Forms.Platform.WinRT.Tablet')
-rw-r--r-- | Xamarin.Forms.Platform.WinRT.Tablet/WindowsResourcesProvider.cs | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/Xamarin.Forms.Platform.WinRT.Tablet/WindowsResourcesProvider.cs b/Xamarin.Forms.Platform.WinRT.Tablet/WindowsResourcesProvider.cs index 9c1351b0..64041c00 100644 --- a/Xamarin.Forms.Platform.WinRT.Tablet/WindowsResourcesProvider.cs +++ b/Xamarin.Forms.Platform.WinRT.Tablet/WindowsResourcesProvider.cs @@ -44,14 +44,22 @@ namespace Xamarin.Forms.Platform.WinRT // TODO: Need to implement a stealth pass-through for things we don't support - if (setter.Property == TextBlock.FontSizeProperty) - formsStyle.Setters.Add(Label.FontSizeProperty, setter.Value); - else if (setter.Property == TextBlock.FontFamilyProperty) - formsStyle.Setters.Add(Label.FontFamilyProperty, setter.Value); - else if (setter.Property == TextBlock.FontWeightProperty) - formsStyle.Setters.Add(Label.FontAttributesProperty, ToAttributes(Convert.ToUInt16(setter.Value))); - else if (setter.Property == TextBlock.TextWrappingProperty) - formsStyle.Setters.Add(Label.LineBreakModeProperty, ToLineBreakMode((TextWrapping)setter.Value)); + try + { + if (setter.Property == TextBlock.FontSizeProperty) + formsStyle.Setters.Add(Label.FontSizeProperty, setter.Value); + else if (setter.Property == TextBlock.FontFamilyProperty) + formsStyle.Setters.Add(Label.FontFamilyProperty, setter.Value); + else if (setter.Property == TextBlock.FontWeightProperty) + formsStyle.Setters.Add(Label.FontAttributesProperty, ToAttributes(Convert.ToUInt16(setter.Value))); + else if (setter.Property == TextBlock.TextWrappingProperty) + formsStyle.Setters.Add(Label.LineBreakModeProperty, ToLineBreakMode((TextWrapping)setter.Value)); + } + catch (NotImplementedException) + { + // see https://bugzilla.xamarin.com/show_bug.cgi?id=33135 + // WinRT implementation of Windows.UI.Xaml.Setter.get_Value is not implemented. + } } return formsStyle; |