Пример #1
0
        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;
        }
Пример #2
0
 public DragNDropState(NotebookTabList parent)
 {
     this.parent = parent;
 }