private void OnFormatMappingChanged(object sender, FormatItemsEventArgs e) { if (e.ChangedItems.Contains(GuidelineColorDefinition.Name)) { _brush = GetGuidelineBrushFromFontsAndColors(); BrushChanged?.Invoke(this, _brush); } }
/// <summary> /// Rasises the BrushChanged event /// </summary> /// <param name="brush"></param> protected virtual void OnBrushChanged(Brush brush) { BrushChanged?.Invoke(this, brush); }