File tree 3 files changed +5
-4
lines changed
ValidateOnLoad/ValidateOnLoad
3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 2
2
<ContentPage xmlns =" http://schemas.microsoft.com/dotnet/2021/maui"
3
3
xmlns : x =" http://schemas.microsoft.com/winfx/2009/xaml"
4
4
xmlns : local =" clr-namespace:ValidateOnLoad"
5
+ x : DataType =" local:DataFormViewModel"
5
6
xmlns : dataForm =" clr-namespace:Syncfusion.Maui.DataForm;assembly=Syncfusion.Maui.DataForm"
6
7
x : Class =" ValidateOnLoad.MainPage" >
7
8
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ namespace ValidateOnLoad
4
4
{
5
5
public class DataFormBehavior : Behavior < ContentPage >
6
6
{
7
- private SfDataForm dataForm ;
7
+ private SfDataForm ? dataForm ;
8
8
protected override void OnAttachedTo ( ContentPage bindable )
9
9
{
10
10
base . OnAttachedTo ( bindable ) ;
@@ -18,9 +18,9 @@ protected override void OnAttachedTo(ContentPage bindable)
18
18
}
19
19
}
20
20
21
- private void OnLoaded ( object sender , EventArgs e )
21
+ private void OnLoaded ( object ? sender , EventArgs e )
22
22
{
23
- this . dataForm . Validate ( ) ;
23
+ this . dataForm ? . Validate ( ) ;
24
24
}
25
25
26
26
protected override void OnDetachingFrom ( ContentPage bindable )
Original file line number Diff line number Diff line change 51
51
52
52
<ItemGroup >
53
53
<PackageReference Include =" Microsoft.Extensions.Logging.Debug" Version =" *" />
54
- <PackageReference Include =" Syncfusion.Maui.DataForm" Version =" *" />
55
54
</ItemGroup >
56
55
57
56
<ItemGroup >
58
57
<PackageReference Include =" Microsoft.Maui.Controls" Version =" $(MauiVersion)" />
58
+ <PackageReference Include =" Syncfusion.Maui.DataForm" Version =" *" />
59
59
</ItemGroup >
60
60
61
61
</Project >
You can’t perform that action at this time.
0 commit comments