示例#1
0
        public StyleEditor()
        {
            list.Name                   = "listEditor1";
            list.DataSource             = GuiEnvironment.Theme;
            list.ReadOnly               = false;
            list.List.SelectionChanged += ListItemSelect;

            details.EditMode = EditModes.ByClick;

            var smap = new GroupBoxItem(map)
            {
                Row = 1
            };

            smap.Add(new GroupBoxItem()
            {
                Widget = details, Text = "Detail", FillWidth = true, Width = 230, Height = 60
            });
            smap.Add(new GroupBoxItem()
            {
                Widget = preview, Text = "Preview", FillWidth = true, Width = 230, Height = 60
            });

            map.Add(new GroupBoxItem()
            {
                Widget = list, Text = "Slyles", FillHeight = true, FillWidth = true
            });
            map.Add(smap);

            Name = "StyleEditor";
            Text = "Style Editor";
            PackStart(map, true, true);

            Localize();
        }