summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core/SizeRequest.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Core/SizeRequest.cs')
-rw-r--r--Xamarin.Forms.Core/SizeRequest.cs29
1 files changed, 29 insertions, 0 deletions
diff --git a/Xamarin.Forms.Core/SizeRequest.cs b/Xamarin.Forms.Core/SizeRequest.cs
new file mode 100644
index 00000000..3a54aca2
--- /dev/null
+++ b/Xamarin.Forms.Core/SizeRequest.cs
@@ -0,0 +1,29 @@
+using System.Diagnostics;
+
+namespace Xamarin.Forms
+{
+ [DebuggerDisplay("Request={Request.Width}x{Request.Height}, Minimum={Minimum.Width}x{Minimum.Height}")]
+ public struct SizeRequest
+ {
+ public Size Request { get; set; }
+
+ public Size Minimum { get; set; }
+
+ public SizeRequest(Size request, Size minimum)
+ {
+ Request = request;
+ Minimum = minimum;
+ }
+
+ public SizeRequest(Size request)
+ {
+ Request = request;
+ Minimum = request;
+ }
+
+ public override string ToString()
+ {
+ return string.Format("{{Request={0} Minimum={1}}}", Request, Minimum);
+ }
+ }
+} \ No newline at end of file