星火微课系统客户端
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 739B

4 years ago
11 months ago
4 years ago
11 months ago
4 years ago
11 months ago
4 years ago
11 months ago
4 years ago
11 months ago
4 years ago
11 months ago
4 years ago
11 months ago
1234567891011121314151617181920212223242526272829303132
  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
  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(
  22. r,
  23. 1,
  24. 1
  25. );
  26. ((UIElement)sender).Clip = gm;
  27. }
  28. }
  29. }