dynamic datatemplate with valueconverter

后端 未结 3 1590
逝去的感伤
逝去的感伤 2021-01-24 05:35

I want to show data in a wpftoolkit datagrid where the data is a collection of

public class Thing
{
    public string Foo { get; set; }
    public string Bar { g         


        
3条回答
  •  清歌不尽
    2021-01-24 06:11

    For whatever reason, it works as expected if I do like this...

        string assName = Assembly.GetExecutingAssembly().GetName().Name;
        StringBuilder sb = new StringBuilder();
        sb.Append("");
        sb.Append("");
        sb.Append("");
        sb.Append("");
        sb.Append("");
        sb.Append("");
        var template = (DataTemplate)XamlReader.Parse(sb.ToString());
    

提交回复
热议问题