private void BindControl() { // First create the Input control _currCtl = CreateInpuControl(); theGrid.Children.Add(_currCtl.Control); }
private void AddItem_Click(object sender, RoutedEventArgs e) { if (_currCtl.DataType == DataType.Complex) { (_currCtl.Control as ComplexDataInputControl).ShowComplextDataType(); return; } theGrid.Children.Remove(_currCtl.Control); AddControlToValueStack(_currCtl.Control); _currCtl = CreateInpuControl(); theGrid.Children.Add(_currCtl.Control); UpdateCountLabel(); OnValueChanged(); }
private void AddItem_Click(object sender, RoutedEventArgs e) { if( _currCtl.DataType == DataType.Complex ) { (_currCtl.Control as ComplexDataInputControl).ShowComplextDataType(); return; } theGrid.Children.Remove(_currCtl.Control); AddControlToValueStack(_currCtl.Control); _currCtl = CreateInpuControl(); theGrid.Children.Add(_currCtl.Control); UpdateCountLabel(); OnValueChanged(); }
private void BindControl() { // First create the Input control _currCtl = CreateInpuControl(); theGrid.Children.Add(_currCtl.Control); }