I found the custom action to be kind of promising to add functionality to the report. But to make this really useful, we need the complete picture:
First, I added a textbox to the report and added a Custom Action to it.
Then I subscribed to the Enter, Leave and Executing events and added some code to handle them.
What I want to achieve:
a) Highlight the "button" simulated with the textbox when the user enters / hovers over it
b) Un-highlight when the user leaves
c) Execute something when the user clicks (this seems to be simple enough).
The highlighting doesn't really work. Let me show you my event handler:
public void CustomAction_Enter(object sender, InteractiveActionEventArgs args)
var b = (Border)args.Element;
b.BorderBrush = Brushes.DarkGray;
b.Background = Brushes.Purple;
This does something - it colors a part of the textbox purple. But it doesn't fill the entire textbox and also it overlays the text. When I investigate the Border, I see that is has no children. This is not properly working at all and I don't understand the purpose of the Border when it seems to have nothing to do with what we see in the report.
The expected behaviour is a border that matches / is the border of the text and a child in it that is the text as a textblock control.
How is this meant to be used?