I have three RadDataForms in my login workflow. I have tried all of the various CommitModes and ValidationModes to prevent this error, but nothing seems to prevent these errors from manifesting.
I have a data form that has two fields: Username and Password. When this form is FIRST displayed, what appears to be validation errors (formatted error log output):
---------------------------------- 2023-04-26 09:22:18.9231 WARN Call site: BindingDiagnostics.SendBindingFailure Method name: Microsoft.Maui.Controls.Xaml.Diagnostics.BindingDiagnostics.SendBindingFailure Line: 0 Exception Type: Exception Message: Stack Trace: Additional Info: '(null)' cannot be converted to type 'System.Boolean' ---------------------------------- ---------------------------------- 2023-04-26 09:22:18.9330 WARN Call site: BindingDiagnostics.SendBindingFailure Method name: Microsoft.Maui.Controls.Xaml.Diagnostics.BindingDiagnostics.SendBindingFailure Line: 0 Exception Type: Exception Message: Stack Trace: Additional Info: '(null)' cannot be converted to type 'System.Boolean' ----------------------------------
Then, I have a different RadData form that has five fields, First Name, Second Name, Email Address, Password and Password Confirmation. This leads to:
---------------------------------- 2023-04-26 09:22:46.6821 WARN Call site: BindingDiagnostics.SendBindingFailure Method name: Microsoft.Maui.Controls.Xaml.Diagnostics.BindingDiagnostics.SendBindingFailure Line: 0 Exception Type: Exception Message: Stack Trace: Additional Info: '(null)' cannot be converted to type 'System.Boolean' ---------------------------------- ---------------------------------- 2023-04-26 09:22:46.6821 WARN Call site: BindingDiagnostics.SendBindingFailure Method name: Microsoft.Maui.Controls.Xaml.Diagnostics.BindingDiagnostics.SendBindingFailure Line: 0 Exception Type: Exception Message: Stack Trace: Additional Info: '(null)' cannot be converted to type 'System.Boolean' ---------------------------------- ---------------------------------- 2023-04-26 09:22:46.7018 WARN Call site: BindingDiagnostics.SendBindingFailure Method name: Microsoft.Maui.Controls.Xaml.Diagnostics.BindingDiagnostics.SendBindingFailure Line: 0 Exception Type: Exception Message: Stack Trace: Additional Info: '(null)' cannot be converted to type 'System.Boolean' ---------------------------------- ---------------------------------- 2023-04-26 09:22:46.7018 WARN Call site: BindingDiagnostics.SendBindingFailure Method name: Microsoft.Maui.Controls.Xaml.Diagnostics.BindingDiagnostics.SendBindingFailure Line: 0 Exception Type: Exception Message: Stack Trace: Additional Info: '(null)' cannot be converted to type 'System.Boolean' ---------------------------------- ---------------------------------- 2023-04-26 09:22:46.7174 WARN Call site: BindingDiagnostics.SendBindingFailure Method name: Microsoft.Maui.Controls.Xaml.Diagnostics.BindingDiagnostics.SendBindingFailure Line: 0 Exception Type: Exception Message: Stack Trace: Additional Info: '(null)' cannot be converted to type 'System.Boolean' ----------------------------------
These errors are all encountered on the form's first load. Nothing has been entered into any field. No call to any validation methods is made.
Here is how my general data form configuration is done:
<telerik:RadDataForm
x:FieldModifier="public"
x:Name="SignUpForm"
Grid.Row="0"
CommitMode="Explicit"
Loaded="SignUpFormOnLoaded"
Margin="0,5,0,0"
Style="{StaticResource DataFormStyle}"
ValidationMode="Explicit">
I have attached the three classes I use as the binding context. I have tried None, Explicit, and LostFocus as settings for the two modes and it has no effect. While these errors look harmless and the form does provide error-checked data upon validation, I simply hate having any unnecessary errors in my log files.
What can I do to prevent these errors?
Thanks!
Steve