Skip to content

Commit

Permalink
Add support for naming a table layout panel
Browse files Browse the repository at this point in the history
Fixes #849
  • Loading branch information
glopesdev committed Apr 20, 2022
1 parent 5fec059 commit 8a6535c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Bonsai.Design.Visualizers/TableLayoutPanelBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace Bonsai.Design.Visualizers
[DefaultProperty(nameof(CellSpans))]
[TypeVisualizer(typeof(TableLayoutPanelVisualizer))]
[Description("Specifies a mashup visualizer panel that can be used to arrange other visualizers in a grid.")]
public class TableLayoutPanelBuilder : VariableArgumentExpressionBuilder
public class TableLayoutPanelBuilder : VariableArgumentExpressionBuilder, INamedElement
{
/// <summary>
/// Initializes a new instance of the <see cref="TableLayoutPanelBuilder"/> class.
Expand All @@ -30,7 +30,13 @@ public TableLayoutPanelBuilder()
ColumnCount = 1;
RowCount = 1;
}


/// <summary>
/// Gets or sets the name of the visualizer window.
/// </summary>
[Description("The name of the visualizer window.")]
public string Name { get; set; }

/// <summary>
/// Gets or sets the number of columns in the visualizer grid layout.
/// </summary>
Expand Down

0 comments on commit 8a6535c

Please sign in to comment.