You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

StatusBarOfCircumstance.xaml.cs 1.1 kB

1234567891011121314151617181920212223242526272829303132333435363738
  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 Client
  15. {
  16. /// <summary>
  17. /// StatusBarOfCircumstance.xaml 的交互逻辑
  18. /// </summary>
  19. public partial class StatusBarOfCircumstance : UserControl
  20. {
  21. public StatusBarOfCircumstance(Grid parent, int Row, int Column)
  22. {
  23. InitializeComponent();
  24. parent.Children.Add(this);
  25. Grid.SetColumn(this, Column);
  26. Grid.SetColumnSpan(this, 2);
  27. Grid.SetRow(this, Row);
  28. Grid.SetRowSpan(this, 2);
  29. initialized = false;
  30. }
  31. public void SetFontSize(double fontsize)
  32. {
  33. serial.FontSize = scores.FontSize = star.FontSize = status.FontSize = prop.FontSize = fontsize;
  34. }
  35. private bool initialized;
  36. }
  37. }