UserDialog.xaml.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using Prism.Ioc;
  2. using Prism.Regions;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using System.Windows;
  9. using System.Windows.Controls;
  10. using System.Windows.Data;
  11. using System.Windows.Documents;
  12. using System.Windows.Input;
  13. using System.Windows.Media;
  14. using System.Windows.Media.Imaging;
  15. using System.Windows.Navigation;
  16. using System.Windows.Shapes;
  17. namespace PDF_Master.Views.Dialog.ServiceDialog
  18. {
  19. /// <summary>
  20. /// RegisterDialog.xaml 的交互逻辑
  21. /// </summary>
  22. public partial class UserDialog : UserControl
  23. {
  24. private IContainerProvider containerProvider;
  25. public UserDialog(IContainerProvider containerProvider)
  26. {
  27. InitializeComponent();
  28. this.containerProvider = containerProvider;
  29. var regionManager = containerProvider.Resolve<IRegionManager>();
  30. RegionManager.SetRegionManager(this, regionManager);
  31. RegionManager.UpdateRegions();
  32. }
  33. //更多按钮
  34. private void BtnMore_Click(object sender, RoutedEventArgs e)
  35. {
  36. MenuMore.PlacementTarget = BtnMore;
  37. MenuMore.Placement = System.Windows.Controls.Primitives.PlacementMode.Bottom;
  38. MenuMore.IsOpen = true;
  39. }
  40. }
  41. }