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; }
public override void OnApplyTemplate() { base.OnApplyTemplate(); _dataGrid = VisualTreeProvider.FindFirstChild <DataGrid>(this, "Part_DataGrid"); InitSource(); }