예제 #1
0
        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);
        }
예제 #2
0
 public object CreatePageWidget(Sandwych.Layout.Models.Page page, object parentWidget, object childContent)
 {
     throw new NotSupportedException();
 }