mirror of
https://github.com/cyanfish/naps2.git
synced 2024-11-20 16:06:29 +03:00
Set DesignerSerializationVisibility on control properties
This commit is contained in:
parent
abff5c5cb8
commit
11f3dad8b3
@ -11,15 +11,21 @@ public class ToolStripDoubleButton : ToolStripButton
|
||||
public event EventHandler? FirstClick;
|
||||
public event EventHandler? SecondClick;
|
||||
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
|
||||
public Image? FirstImage { get; set; }
|
||||
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
|
||||
public Image? SecondImage { get; set; }
|
||||
|
||||
[Localizable(true)]
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
|
||||
public required string FirstText { get; init; }
|
||||
|
||||
[Localizable(true)]
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
|
||||
public required string SecondText { get; init; }
|
||||
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
|
||||
public int MaxTextWidth { get; init; }
|
||||
|
||||
public override Size GetPreferredSize(Size constrainingSize)
|
||||
|
Loading…
Reference in New Issue
Block a user