private void InitDefaultValuesWithRadius(nfloat radius) { _radius = radius; _maximumValue = 100.0f; _minimumValue = 0.0f; _lineWidth = 5; _unfilledColor = UIColor.Black; _filledColor = UIColor.Red; _labelFont = UIFont.SystemFontOfSize(10.0f); _snapToLabels = false; _handleType = CircularSliderHandleType.CircularSliderHandleTypeSemiTransparentWhiteCircle; _labelColor = UIColor.Red; _labelDisplacement = 0; _angleFromNorth = 0; _innerMarkingLabels = new List <string> (); BackgroundColor = UIColor.Clear; }
private void InitDefaultValuesWithRadius(nfloat radius) { _radius = radius; _maximumValue = 100.0f; _minimumValue = 0.0f; _lineWidth = 5; _unfilledColor = UIColor.Black; _filledColor = UIColor.Red; _labelFont = UIFont.SystemFontOfSize(10.0f); _snapToLabels = false; _handleType = CircularSliderHandleType.CircularSliderHandleTypeSemiTransparentWhiteCircle; _labelColor = UIColor.Red; _labelDisplacement = 0; _angleFromNorth = 0; _innerMarkingLabels = new List<string> (); BackgroundColor = UIColor.Clear; }
public void SetHandleType(CircularSliderHandleType handleType) { _handleType = handleType; SetNeedsUpdateConstraints(); // This could affect intrinsic content size SetNeedsDisplay(); // Need to redraw with new handle type }