Summary
This section is a full example showing how to create a simple plugin for Ecrion.Silverlight using the Ecrion Silverlight API.
Name
Ecrion.Silverlight.Sample.Plugin
Purpose
| • | This plugin shows a tooltip when the left mouse button is pressed on a chart element from a document. |
| • | If the document has a table, then all the text from each cell is displayed in italic. |
Classes
| • | Util |
Creating the Project
We start by creating a new Silverlight Class Library named Ecrion.Silverlight.Sample.Plugin.
Visual Studio creates a new solution with the same name in your folder of choice. We add a reference to Ecrion.Silverlight.
We need at least one class to implement the mandatory interface IAddin and we name it Addin.
Because we want to have mouse events implementation we have to implement interface IActionHandler , so we create ActionHandler class which implement IActionHandler.
We need also to customize visual object so we create Factory which implement IVisualObjectFactory.