xera
Expert Member
From what I know, I think I should add text to a TextBlock, set part of the text as bold, then set it to the ListViewItem. Problem is, I'm doing this in code and not xaml, and am not sure how to do it.
My ListView is bound to an ObservableCollection.
My ObservableCollection class:
MyText will be the text to display in the column..
idx1Start and idx1Stop will be the start and stop respectively of the 1st bold substring in MyText.
idx2Start and idx2Stop will be the start and stop respectively of the 2nd bold substring in MyText.
Any ideas?
My ListView is bound to an ObservableCollection.
My ObservableCollection class:
Code:
public string MyText { get; set; }
public int idx1Start { get; set; }
public int idx1Stop { get; set; }
public int idx2Start { get; set; }
public int idx2Stop { get; set; }
MyText will be the text to display in the column..
idx1Start and idx1Stop will be the start and stop respectively of the 1st bold substring in MyText.
idx2Start and idx2Stop will be the start and stop respectively of the 2nd bold substring in MyText.
Any ideas?
Last edited: