コード例 #1
0
        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);
            }
        }
コード例 #2
0
        public static void SearchWordsPropertyChanged(DependencyObject inDO, DependencyPropertyChangedEventArgs inArgs)
        {
            HiglightableTextBlock stb = inDO as HiglightableTextBlock;

            if (stb == null)
            {
                return;
            }

            stb.UpdateRegex();
        }