Is it possible to set a WPF ListBoxItem's background to a hex color stored as a string inside an objects property?

前端 未结 0 568
南旧
南旧 2021-02-19 02:15

If I have a simple object like:

public class person
{
    string name;
    string color;

    public override string ToString()
    {
        return name;
    }
}         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题