Inheritance: System.Windows.Controls.Control
Exemple #1
0
        private static void HtmlChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            HtmlBlock instance = (HtmlBlock)o;

            if (instance.internalItemsControl != null)
            {
                instance.AppendHtml(e.NewValue.ToString());
            }
        }
Exemple #2
0
        private static void NavigationCommandChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            HtmlBlock instance = (HtmlBlock)o;

            if (instance.textBoxes != null)
            {
                foreach (var textBlock in instance.textBoxes)
                {
                    foreach (var hyperlink in textBlock.GetChildInlines().OfType <Hyperlink>())
                    {
                        hyperlink.Command = instance.NavigationCommand;
                    }
                }
            }
        }