public TsPageHeader(BaseLayoutElement Parent, XElement SourceXml) : base(Parent) { this.ShowGridLines = Director.Instance.ShowGridLines; this.SetDefaults(); this.Init(SourceXml); }
//Constructors public TsTable(XElement SourceXml, BaseLayoutElement Parent) { Grid g = new Grid(); g.Name = "_tablegrid"; this.Init(SourceXml, Parent, g); }
//methods private void Init(XElement SourceXml, BaseLayoutElement Parent, Grid Grid) { this._parent = Parent; this.Grid = Grid; this.LoadXml(SourceXml); this.PopulateOptions(); this.Build(); }
//Constructors public TsPageHeader(BaseLayoutElement Parent, TsPageHeader Template, XElement SourceXml) : base(Parent) { this.Height = Template.Height; this.Title = Template.Title; this.Text = Template.Text; this.FontColor = Template.FontColor; this.BgColor = Template.BgColor; this.Image = Template.Image; this.TitleFontSize = Template.TitleFontSize; this.Margin = Template.Margin; this.Init(SourceXml); }
//constructor #region public TsRow(XElement SourceXml, int PageIndex, BaseLayoutElement Parent) : base(Parent) { this.Index = PageIndex; this._rowpanel = new Grid(); this._rowpanel.Name = "_rowpanel"; this._rowpanel.DataContext = this; this._rowpanel.SetBinding(Grid.IsEnabledProperty, new Binding("IsEnabled")); this._rowpanel.SetBinding(Grid.VisibilityProperty, new Binding("Visibility")); this._rowpanel.SetBinding(Grid.ShowGridLinesProperty, new Binding("ShowGridLines")); this._rowpanel.SetBinding(Grid.HeightProperty, new Binding("Height")); this._rowpanel.VerticalAlignment = VerticalAlignment.Top; this.LoadXml(SourceXml); }
//Constructors public TsPage(BaseLayoutElement Parent, XElement SourceXml, PageDefaults Defaults) : base(Parent) { //this._director = Defaults.RootController; LoggerFacade.Info("New page created"); this.Parent = Parent; this.ShowGridLines = Director.Instance.ShowGridLines; this.Page = new TsPageUI(this); this.PageHeader = Defaults.PageHeader; this.LeftPane = Defaults.LeftPane; this.RightPane = Defaults.RightPane; this.Page.Loaded += this.OnPageLoaded; this.GroupingStateChange += this.OnPageHide; this.Page.DataContext = this; this.Page.ButtonGrid.DataContext = Defaults.Buttons; this.Page.KeyDown += this.OnKeyDown; this.LoadXml(SourceXml); this.Update(); }
public BaseLayoutElement(BaseLayoutElement Parent) : base(Parent) { this.Parent = Parent; this.SetDefaults(); }