From 80bf38b418bf92858fa28c9e663fbf3a33f2db9a Mon Sep 17 00:00:00 2001 From: beto rodriguez Date: Sun, 12 Feb 2017 17:47:13 -0600 Subject: [PATCH] fixed an issue with uwp clipping --- UwpView/Charts/Base/Chart.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/UwpView/Charts/Base/Chart.cs b/UwpView/Charts/Base/Chart.cs index bb354964d..0ef1c6a30 100644 --- a/UwpView/Charts/Base/Chart.cs +++ b/UwpView/Charts/Base/Chart.cs @@ -137,7 +137,10 @@ private void OnLoaded(object sender, RoutedEventArgs args) private void OnSizeChanged(object sender, SizeChangedEventArgs args) { Model.ControlSize = new CoreSize(ActualWidth, ActualHeight); - Canvas.Clip = new RectangleGeometry(new Rect(new Point(0, 0), new Size(ActualWidth, ActualHeight))); + Canvas.Clip = new RectangleGeometry + { + Rect = new Rect(new Point(0, 0), new Size(ActualWidth, ActualHeight)) + }; Model.Updater.Run(); }