mikeoliphant/AudioPlugSharp

Using Other Controls

Closed this issue · 8 comments

Mike,

I really need to able to manipulate the EditorView to add and process other controls, such as graphic windows, buttons, dropdowns, textbox, etc.

I finally was able to do that. I had to add about a dozen lines across 5 files to make the grid and the parameterdisplay accessible to the plugin. Finally implemented that and added a textblock and button example to
the WPF file. Also, added a button handler to the button. The button handler accesses the content property of the button, showing that you can use the "value" of any control you have placed in the grid within the Process method.

Would you like the files? would be a pretty powerful feature to add to your wrapper class.

Bruce Krell

Hi Bruce - this seems more about WPF and outside of my desired scope for AudioPlugSharp.

Bruce, there is nothing preventing you from creating as complex a WPF interface as you like without requiring any changes to the underlying AudioPlugSharp library. I do this myself in my own plugins. Here is an example:

https://1.bp.blogspot.com/-098dD8u_TYc/X6G6QPj6tFI/AAAAAAAAJtc/l7Y4fxZ0gMYbQeGM9fPy3i-GeD5i9-lmwCLcBGAsYHQ/s1047/GuitarSim.png

You simply provide your own WPF control for the editor by overriding GetEditorView. This control could inherit from EditorView, but does not have to.

I have spent a lot of time over the past moth responding to your various questions, and my patience is running thin.