private OnChildChanged ( UIElement oldValue, UIElement newValue ) : void | ||
oldValue | UIElement | |
newValue | UIElement | |
return | void |
private void OnChildChanged(UIElement oldValue, UIElement newValue)
{
FrameworkElement oldChildElement = oldValue as FrameworkElement;
if (oldChildElement != null)
{
oldChildElement.DataContext = null;
}
this.AttachViewModel();
}