object GetYAxisContent() { markerContent.Visibility = !CheckPointRange(y1, YAxis) ? Visibility.Collapsed : Visibility.Visible; return(YAxis is NumericalAxis || YAxis is LogarithmicAxis?Convert.ToDecimal(Y1).ToString("0.##") : XAxis.GetLabelContent(y1)); }