Esempio n. 1
0
 private static void OnContextActionsIconChanged(SimpleCodeTextEditor editor, CommonPropertyChangedArgs <ImageSource> args)
 {
     if (editor.contextActionsRenderer is not null)
     {
         editor.contextActionsRenderer.IconImage = args.NewValue;
     }
 }
Esempio n. 2
0
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            codeEditor = DependencyObjectExtensions.CheckTemplatePart <SimpleCodeTextEditor>(GetTemplateChild("PART_CodeEditor"));

            // Setup again the code editor with new parameters
            SetupCodeEditor();
        }