//public void SetPaddingHorizontal(double paddingHorizontal) //{ // this.Padding = new System.Windows.Thickness(paddingHorizontal, this.Padding.Top, paddingHorizontal, this.Padding.Bottom); //} //public void SetPaddingVertical(double paddingVertical) //{ // this.Padding = new Thickness(this.Padding.Left, paddingVertical, this.Padding.Right, paddingVertical); //} //public double GetPaddingHorizontal() //{ // return this.Padding.Left; //} public void IncreaseColSpan(IGnosisInnerLayoutControlImplementation gnosisControlImplementation, int numCols) { UIElement control = gnosisControlImplementation as UIElement; int currentColSpan = Grid.GetColumnSpan(control); Grid.SetColumnSpan(control, currentColSpan + numCols); }
public GnosisInnerLayoutController( IGnosisInnerLayoutControlImplementation gnosisLayoutControl, GnosisInstanceController instanceController, GnosisOuterLayoutController parent) : base(gnosisLayoutControl, instanceController, parent) { }
public void AddGnosisLayoutControlImplementation(IGnosisInnerLayoutControlImplementation layoutControlImplementation, int column, int row, int colSpan, int rowSpan) { Control control = (Control)layoutControlImplementation; Grid.SetColumn(control, column); Grid.SetColumnSpan(control, colSpan); Grid.SetRow(control, row); Grid.SetRowSpan(control, rowSpan); contentGrid.Children.Add(control); //if (layoutControlImplementation is IGnosisGridImplementation) //{ // this.Children.Add((GnosisGridWPF)layoutControlImplementation); //} }