public static void HighlightableBackgroundChanged(DependencyObject inDO, DependencyPropertyChangedEventArgs inArgs) { HiglightableTextBlock stb = inDO as HiglightableTextBlock; // Raise the event by using the () operator. if (stb.OnHighlightBackgroundChanged != null) { stb.OnHighlightBackgroundChanged(stb, null); } }
public static void SearchWordsPropertyChanged(DependencyObject inDO, DependencyPropertyChangedEventArgs inArgs) { HiglightableTextBlock stb = inDO as HiglightableTextBlock; if (stb == null) { return; } stb.UpdateRegex(); }