星火微课系统客户端
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

PromptWindow.xaml.cs 1.2KB

pirms 4 gadiem
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows;
  7. using System.Windows.Controls;
  8. using System.Windows.Data;
  9. using System.Windows.Documents;
  10. using System.Windows.Input;
  11. using System.Windows.Media;
  12. using System.Windows.Media.Imaging;
  13. using System.Windows.Shapes;
  14. namespace XHWK.WKTool
  15. {
  16. /// <summary>
  17. /// PromptWindow.xaml 的交互逻辑
  18. /// </summary>
  19. public partial class PromptWindow : Window
  20. {
  21. public PromptWindow()
  22. {
  23. InitializeComponent();
  24. }
  25. public void Initialize(string _name)
  26. {
  27. txbName.Text = _name;
  28. }
  29. private void Window_SizeChanged(object sender, SizeChangedEventArgs e)
  30. {
  31. System.Windows.Rect r = new System.Windows.Rect(e.NewSize);
  32. RectangleGeometry gm = new RectangleGeometry(r, 1, 1);
  33. ((UIElement)sender).Clip = gm;
  34. }
  35. private void Window_SizeChanged_1(object sender, SizeChangedEventArgs e)
  36. {
  37. }
  38. private void Window_SizeChanged1(object sender, SizeChangedEventArgs e)
  39. {
  40. }
  41. }
  42. }