// Enable TextEffectTargets and apply effect to TextBlock. private void EnableTextEffects(TextBlock tb, TextEffect effect) { _textEffectTargets = TextEffectResolver.Resolve(tb.ContentStart, tb.ContentEnd, effect); foreach (TextEffectTarget target in _textEffectTargets) { target.Enable(); } }
private void EnableTextEffects(FlowDocument fd, TextEffect effect) { _textEffectTargets = TextEffectResolver.Resolve(fd.ContentStart, fd.ContentEnd, effect); foreach (var target in _textEffectTargets) { target.Enable(); } }