Пример #1
0
        private static void foregroundOverrideChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            var bc = new BrushConverter();
            HyperLinkStandard input = (HyperLinkStandard)d;

            input.txtLink.Foreground = (Brush)bc.ConvertFrom(e.NewValue as string);
            input.Foreground         = (Brush)bc.ConvertFrom(e.NewValue as string);
        }
Пример #2
0
        private static void displayTextChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            HyperLinkStandard input = (HyperLinkStandard)d;

            input.txtLink.Text = e.NewValue as string;
        }