DiagramSocketVisualState

StockSharp.Xaml.Diagram.Presentation

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

实现: IEquatable<DiagramSocketVisualState>

构造函数

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

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

方法

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.

返回值: Resolved semantic resource keys.