TransitionPresenter and attached properties

WPF Studio, Themes, and Shared Library for WPF Forum

Posted 5 years ago by Ralph
Version: 18.1.0675
Avatar

It seems TransitionPresenter doesn't pass attached properties through to the displayed slides.  For example if I set ToolTipService.InitialShowDelay="2000" on the TransitionPresenter, it has no effect on the controls displayed within.  Is there any way round it?  Is it a bug (which can be fixed) or a feature (there is no easy way)?

Comments (2)

Posted 5 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Ralph,

That attached property isn't an inherited property.  Thus doing the same on a ContentPresenter won't work:

<ContentPresenter ToolTipService.InitialShowDelay="5000">
	<ContentPresenter.ContentTemplate>
		<DataTemplate>
			<Button ToolTip="This is a test">ContentPresenter</Button>
		</DataTemplate>
	</ContentPresenter.ContentTemplate>
</ContentPresenter>


Actipro Software Support

Posted 5 years ago by Ralph
Avatar

Oh yes, you are right, some attached properties are not inherited.

Lesson learnt - always check, never assume :)

The latest build of this product (v24.1.1) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.