Beispiel #1
0
        private static void BindableSyntaxHighlightingPropertyChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
        {
            PDETextEditor designer = obj as PDETextEditor;

            if (designer != null)
            {
                designer.SyntaxHighlighting = HighlightingManager.Instance.GetDefinition(args.NewValue as string);
            }
        }
Beispiel #2
0
        private static void BindableTextPropertyChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
        {
            PDETextEditor designer = obj as PDETextEditor;

            if (designer != null)
            {
                designer.Text = args.NewValue as string;
            }
        }