Selfless.
When you add to the list
, you can set the properties to ListBoxItem
.
Dimbi As New ListBoxItem
lbi.Content=fileName
lbi.Foreground=Brushes.Red
ListBox1.Items.Add(lbi)
I hope it will be helpful for someone.
Thank you.
© 2024 OneMinuteCode. All rights reserved.