private void DashToggleClick(object sender, RoutedEventArgs e) { if (dashEnabled) { BorderDash.Stop(); } else { BorderDash.Start(); } dashEnabled = !dashEnabled; }
public override string ToString() { return ($@" label: ""{Label}"", //name lineTension: {LineTension}, //int fill: {Fill}, //bool borderColor: '{BorderColor}', //color name or rgba(0 - 255,0,0,0) backgroundColor: '{BackgroundColor}', //color name or rgba(0 - 255,0,0,0) borderDash: [{string.Concat(BorderDash.Select(l => l + ","))}], pointBorderColor: '{BointBorderColor}', //color name or rgba(0 - 255,0,0,0) pointBackgroundColor: '{PointBackgroundColor}', //color name or rgba(0 - 255,0,0,0) pointRadius: {PointRadius}, //int pointHoverRadius: {PointHoverRadius}, //int pointHitRadius: {PointHitRadius}, //int pointBorderWidth: {PointBorderWidth}, //int pointStyle: '{PointStyle}' //style name "); }