Changing TransitionElement Content from a UserControl hosted in a Window


I'm trying to change the TransitionElement Content property directly via a button within a User control.
I can successfully change the content via buttons on the same window as the TransitionElement, but as soon as I try to change the content via an object not directly in the same windows as the TransitionElement, it just doesn't change the content. The Transition Begin and End events still fire, but the content doesnt change.
I have tried both directly calling the content change, and also via the dispatcher such as this:
Partial Public Class UserControl1
Public Delegate Sub ButtonClickDelegate()
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles Button1.Click
    My.Windows.Window1.Dispatcher.Invoke(New ButtonClickDelegate(AddressOf ButtonClick), Windows.Threading.DispatcherPriority.Normal)
End Sub
Private Sub ButtonClick()
    My.Windows.Window1.TransitionBox.Content = My.Windows.Window1.ObjectA
End Sub
End Class
Any hints?


CommandFusion wrote Jun 22, 2009 at 6:41 AM

Sorry accidentally posted this to the issue tracker, rather than the discussions. Please delete this!

wrote Feb 14, 2013 at 7:30 PM