public Notebook(IUIStyle style) : base(style) { notebookStyle = StyleSystem.StylesFor <NotebookStyleDefinition>(); Tabs = new NotebookTabList(UIStyle); Tabs.ActiveTabChanged += (s, e) => { panel.Content = Tabs.ActiveTab?.Content; }; Tabs.AddNotify(this); RaiseChildAdded(0, Tabs); panel = new ScrollPanel(UIStyle); panel.AddNotify(this); RaiseChildAdded(1, panel); KeyPressed += OnKeyPressed; }
public DragNDropState(NotebookTabList parent) { this.parent = parent; }