added View2

This commit is contained in:
Tig Kindel
2023-02-15 16:11:44 +07:00
parent 5ca74089bb
commit 1f00c88d7b
2 changed files with 28 additions and 1 deletions

View File

@@ -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,

View File

@@ -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);
}
}
}