From 61d4d516f6b04a2a73be253c7717ed2610d489a9 Mon Sep 17 00:00:00 2001 From: Suraj Date: Wed, 17 Jan 2024 12:39:15 +0530 Subject: [PATCH] Add AlwaysOn ControlsType --- src/Blazor.Diagrams.Core/Controls/ControlsContainer.cs | 4 ++++ src/Blazor.Diagrams.Core/Controls/ControlsType.cs | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Blazor.Diagrams.Core/Controls/ControlsContainer.cs b/src/Blazor.Diagrams.Core/Controls/ControlsContainer.cs index 5ebc16b46..1a71d1d0d 100644 --- a/src/Blazor.Diagrams.Core/Controls/ControlsContainer.cs +++ b/src/Blazor.Diagrams.Core/Controls/ControlsContainer.cs @@ -16,6 +16,10 @@ public ControlsContainer(Model model, ControlsType type = ControlsType.OnSelecti { Model = model; Type = type; + if (type == ControlsType.AlwaysOn) + { + Visible = true; + } } public Model Model { get; } diff --git a/src/Blazor.Diagrams.Core/Controls/ControlsType.cs b/src/Blazor.Diagrams.Core/Controls/ControlsType.cs index 5997e72c9..641a79fdd 100644 --- a/src/Blazor.Diagrams.Core/Controls/ControlsType.cs +++ b/src/Blazor.Diagrams.Core/Controls/ControlsType.cs @@ -3,5 +3,6 @@ namespace Blazor.Diagrams.Core.Controls; public enum ControlsType { OnHover, - OnSelection + OnSelection, + AlwaysOn } \ No newline at end of file