protected override void DrawText(int index, DrawingContext drawingContext, Brush brush) { if (ActualWidth - sStyle.ScrollbarWidth < 0) { return; } FormattedText formatText; if (playListController.IsPlaying(index)) { formatText = FormatText("> " + (index + 1) + ". " + controller.GetText(index), ref brush); formatText.SetFontWeight(FontWeights.Bold); } else { formatText = FormatText((index + 1) + ". " + controller.GetText(index), ref brush); } drawingContext.DrawText(formatText, new Point(3, (index - LowIndex) * sStyle.RowHeight + 3)); }