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)
Private Sub ButtonClick()
My.Windows.Window1.TransitionBox.Content = My.Windows.Window1.ObjectA