public override UIComponentBase Load(UILayoutTemplate template) { switch (template) { case UILayoutTemplate.Main: return(new MinimalLayout()); } throw new NotImplementedException(); }
public UIComponentBase Load(UILayoutTemplate template) { var provider = this.Provider; if (provider == null) { return(null); } return(provider.Load(template)); }
public override UIComponentBase Load(UILayoutTemplate template) { switch (template) { case UILayoutTemplate.Main: var root = new UIComponentRoot(); root.SetBinding( UIComponentPanel.ComponentProperty, new Binding() { Source = this, Path = new PropertyPath("MainComponent") } ); return(root); } throw new NotImplementedException(); }
public abstract UIComponentBase Load(UILayoutTemplate template);