WPF Popup : open with animation
Popup will animate if you have set AllowsTransparency true. like -
AllowsTransparency="True".
From MSDN
A Popup can only animate when the
AllowsTransparency
property is set totrue
. This requires the application that creates the Popup control to run with full trust. If thePlacementTarget
is animated, the Popup will not be animated.
XAML should look like
<DockPanel Width="500" Background="Aqua">
<Popup Placement="Center" PlacementRectangle="0,0,30,50"
IsOpen ="True" AllowsTransparency="True"
PopupAnimation="Fade">
<TextBlock Background="Purple">Popup Text</TextBlock>
</Popup>
</DockPanel>
And you can read more here.