public void SetRoutedProperty(IRoutedSetterProperty property) { switch (property.Name) { case "StrokeWidth": { var prop = (RoutedSetterProperty<double>)property; this._framePen.Width = (float)prop.Value; EhSelfChanged(EventArgs.Empty); } break; } }
public void SetRoutedProperty(IRoutedSetterProperty property) { _plotStyles.SetRoutedProperty(property); }
public void SetRoutedProperty(IRoutedSetterProperty property) { switch (property.Name) { case "FontSize": { var prop = (RoutedSetterProperty<double>)property; this.Font = _font.WithSize(prop.Value); EhSelfChanged(EventArgs.Empty); } break; case "FontFamily": { var prop = (RoutedSetterProperty<string>)property; try { var newFont = _font.WithFamily(prop.Value); _font = newFont; _isStructureInSync = false; EhSelfChanged(EventArgs.Empty); } catch (Exception) { } } break; } }
public void SetRoutedProperty(IRoutedSetterProperty property) { switch (property.Name) { case "StrokeWidth": { var prop = (RoutedSetterProperty<double>)property; _axisPen = _axisPen.WithUniformThickness(prop.Value); _majorTickPen = _majorTickPen.WithUniformThickness(prop.Value); _minorTickPen = _minorTickPen.WithUniformThickness(prop.Value); EhSelfChanged(EventArgs.Empty); } break; } }