public FontInfo(FontFamily fam, double sz, FontStyle style, FontStretch strc, FontWeight weight, SolidColorBrush c, SolidColorBrush background) { this.Family = fam; this.Size = sz; this.Style = style; this.Stretch = strc; this.Weight = weight; this.BrushColor = c; this.Background = AvailableColors.GetFontColor(background); }
public bool Equals(FontColor p) { if (p == null) { return(false); } if (this.Name != p.Name) { return(false); } return(this.Brush.Equals(p.Brush)); }
public override bool Equals(object obj) { if (obj == null) { return(false); } FontColor p = obj as FontColor; if (p == null) { return(false); } if (this.Name != p.Name) { return(false); } return(this.Brush.Equals(p.Brush)); }
public ColorPickerViewModel() { this.selectedFontColor = AvailableColors.GetFontColor(Colors.Black); this.roFontColors = new ReadOnlyCollection <FontColor>(new AvailableColors()); }