'FlarePlugin1.ButtonCommand' does not implement interface member 'System.Windows.Input.ICommand.CanExecuteChanged'
I googled the error but I haven't been able to find a solution. Has anyone else encountered this error? If so I would be really grateful if you could tell me how to implement the member because my event skills are pretty small.
I had the same problem when I was creating my first plugin. In my case, adding the following empty event handler to the ButtonCommand : ICommand class fixed the problem and allowed the dll to compile:
I installed the dll in the Plugins folder as instructed and started Flare. The plugin is enabled, but I don't see a new toolbar in the UI.
I called the CreateCustombar function from the Initialize function. I've attached the class file that I'm using. Could you please take a look and tell me what I'm doing wrong?
Thanks!
You do not have the required permissions to view the files attached to this post.
I had a quick look. Your toolbar menu displayed correctly. If you didn't see it, it could be because the toolbar was hidden (You can hide or show toolbars from the View > Toolbars menu in Flare).
I've made a couple of quick changes to also enable the ribbon. The code is below (note I did this pretty quickly, so there may well be some repetition/redundant code - however it does compile and function as expected).
Thank you. I haven't implemented the changes you so kindly did because I first want to locate the new toolbar.
I'm a relatively new Flare user and under the View ribbon I did not see an option to show toolbars. Can you tell me (1) where the option is and (2) where in your UI you see the toolbar that my code created?
From your terminology above, the issue might be that you are currently using the Flare ribbon UI, rather than the older toolbar UI. Your code only implemented a toolbar item, rather than a ribbon item, so you would need to change to the toolbar UI to see your new toolbar.
To do this, you click: File > Options, then select Tool Strip from the Interface tab.
"In an ideal world, software should be simple, well designed, and completely intuitive to end users. In the real world, good documentation is king."
I have had a look. Currently, there are no commands associated with the menu items, so when you click the menu items nothing happens.
Here is the code to rewire the menu items to use the same command as the button (obviously, for a real plugin you would probably want to create more than one command, but for testing purposes this will work fine).
Note: This is the code that was added: Command = new ButtonCommand()