private static void OnCreateContentChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { ThreadedVisualHost bvh = (ThreadedVisualHost)d; if (bvh.IsContentHidden) { bvh.HideContentHelper(); if (e.NewValue != null) { bvh.CreateContentHelper(); } } }
private static void OnIsContentHiddenChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { ThreadedVisualHost bvh = (ThreadedVisualHost)d; if (bvh.CreateContent != null) { if (!(bool)e.NewValue) { bvh.CreateContentHelper(); } else { bvh.HideContentHelper(); } } }