Image alignment in HtmlContentProvider

SyntaxEditor for WPF Forum

Posted 10 years ago by Valéry Sablonnière - Staubli
Version: 14.1.0602


Is it possible to align vertically an image within a quickinfo tooltip ?

I tried to override the GetImage method of the HtmlContentProvider in order to return an Image with its vertical alignment set to center but my image is still at the top of the quickinfo...



Comments (1)

Answer - Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA

Sorry, you can't do with within HtmlContentProvider alone.  That being said, there is also a DirectContentProvider where you can basically supply whatever custom XAML you wish.  So you could achieve that sort of thing with that content provider and even use the output of another HtmlContentProvider to fill in the right side of the result via a ContentPresenter.

Actipro Software Support

The latest build of this product (v24.1.2) 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.