You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Aucma.Scada/Aucma.Scada.UI/RecordControl.xaml.cs

22 lines
494 B
C#

using Aucma.Scada.UI.viewModel;
using System.Windows.Controls;
namespace Aucma.Scada.UI
{
/// <summary>
/// RecordControl.xaml 的交互逻辑
/// </summary>
public partial class RecordControl : UserControl
{
public RecordControl()
{
InitializeComponent();
RecordViewModel viewModel = new RecordViewModel();
viewModel.Query();
//上下文绑定
this.DataContext = viewModel;
}
}
}