public IndicatorStyle(IndicatorKind indicatorKind, IndicatorShape indicatorShape, Color color, bool behindText = false) { IndicatorKind = indicatorKind; IndicatorShape = indicatorShape; Color = color; BehindText = behindText; }
private void InitBindings() { CountTextBlock.SetBinding(TextBlock.VisibilityProperty, new Binding(nameof(IsCountVisible)) { Source = this, Mode = BindingMode.OneWay, Converter = new BoolToVisibilityConverter() }); IndicatorShape.SetBinding(Rectangle.FillProperty, new Binding(nameof(OrderType)) { Source = this, Mode = BindingMode.OneWay, Converter = new OrderTypeToBrushConverter() }); }
public virtual void SetIndicatorP2() { indicatorShapeP2 = new IndicatorShape(currentFallingShapeP2); UpdateIndicator(); UpdateIndicatorP2(); }
public static IndicatorView IndicatorsShape(this IndicatorView indicator, IndicatorShape shape) { indicator.IndicatorsShape = shape; return(indicator); }
public override void SetIndicator() { indicatorShape = new IndicatorShape(currentFallingShape, true); UpdateIndicator(); }