星火微课系统客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PromptWindow.xaml.cs 888B

4 years ago
123456789101112131415161718192021222324252627282930313233343536
  1. using System.Windows;
  2. using System.Windows.Media;
  3. namespace XHWK.WKTool
  4. {
  5. /// <summary>
  6. /// PromptWindow.xaml 的交互逻辑
  7. /// </summary>
  8. public partial class PromptWindow : Window
  9. {
  10. public PromptWindow()
  11. {
  12. InitializeComponent();
  13. }
  14. public void Initialize(string _name)
  15. {
  16. txbName.Text = _name;
  17. }
  18. private void Window_SizeChanged(object sender, SizeChangedEventArgs e)
  19. {
  20. System.Windows.Rect r = new System.Windows.Rect(e.NewSize);
  21. RectangleGeometry gm = new RectangleGeometry(r, 1, 1);
  22. ((UIElement)sender).Clip = gm;
  23. }
  24. private void Window_SizeChanged_1(object sender, SizeChangedEventArgs e)
  25. {
  26. }
  27. private void Window_SizeChanged1(object sender, SizeChangedEventArgs e)
  28. {
  29. }
  30. }
  31. }