diff options
author | E.Z. Hart <hartez@users.noreply.github.com> | 2016-05-02 16:19:12 -0600 |
---|---|---|
committer | Samantha Houts <samantha@teamredwall.com> | 2016-05-02 15:19:12 -0700 |
commit | 5f8f47ff7ce934f4937ec428b3c1def6286f14da (patch) | |
tree | 832d48d28c09eccd8b39838d16b0b9887bff7e55 /Xamarin.Forms.Platform.WinRT/DatePickerRenderer.cs | |
parent | 70d0e406ec2fcaf8c883d9b7aa2fc287466645ca (diff) | |
download | xamarin-forms-5f8f47ff7ce934f4937ec428b3c1def6286f14da.tar.gz xamarin-forms-5f8f47ff7ce934f4937ec428b3c1def6286f14da.tar.bz2 xamarin-forms-5f8f47ff7ce934f4937ec428b3c1def6286f14da.zip |
Prep VisualElement (and descendants) for removal of InternalsVisibleTo (#141)
Diffstat (limited to 'Xamarin.Forms.Platform.WinRT/DatePickerRenderer.cs')
-rw-r--r-- | Xamarin.Forms.Platform.WinRT/DatePickerRenderer.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Xamarin.Forms.Platform.WinRT/DatePickerRenderer.cs b/Xamarin.Forms.Platform.WinRT/DatePickerRenderer.cs index 88df5cbc..646d7d33 100644 --- a/Xamarin.Forms.Platform.WinRT/DatePickerRenderer.cs +++ b/Xamarin.Forms.Platform.WinRT/DatePickerRenderer.cs @@ -3,6 +3,7 @@ using System.ComponentModel; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Media; +using Xamarin.Forms.Internals; #if WINDOWS_UWP @@ -85,12 +86,12 @@ namespace Xamarin.Forms.Platform.WinRT if (currentDate != e.NewDate.Date) // Match coerced value UpdateDate(currentDate); - Element.InvalidateMeasure(InvalidationTrigger.SizeRequestChanged); + ((IVisualElementController)Element).InvalidateMeasure(InvalidationTrigger.SizeRequestChanged); } void PickerOnForceInvalidate(object sender, EventArgs eventArgs) { - Element?.InvalidateMeasure(InvalidationTrigger.SizeRequestChanged); + ((IVisualElementController)Element)?.InvalidateMeasure(InvalidationTrigger.SizeRequestChanged); } void UpdateDate(DateTime date) |