1

例如,我无法从此代码中获得结果!请帮助我,tnx。:)

        GridViewColumn gvc6 = new GridViewColumn();
        gvc6.DisplayMemberBinding = new Binding("sum");

        FrameworkElementFactory txt = new FrameworkElementFactory(typeof(TextBox));
        txt.SetBinding(TextBox.TextProperty, new Binding()); // sets binding


        gvc6.CellTemplate = new DataTemplate(typeof(string));
        gvc6.CellTemplate.VisualTree = txt;
4

0 回答 0