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:
parent
458dd22eb8
commit
69ad9050d2
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue