Ejemplo n.º 1
0
 private static void OnContextActionsIconChanged(SimpleCodeTextEditor editor, CommonPropertyChangedArgs <ImageSource> args)
 {
     if (editor.contextActionsRenderer != null)
     {
         editor.contextActionsRenderer.IconImage = args.NewValue;
     }
 }
Ejemplo 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();
        }