public void InvalidateBinding() { BindingExpression be = GetBindingExpression(TextProperty); TextMediaBinding bind = be.ParentBinding as TextMediaBinding; bind.RemoveDataModelListener(); }
public void InvalidateBinding() { BindingExpression be = GetBindingExpression(TextProperty); TextMediaBinding bind = be.ParentBinding as TextMediaBinding; bind.RemoveDataModelListener(); //Loaded -= new RoutedEventHandler(thisLoaded); CRASHES because of Thread ownership }