Custom UI via plugins?

Fri 17. Mar 2017, 21:47

While reading the MacroPlugin API docs, I saw this in MacroPLugin.Initialize: "If your plugin uses own WPF resource dictionaries you need to register them within this method using RegisterResource(String)"

I have limited experience with WPF. Does this mean I can add custom UI to Articy? If not, what is the usecase for adding in your own WPF resource dictionaries?
doday
 
Posts: 29
Joined: Wed 15. Mar 2017, 23:06

Re: Custom UI via plugins?

Sat 18. Mar 2017, 01:59

Yes you can add custom UI! This is mostly useful for settings, custom views etc. The only limitation is that the plugin ui can only be in their own window.
In the coming weeks we will release a plugin that will show you how you can utilize WPF for creating a settings dialog for your plugin.

Best regards

Nico
Nico Probst
Senior Software Engineer | Articy | LinkedIn
User avatar
[Articy] Nico Probst
Articy Staff
Articy Staff
 
Posts: 217
Joined: Wed 23. Nov 2011, 09:45
Location: Bochum

Re: Custom UI via plugins?

Tue 21. Mar 2017, 00:11

That sounds great. I look forward to the plugin.
doday
 
Posts: 29
Joined: Wed 15. Mar 2017, 23:06

Re: Custom UI via plugins?

Mon 17. Apr 2017, 19:14

[Nevigo] Nico Probst wrote:Yes you can add custom UI! This is mostly useful for settings, custom views etc. The only limitation is that the plugin ui can only be in their own window.
In the coming weeks we will release a plugin that will show you how you can utilize WPF for creating a settings dialog for your plugin.

Best regards

Nico


Hi, new here. I'm quite competent at WPF and having recently learned of Articy, I'd love to know more about this feature. This reply was back in March - has there been any updates or info on these custom UI windows?
RisingSun
 
Posts: 38
Joined: Mon 17. Apr 2017, 19:12

Re: Custom UI via plugins?

Tue 18. Apr 2017, 09:37

Hi,

This reply was back in March - has there been any updates or info on these custom UI windows?


No official updates, sorry for that :oops:. But the plugin turned out to be bigger than expected, thus the delay. But hopefully we can release the plugin soon.

The tutorial for the WPF integration still has to wait a bit, because i have a lot of other things to do before that.

But i can give you some information to get you started:

  • Follow the instructions here to create a new plugin for articy:draft.
  • In Visual Studio you can add a UserControl (WPF) that will automatically take care of adding the necessary assembly references. (For some reason you can't add windows at this point, at least in my VS version)
  • In both UserControl files (xaml and cs) change the UserControl type to Window. Effectively turning it into a window.
  • Now just create a plugin menu button(using MacroCommandDescriptor) to open the window, using ShowDialog() for example.
  • (Optional) You could pass in the ApiSession instance from the plugin to the window, to get access to plugin methods inside event handles for buttons for example.
  • (Styling) You can even use our custom styles for controls, but you need to know the name of the styles, luckily this is mostly <ControlName>Style. For example TextBoxStyle, ButtonStyle etc.

Hope that gives you a rough idea how to get this to work.

Best regards

Nico
Nico Probst
Senior Software Engineer | Articy | LinkedIn
User avatar
[Articy] Nico Probst
Articy Staff
Articy Staff
 
Posts: 217
Joined: Wed 23. Nov 2011, 09:45
Location: Bochum

Re: Custom UI via plugins?

Tue 18. Apr 2017, 10:29

Awesome - thanks a bunch! :D
RisingSun
 
Posts: 38
Joined: Mon 17. Apr 2017, 19:12

Re: Custom UI via plugins?

Wed 9. Aug 2017, 10:14

I can't wait for the plugin you guys are talking about, would be just great.
You can go hard or you can go home!
That's my life moto.
Rollercoaster
 
Posts: 1
Joined: Wed 9. Aug 2017, 10:03

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 21 guests

Who We Are
Contact Us
Social Links