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.
59 lines
1.6 KiB
59 lines
1.6 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Data;
|
|
using System.Windows.Documents;
|
|
using System.Windows.Input;
|
|
using System.Windows.Media;
|
|
using System.Windows.Media.Imaging;
|
|
using System.Windows.Navigation;
|
|
using System.Windows.Shapes;
|
|
|
|
namespace SunlightCentralizedControlManagement_SCCM_.View
|
|
{
|
|
/// <summary>
|
|
/// Whole.xaml 的交互逻辑
|
|
/// </summary>
|
|
public partial class Whole : UserControl
|
|
{
|
|
public Whole()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void UserControl_Loaded(object sender, RoutedEventArgs e)
|
|
{
|
|
TextBox textBox = new TextBox();
|
|
textBox.Text = "12431414";
|
|
// textBox.HorizontalAlignment = HorizontalAlignment.Left;
|
|
// textBox.VerticalAlignment = VerticalAlignment.Top;
|
|
textBox.Background =new SolidColorBrush( Color.FromRgb(100,100,100));
|
|
textBox.Width = 100;
|
|
textBox.Height = 200;
|
|
textBox.Margin = new Thickness( 5,5,0,0);
|
|
WholeView.Children.Add(textBox);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
View.info[] inf = new View.info[60];
|
|
for (int i=1; i<50; i++)
|
|
{
|
|
inf[i] = new View.info();
|
|
inf[i].Margin = new Thickness(5, 5, 0, 5);
|
|
inf[i].Width = 300;
|
|
inf[i].Height = 400;
|
|
inf[i].name.Text = i.ToString();
|
|
inf[i].temp.Text = "123c";
|
|
WholeView.Children.Add(inf[i]);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|