protected override void OnRender(DrawingContext dc) { var color = _theme["ForegroundColor"] as SolidColorBrush; dc.DrawGeometry(color, new Pen(color, 1), _geometry); _textTags.ForEach(tag => TextUtils.DrawText(dc, tag._text, tag._x, tag._y, 100, false, color)); }
public void OnRender(DrawingContext dc) { if (_enabled) { double thickness = _selectedGraphPoint != null ? 3.0f : 1.0f; dc.DrawGeometry(_colorBrush, new Pen(_colorBrush, thickness), _geometry); if (_selectedGraphPoint != null) { TextUtils.DrawText(dc, string.Format("{0}: {1:0.00}{2}", _description, _selectedGraphPoint._value, _unitTag), SystemPerformanceGraphsCanvas._savedHorizontalViewport.X, _selectedGraphPoint._coordinates.Y, 200, false, VisualStyle.Foreground); dc.DrawGeometry(Brushes.Gray, new Pen(Brushes.Gray, 1), _selectionLinesGeometry); } } }
protected override void OnRender(DrawingContext dc) { dc.DrawGeometry(Brushes.Black, new Pen(Brushes.Black, 1), _geometry); _textTags.ForEach(tag => TextUtils.DrawText(dc, tag._text, tag._x, tag._y, 100, false, Brushes.Black)); }
protected override void OnRender(DrawingContext dc) { dc.DrawGeometry(VisualStyle.Foreground, new Pen(VisualStyle.Foreground, 1), _geometry); _textTags.ForEach(tag => TextUtils.DrawText(dc, tag._text, tag._x, tag._y, 100, false, VisualStyle.Foreground)); }