From 3cfe90dd2c3289b87098115ed51d55b87b085b28 Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Fri, 3 Oct 2014 20:16:15 +0200 Subject: [PATCH] Added Thickness.ToString. --- Perspex.Diagnostics/ViewModels/PropertyDetails.cs | 3 --- Perspex.SceneGraph/Thickness.cs | 5 +++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Perspex.Diagnostics/ViewModels/PropertyDetails.cs b/Perspex.Diagnostics/ViewModels/PropertyDetails.cs index 8dc3284e57..212069dca1 100644 --- a/Perspex.Diagnostics/ViewModels/PropertyDetails.cs +++ b/Perspex.Diagnostics/ViewModels/PropertyDetails.cs @@ -7,9 +7,6 @@ namespace Perspex.Diagnostics.ViewModels { using System; - using System.Collections.Generic; - using System.Linq; - using Perspex.Controls; using ReactiveUI; internal class PropertyDetails : ReactiveObject diff --git a/Perspex.SceneGraph/Thickness.cs b/Perspex.SceneGraph/Thickness.cs index 65f01fefc2..dd61dde537 100644 --- a/Perspex.SceneGraph/Thickness.cs +++ b/Perspex.SceneGraph/Thickness.cs @@ -178,5 +178,10 @@ namespace Perspex return hash; } } + + public override string ToString() + { + return string.Format("{0},{1},{2},{3}", this.left, this.top, this.right, this.bottom); + } } }