ScreenTip Opening / Closing Events

Ribbon for WPF Forum

Posted 9 years ago by Andy Ver Murlen
Version: 10.2.0531
Avatar
Are there no opening / closing events for the ScreenTip like there are for the standard WPF ToolTip? I have a TreeView with several thousand items in it, and I need to place item "details" in the ToolTip for each one. Because generating these details is fairly expensive, I only want to generate them when the ToolTip is actually called for.

With the standard WPF ToolTip, it's a piece of cake, attach to the "opening" event and set the text at that time. Can't seem to do the same with the Actipro ScreenTip service, which stinks, becauise I have used it throughout my app, and would like to use it here for consistency.

Any suggestions?

Comments (3)

Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Andy,

There are ScreenTipService.ScreenTipOpeningEvent and related Closing events. They are attached events.


Actipro Software Support

Posted 9 years ago by Andy Ver Murlen
Avatar
It appears that is correct...inside of ribbon controls only. For example, this works...

<ribbon:Button
    Margin="6"
    Label="My Button"
    ImageSourceSmall="{StaticResource Image_Node_Delete}"
    ScreenTipDescription="This is my button!"
    ScreenTipOpening="DoSomething"
    />
However the event won't show up in intellisense, and my project won't compile (complains that the attachable property screentipopening can't be found) with this....

<StackPanel
    Margin="6"    
    ribbon:ScreenTipService.ScreenTipDescription="This is my stack panel!"
    ribbon:ScreenTipService.ScreenTipOpening="DoSomething"
    />
Unfortunately, in my situation, I need to use the screentipservice in a non Actipro control.

[Modified at 10/21/2010 08:19 AM]
Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Andy,

It looks like we didn't have the public static Add/Remove helper methods on ScreenTipService that are needed to support attaching to the event in XAML. We've added them for the next build but you'll have to attach programmatically via UIElement.AddHandler for now.


Actipro Software Support

The latest build of this product (v2019.1 build 0683) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.