BackgroundTemplateListFileContent.xaml.cs 769 B

123456789101112131415161718192021222324
  1. using PDF_Office.ViewModels.EditTools.Background;
  2. using System.Windows.Controls;
  3. namespace PDF_Office.Views.EditTools.Background
  4. {
  5. /// <summary>
  6. /// Interaction logic for BackgroundTemplateListFileContent
  7. /// </summary>
  8. public partial class BackgroundTemplateListFileContent : UserControl
  9. {
  10. private BackgroundTemplateListFileContentViewModel viewModel;
  11. public BackgroundTemplateListFileContent()
  12. {
  13. InitializeComponent();
  14. viewModel = this.DataContext as BackgroundTemplateListFileContentViewModel;
  15. }
  16. private void DeleteTemplateBtn_Click(object sender, System.Windows.RoutedEventArgs e)
  17. {
  18. viewModel.DeleteTemplateItemCommand?.Execute(sender);
  19. }
  20. }
  21. }