public static void InitializeEventBindingProvider(object designerContext, PowerShellFileNode codeNode) {
     if (_designerContextType != null) {
         InitializeEventBindingProviderNoInline(designerContext, codeNode);
     }
 }
        private static void InitializeEventBindingProviderNoInline(object designerContext, PowerShellFileNode codeNode) {
            Debug.Assert(designerContext is DesignerContext);

	        var componentModel = (IComponentModel)Package.GetGlobalService(typeof(SComponentModel));
	        var x = componentModel.DefaultExportProvider.GetExports<Func<Func<IWpfTextView>, EventBindingProvider>>("WpfEventProviderFactory").FirstOrDefault();

	        ((DesignerContext) designerContext).EventBindingProvider = x.Value(codeNode.GetTextView);
        }
        public override CommonFileNode CreateCodeFileNode(ProjectElement item)
        {
            var node = new PowerShellFileNode(this, item);

            return(node);
        }