public void CopyStyle(UIElement element) { Top = element.Top; Left = element.Left; Width = element.Width; Height = element.Height; PaddingBottom = element.PaddingBottom; PaddingLeft = element.PaddingLeft; PaddingRight = element.PaddingRight; PaddingTop = element.PaddingTop; HAlign = element.HAlign; VAlign = element.VAlign; MinWidth = element.MinWidth; MaxWidth = element.MaxWidth; MinHeight = element.MinHeight; MaxHeight = element.MaxHeight; Recalculate(); }
public void CopyStyle(UIElement element) { this.Top = element.Top; this.Left = element.Left; this.Width = element.Width; this.Height = element.Height; this.PaddingBottom = element.PaddingBottom; this.PaddingLeft = element.PaddingLeft; this.PaddingRight = element.PaddingRight; this.PaddingTop = element.PaddingTop; this.HAlign = element.HAlign; this.VAlign = element.VAlign; this.MinWidth = element.MinWidth; this.MaxWidth = element.MaxWidth; this.MinHeight = element.MinHeight; this.MaxHeight = element.MaxHeight; this.Recalculate(); }