diff options
author | Stephane Delcroix <stephane@delcroix.org> | 2016-12-12 10:35:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-12 10:35:42 +0100 |
commit | f0ea0fa4bf86c7b641d0ddc3c734a5b7971c90f7 (patch) | |
tree | 57536ced5b4810c2f415a03d0fb91387cd9556c4 /Xamarin.Forms.Xaml.UnitTests | |
parent | 1c796c3a9edfa6a5f16689e5e7ea775c8ef21339 (diff) | |
download | xamarin-forms-f0ea0fa4bf86c7b641d0ddc3c734a5b7971c90f7.tar.gz xamarin-forms-f0ea0fa4bf86c7b641d0ddc3c734a5b7971c90f7.tar.bz2 xamarin-forms-f0ea0fa4bf86c7b641d0ddc3c734a5b7971c90f7.zip |
[XamlC] compile ThicknessTypeConverter (#603)
Diffstat (limited to 'Xamarin.Forms.Xaml.UnitTests')
-rw-r--r-- | Xamarin.Forms.Xaml.UnitTests/CompiledTypeConverter.xaml | 4 | ||||
-rw-r--r-- | Xamarin.Forms.Xaml.UnitTests/CompiledTypeConverter.xaml.cs | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/Xamarin.Forms.Xaml.UnitTests/CompiledTypeConverter.xaml b/Xamarin.Forms.Xaml.UnitTests/CompiledTypeConverter.xaml index b1630646..296f9eeb 100644 --- a/Xamarin.Forms.Xaml.UnitTests/CompiledTypeConverter.xaml +++ b/Xamarin.Forms.Xaml.UnitTests/CompiledTypeConverter.xaml @@ -7,5 +7,5 @@ BackgroundColor="Pink"> <Label x:Name="label" HorizontalOptions="EndAndExpand" - RelativeLayout.XConstraint="2" /> -</ContentPage>
\ No newline at end of file + RelativeLayout.XConstraint="2" Margin="2,3"/> +</ContentPage> diff --git a/Xamarin.Forms.Xaml.UnitTests/CompiledTypeConverter.xaml.cs b/Xamarin.Forms.Xaml.UnitTests/CompiledTypeConverter.xaml.cs index 834a55c9..1ef319a3 100644 --- a/Xamarin.Forms.Xaml.UnitTests/CompiledTypeConverter.xaml.cs +++ b/Xamarin.Forms.Xaml.UnitTests/CompiledTypeConverter.xaml.cs @@ -38,7 +38,8 @@ namespace Xamarin.Forms.Xaml.UnitTests Assert.AreEqual(LayoutOptions.EndAndExpand, p.label.GetValue(View.HorizontalOptionsProperty)); var xConstraint = RelativeLayout.GetXConstraint(p.label); Assert.AreEqual(2, xConstraint.Compute(null)); + Assert.AreEqual(new Thickness(2, 3), p.label.Margin); } } } -}
\ No newline at end of file +} |