首页 > 解决方案 > GTK sharp Convert treeView to xml?

问题描述

This is my code :

    private TreeViewColumn _column;
    private TreeStore _cells;
    private string _filePath = "";

    public MainWindow() : base(WindowType.Toplevel)
    {
        Build();
        _column = new TreeViewColumn {Title = "List"};
        ComponentstreeView.AppendColumn(_column);
        _cells = new TreeStore(typeof(string), typeof(AComponent));
        ComponentstreeView.Model = _cells;
        _cells.AppendValues("Level", null);
        CellRendererText entityCell = new CellRendererText();
        _column.PackStart(entityCell, true);
        _column.AddAttribute(entityCell, "text", 0);
    }

There is a way to convert Treeview to xml or somthing else ? I search on google but I did not find anything.

标签: c#xmlserializationgtk#

解决方案


推荐阅读