private void chk_FillHistory_Checked(object sender, RoutedEventArgs e) { try { pnlDropContent.Children.Clear(); CVaultFillHistory declaration = new CVaultFillHistory(); pnlDropContent.Children.Add(declaration); declaration.Margin = new Thickness(0); } catch (Exception Ex) { ExceptionManager.Publish(Ex); } }