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

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. }