private void ScriptDetails_Unloaded( object sender, RoutedEventArgs e ) { DataContext = null; CommentsSource = null; HSComment.ActiveInstance = null; }