Tig Kindel %!s(int64=2) %!d(string=hai) anos
pai
achega
1f00c88d7b
Modificáronse 2 ficheiros con 28 adicións e 1 borrados
  1. 1 1
      Terminal.Gui/Core/View.cs
  2. 27 0
      Terminal.Gui/Core/View2.cs

+ 1 - 1
Terminal.Gui/Core/View.cs

@@ -100,7 +100,7 @@ namespace Terminal.Gui {
 	///    frames for the vies that use <see cref="LayoutStyle.Computed"/>.
 	/// </para>
 	/// </remarks>
-	public partial class View : Responder, ISupportInitializeNotification {
+	public class View : Responder, ISupportInitializeNotification {
 
 		internal enum Direction {
 			Forward,

+ 27 - 0
Terminal.Gui/Core/View2.cs

@@ -0,0 +1,27 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Linq;
+using System.Reflection;
+using NStack;
+
+namespace Terminal.Gui {
+
+	public class View2 : View, ISupportInitializeNotification {
+		public Thickness Margin { get; set; }
+
+		void DrawThickness (Thickness thickness)
+		{
+
+		}
+
+		public override void Redraw (Rect bounds)
+		{
+			base.Redraw (bounds);
+
+			DrawThickness (Margin);
+		}
+
+
+	}
+}