Hi and I'm working on a WPF fork of NppCSharpPluginPack
-
Hi! I’ve been loving Notepad++ for years, as expected ;-). I’m a WPF developer by day, so I was wanting to make a plugin with it (to evaluate Common Lisp code from files - so maybe you can push me to alternatives that might do that). But before going straight in, I’ve started trying to migrate Mark Olson’s cool NppCSharpPluginPack (thanks Mark for it!) to WPF to get a feel for if it was feasible. I see WPF isn’t mentioned much in the forum,
I’ve just been messing around, but I’ve got a few of the UI’s migrated, but I’m fighting to get keyboard input into TextBoxes when in a docked UI. I can paste in text, and KeyDown events fire, but no text gets inserted.
So this post is to see what you knowledgeable people think about the idea, alternatives, and if anyone else is interested in bashing heads with me on WPF in a plugin.
I’ll fork Mark’s repo and replay my changes (I should have started that way…) in the next week or so - but if that’s too long, let me know. Will post the repo in a reply here when done.
Thanks!
Jonathan Johansen
www.carelinks.net -
Hi, I’m the maintainer of NppCSharpPluginPack. Glad to hear you’re interested in creating a new variant with WPF, and I hope you’re able to make something you’re happy with.
I don’t know anything about WPF, but I do know that forms (especially docking forms) in a Notepad++ plugin have to do a bunch of annoying fiddly things to ensure that they work correctly. I recommend reading carefully through NppFormHelper.cs and FormBase.cs, because they contain a few methods that you need to create WPF versions of to ensure your forms work correctly.
More specifically, I’m guessing that your keyboard input problem is due to not registering your form with
NPPM_MODELESSDIALOG
.