| | |
| | | return elementCollection.Count > 0 ? GetValidateValue(elementCollection[0]) : null; |
| | | if (content is TextBox tb) return tb.Text; |
| | | if (content is CheckBox cb) return cb.IsChecked; |
| | | if (content is ComboBox cBox) return cBox.SelectedValue; |
| | | if (content is ComboBox cBox) return cBox.SelectedItem ?? cBox.SelectedValue ?? cBox.Text; |
| | | |
| | | if (content is Panel panel) return GetValidateValue(panel.Children); |
| | | if (content is NumberInput numberInput) return numberInput.Value; |
| | | if (content is Panuon.WPF.UI.NumberInput numberInput) return numberInput.Value; |
| | | if (content is PasswordBox passwordInput) return passwordInput.Password; |
| | | return null; |
| | | } |