DiagramSocketVisualState

StockSharp.Xaml.Diagram.Presentation

Resolves the WPF-compatible breakpoint and selection brushes for a diagram socket.

Implements: IEquatable<DiagramSocketVisualState>

Constructors

DiagramSocketVisualState
public DiagramSocketVisualState(string StrokeResourceKey, string FillResourceKey)
diagramSocketVisualState = DiagramSocketVisualState(StrokeResourceKey, FillResourceKey)

Resolves the WPF-compatible breakpoint and selection brushes for a diagram socket.

Methods

Create
public static DiagramSocketVisualState Create(bool isBreak, bool isBreakActive, bool isSelected)
result = DiagramSocketVisualState.Create(isBreak, isBreakActive, isSelected)

Creates a visual state from the socket flags.

isBreak
Whether a breakpoint is set.
isBreakActive
Whether the breakpoint is active.
isSelected
Whether the socket is selected.

Returns: Resolved semantic resource keys.