예제 #1
0
        public void Add(Widget w, string label)
        {
            NotebookTab t = new NotebookTab((EventSink)WidgetEventSink, w);

            t.Label = label;
            tabs.Add(t);
        }
예제 #2
0
        public void Add(Widget w, string label)
        {
            NotebookTab t = new NotebookTab((WidgetBackendHost)BackendHost, w);

            t.Label = label;
            tabs.Add(t);
        }
예제 #3
0
 void OnReplaceChild(NotebookTab tab, Widget oldWidget, Widget newWidget)
 {
     if (oldWidget != null)
     {
         OnRemove(oldWidget);
     }
     OnAdd(tab);
 }
예제 #4
0
        void OnAdd(NotebookTab tab)
        {
            RegisterChild(tab.Child);
            Backend.Add((IWidgetBackend)GetBackend(tab.Child), tab);
            OnPreferredSizeChanged();

            tab.Closing += (NotebookTab obj) =>
            {
                Tabs.Remove(obj);
            };
        }
예제 #5
0
 void OnAdd(NotebookTab tab)
 {
     RegisterChild(tab.Child);
     Backend.Add((IWidgetBackend)GetBackend(tab.Child), tab);
     OnPreferredSizeChanged();
 }
예제 #6
0
 void OnAdd(NotebookTab tab)
 {
     RegisterChild(tab.Child);
     Backend.Add((IWidgetBackend)GetBackend(tab.Child), tab);
 }