proof of concept - add these attributes to custom control values that hard code an base property that would otherwise be settable by the designer

This commit is contained in:
adelikat 2020-02-28 17:52:04 -06:00
parent 458dd22eb8
commit 69ad9050d2
1 changed files with 4 additions and 0 deletions

View File

@ -1,9 +1,13 @@
using System.ComponentModel;
using System.Windows.Forms; using System.Windows.Forms;
namespace BizHawk.Client.EmuHawk.CustomControls namespace BizHawk.Client.EmuHawk.CustomControls
{ {
public class AutosizedLabel : Label public class AutosizedLabel : Label
{ {
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public override bool AutoSize => true; public override bool AutoSize => true;
public AutosizedLabel() : base() { public AutosizedLabel() : base() {