示例#1
0
        public IHtmlNode CreatePane(SplitterPane pane)
        {
            var paneElement = new HtmlElement("div")
                  .Attributes(pane.HtmlAttributes)
                  .PrependClass(UIPrimitives.Splitter.Pane)
                  .ToggleClass(UIPrimitives.Scrollable, pane.Scrollable);

            pane.Template.Apply(paneElement);

            return paneElement;
        }
示例#2
0
 public SplitterPaneBuilder(SplitterPane pane, ViewContext viewContext)
 {
     this.pane = pane;
     this.viewContext = viewContext;
 }