示例#1
0
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();
            InitType();
            Button button = VisualTreeProvider.FindFirstChild <Button>(this, "Btn_Query");

            button.Click += Button_Click;
        }
 public override void OnApplyTemplate()
 {
     base.OnApplyTemplate();
     _txtRfid          = VisualTreeProvider.FindFirstChild <TextBlock>(this, "Txt_Rfid");
     _txtQrCode        = VisualTreeProvider.FindFirstChild <TextBox>(this, "Txt_QrCode");
     _dataGrid         = VisualTreeProvider.FindFirstChild <DataGrid>(this, "Part_DataGrid");
     _txtQrCode.KeyUp += TxtQrCode_KeyUp;
     UserContext.RfidReadProvider.OnDataReceived += RfidReadProvider_OnDataReceived;
 }
示例#3
0
 public override void OnApplyTemplate()
 {
     base.OnApplyTemplate();
     _dataGrid = VisualTreeProvider.FindFirstChild <DataGrid>(this, "Part_DataGrid");
     InitSource();
 }