public TextStyleSet(TextStyleSet source) { Assert.IsNotNull(source); _normal = source.Normal; _disabled = source.Disabled; _highlighted = source.Highlighted; _active = source.Active; }
public TextStyleSet Merge(TextStyleSet other) { return(other == null ? this : new TextStyleSet( Normal.Merge(other.Normal), Disabled.Merge(other.Disabled), Highlighted.Merge(other.Highlighted), Active.Merge(other.Active))); }
protected bool Equals(TextStyleSet other) { return(Equals(_normal, other._normal) && Equals(_disabled, other._disabled) && Equals(_highlighted, other._highlighted) && Equals(_active, other._active)); }