public object CreatePageWidget(Sandwych.Layout.Models.Page page, object parentWidget, object childContent) { if (page == null) { throw new ArgumentNullException("page"); } if (childContent == null) { throw new ArgumentNullException("childContent"); } var tabItem = new PageControl(page.Label); tabItem.Content = childContent; var tabControl = (TabControl)parentWidget; tabControl.Items.Add(tabItem); return(tabItem); }
public object CreatePageWidget(Sandwych.Layout.Models.Page page, object parentWidget, object childContent) { throw new NotSupportedException(); }