I have a content control in my application which is marked as a Prism region. When ever a module registres a view for this region, Prism sets the view as the content of the control.
That works fine, but now I would like to have an animation where the content is moved from top of the control into it, like the alerts in Internet Explorer. It is important that the animation is plain Xaml and no code behind because Prism does all the stuff in background and I don’t want to touch it.
Now there is my problem: I tryed to follow the tutorial from Microsoft but it does not work in my case because I would need to be able to trigger the animation when ever the content property of the element is not null while value trigger usually can only be triggered if the property has a specific value instead of having it not.
You can use the HasContent property of ContentControl – to see if it has content.