private void CreateUI() { _Frame = new Skill.Editor.UI.EditorFrame("Frame", this); _Frame.Grid.RowDefinitions.Add(20, GridUnitType.Pixel); _Frame.Grid.RowDefinitions.Add(1, GridUnitType.Star); _EditPanel = new Grid() { Row = 0, RowSpan = 2 }; _EditPanel.ColumnDefinitions.Add(new ColumnDefinition() { Width = new GridLength(220, GridUnitType.Pixel), MinWidth = 160 }); // left Panel _EditPanel.ColumnDefinitions.Add(2, GridUnitType.Pixel); // VSpliter _EditPanel.ColumnDefinitions.Add(2, GridUnitType.Star); // right Panel _Frame.Controls.Add(_EditPanel); _VSplitter = new Skill.Editor.UI.GridSplitter() { Row = 1, Column = 1, Orientation = Orientation.Vertical }; _EditPanel.Controls.Add(_VSplitter); _Graph = new GraphEditor(this) { Row = 0, Column = 2 }; _EditPanel.Controls.Add(_Graph); _LeftPanel = new Grid() { Row = 0, Column = 0 }; _LeftPanel.RowDefinitions.Add(2, GridUnitType.Star); _LeftPanel.RowDefinitions.Add(2, GridUnitType.Pixel); _LeftPanel.RowDefinitions.Add(1, GridUnitType.Star); _EditPanel.Controls.Add(_LeftPanel); _Parameters = new ParameterEditor(this) { Row = 0, Column = 0 }; _LeftPanel.Controls.Add(_Parameters); _HSplitter = new Skill.Editor.UI.GridSplitter() { Row = 1, Column = 0, Orientation = Orientation.Horizontal }; _LeftPanel.Controls.Add(_HSplitter); _Profiles = new ProfileEditor(this) { Row = 2, Column = 0 }; _LeftPanel.Controls.Add(_Profiles); }
public ProfileItem(ProfileEditor editor, AnimationTreeProfileData data) { //this._Editor = editor; this.Data = data; this.Text = data.Name; }