public void Merge(ContainerStyle style) { if (style != null) { Margin = Margin.Merge(style.Margin); Padding = Padding.Merge(style.Padding); } }
public void Merge(ImageStyle style) { if (style != null) { Margin = Margin.Merge(style.Margin); if (HorizontalAlignment != style.HorizontalAlignment) { HorizontalAlignment = style.HorizontalAlignment; } } }