summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.WP8
diff options
context:
space:
mode:
authorE.Z. Hart <hartez@users.noreply.github.com>2016-05-02 16:19:12 -0600
committerSamantha Houts <samantha@teamredwall.com>2016-05-02 15:19:12 -0700
commit5f8f47ff7ce934f4937ec428b3c1def6286f14da (patch)
tree832d48d28c09eccd8b39838d16b0b9887bff7e55 /Xamarin.Forms.Platform.WP8
parent70d0e406ec2fcaf8c883d9b7aa2fc287466645ca (diff)
downloadxamarin-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.WP8')
-rw-r--r--Xamarin.Forms.Platform.WP8/NativeViewWrapperRenderer.cs3
-rw-r--r--Xamarin.Forms.Platform.WP8/ProgressBarRenderer.cs3
-rw-r--r--Xamarin.Forms.Platform.WP8/ViewToRendererConverter.cs3
3 files changed, 6 insertions, 3 deletions
diff --git a/Xamarin.Forms.Platform.WP8/NativeViewWrapperRenderer.cs b/Xamarin.Forms.Platform.WP8/NativeViewWrapperRenderer.cs
index e28dec94..e47a6ca0 100644
--- a/Xamarin.Forms.Platform.WP8/NativeViewWrapperRenderer.cs
+++ b/Xamarin.Forms.Platform.WP8/NativeViewWrapperRenderer.cs
@@ -1,4 +1,5 @@
using System.Windows;
+using Xamarin.Forms.Internals;
namespace Xamarin.Forms.Platform.WinPhone
{
@@ -55,7 +56,7 @@ namespace Xamarin.Forms.Platform.WinPhone
if (e.OldElement == null)
{
SetNativeControl(Element.NativeElement);
- Control.LayoutUpdated += (sender, args) => { Element?.InvalidateMeasure(InvalidationTrigger.MeasureChanged); };
+ Control.LayoutUpdated += (sender, args) => { ((IVisualElementController)Element)?.InvalidateMeasure(InvalidationTrigger.MeasureChanged); };
}
}
}
diff --git a/Xamarin.Forms.Platform.WP8/ProgressBarRenderer.cs b/Xamarin.Forms.Platform.WP8/ProgressBarRenderer.cs
index b027d674..293d2d0e 100644
--- a/Xamarin.Forms.Platform.WP8/ProgressBarRenderer.cs
+++ b/Xamarin.Forms.Platform.WP8/ProgressBarRenderer.cs
@@ -1,5 +1,6 @@
´╗┐using System.ComponentModel;
using System.Windows;
+using Xamarin.Forms.Internals;
namespace Xamarin.Forms.Platform.WinPhone
{
@@ -29,7 +30,7 @@ namespace Xamarin.Forms.Platform.WinPhone
void ProgressBarOnValueChanged(object sender, RoutedPropertyChangedEventArgs<double> routedPropertyChangedEventArgs)
{
- Element?.InvalidateMeasure(InvalidationTrigger.MeasureChanged);
+ ((IVisualElementController)Element)?.InvalidateMeasure(InvalidationTrigger.MeasureChanged);
}
}
} \ No newline at end of file
diff --git a/Xamarin.Forms.Platform.WP8/ViewToRendererConverter.cs b/Xamarin.Forms.Platform.WP8/ViewToRendererConverter.cs
index 49b232a1..28f5f8c4 100644
--- a/Xamarin.Forms.Platform.WP8/ViewToRendererConverter.cs
+++ b/Xamarin.Forms.Platform.WP8/ViewToRendererConverter.cs
@@ -2,6 +2,7 @@
using System.Globalization;
using System.Windows;
using System.Windows.Controls;
+using Xamarin.Forms.Internals;
namespace Xamarin.Forms.Platform.WinPhone
{
@@ -40,7 +41,7 @@ namespace Xamarin.Forms.Platform.WinPhone
{
frameworkElement.Loaded += (sender, args) =>
{
- _view.InvalidateMeasure(InvalidationTrigger.MeasureChanged);
+ ((IVisualElementController)_view).InvalidateMeasure(InvalidationTrigger.MeasureChanged);
InvalidateMeasure();
};
}