Skip to content

Commit

Permalink
Set DesignerSerializationVisibility on control properties
Browse files Browse the repository at this point in the history
  • Loading branch information
cyanfish committed Aug 31, 2024
1 parent abff5c5 commit 11f3dad
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions NAPS2.Lib.WinForms/WinForms/ToolStripDoubleButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 11f3dad

Please sign in to comment.