public void Add(Widget w, string label) { NotebookTab t = new NotebookTab((EventSink)WidgetEventSink, w); t.Label = label; tabs.Add(t); }
public void Add(Widget w, string label) { NotebookTab t = new NotebookTab((WidgetBackendHost)BackendHost, w); t.Label = label; tabs.Add(t); }
void OnReplaceChild(NotebookTab tab, Widget oldWidget, Widget newWidget) { if (oldWidget != null) { OnRemove(oldWidget); } OnAdd(tab); }
void OnAdd(NotebookTab tab) { RegisterChild(tab.Child); Backend.Add((IWidgetBackend)GetBackend(tab.Child), tab); OnPreferredSizeChanged(); tab.Closing += (NotebookTab obj) => { Tabs.Remove(obj); }; }
void OnAdd(NotebookTab tab) { RegisterChild(tab.Child); Backend.Add((IWidgetBackend)GetBackend(tab.Child), tab); OnPreferredSizeChanged(); }
void OnAdd(NotebookTab tab) { RegisterChild(tab.Child); Backend.Add((IWidgetBackend)GetBackend(tab.Child), tab); }