DocumentaryTranslationDialog.xaml.cs 768 B

1234567891011121314151617181920212223
  1. using Prism.Ioc;
  2. using Prism.Regions;
  3. using System.Windows.Controls;
  4. namespace PDF_Master.Views.Dialog.ChatGPTAIDialogs
  5. {
  6. /// <summary>
  7. /// Interaction logic for DocumentaryTranslationContent
  8. /// </summary>
  9. public partial class DocumentaryTranslationDialog : UserControl
  10. {
  11. private IContainerProvider containerProvider;
  12. public DocumentaryTranslationDialog(IContainerProvider containerProvider)
  13. {
  14. InitializeComponent();
  15. this.containerProvider = containerProvider;
  16. var regionManager = containerProvider.Resolve<IRegionManager>();
  17. RegionManager.SetRegionManager(this, regionManager);
  18. RegionManager.UpdateRegions();
  19. }
  20. }
  21. }