File tree Expand file tree Collapse file tree 7 files changed +18
-34
lines changed Expand file tree Collapse file tree 7 files changed +18
-34
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,10 @@ public partial class App : Application
55 public App ( )
66 {
77 InitializeComponent ( ) ;
8-
9- MainPage = new AppShell ( ) ;
108 }
9+
10+ protected override Window CreateWindow ( IActivationState ? activationState )
11+ {
12+ return new Window ( new MainPage ( ) ) ;
13+ }
1114}
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 33 xmlns : x =" http://schemas.microsoft.com/winfx/2009/xaml"
44 xmlns : local =" clr-namespace:TimeFormat"
55 xmlns : dataForm =" clr-namespace:Syncfusion.Maui.DataForm;assembly=Syncfusion.Maui.DataForm"
6+ x : DataType =" local:DataFormViewModel"
67 x : Class =" TimeFormat.MainPage" >
78
89 <dataForm : SfDataForm x : Name =" dataForm"
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ protected override void OnAttachedTo(SfDataForm dataForm)
1515 dataForm . GenerateDataFormItem += OnGenerateDataFormItem ;
1616 }
1717 }
18- private void OnGenerateDataFormItem ( object sender , GenerateDataFormItemEventArgs e )
18+ private void OnGenerateDataFormItem ( object ? sender , GenerateDataFormItemEventArgs e )
1919 {
2020 if ( e . DataFormItem != null )
2121 {
@@ -32,8 +32,6 @@ protected override void OnDetachingFrom(SfDataForm dataForm)
3232 {
3333 dataForm . GenerateDataFormItem -= OnGenerateDataFormItem ;
3434 }
35-
36- dataForm = null ;
3735 }
3836 }
3937}
Original file line number Diff line number Diff line change @@ -6,15 +6,15 @@ namespace TimeFormat
66 public class DataFormModel
77 {
88 [ Display ( Name = "Name" , Prompt = "First name" ) ]
9- public string FirstName { get ; set ; }
9+ public string FirstName { get ; set ; } = string . Empty ;
1010
1111 [ Display ( Prompt = "Last name" ) ]
12- public string LastName { get ; set ; }
12+ public string LastName { get ; set ; } = string . Empty ;
1313
1414 public Gender Gender { get ; set ; }
1515
1616 [ Display ( Prompt = "Select an event" ) ]
17- public string Event { get ; set ; }
17+ public string Event { get ; set ; } = string . Empty ;
1818
1919 [ Display ( Name = "Event Date" ) ]
2020 public DateTime EventDate { get ; set ; }
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22
33 <PropertyGroup >
4- <TargetFrameworks >net7 .0-android;net7 .0-ios;net7 .0-maccatalyst</TargetFrameworks >
5- <TargetFrameworks Condition =" $([MSBuild]::IsOSPlatform('windows'))" >$(TargetFrameworks);net7 .0-windows10.0.19041.0</TargetFrameworks >
4+ <TargetFrameworks >net9 .0-android;net9 .0-ios;net9 .0-maccatalyst</TargetFrameworks >
5+ <TargetFrameworks Condition =" $([MSBuild]::IsOSPlatform('windows'))" >$(TargetFrameworks);net9 .0-windows10.0.19041.0</TargetFrameworks >
66 <!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET -->
77 <!-- <TargetFrameworks>$(TargetFrameworks);net7.0-tizen</TargetFrameworks> -->
88 <OutputType >Exe</OutputType >
99 <RootNamespace >TimeFormat</RootNamespace >
1010 <UseMaui >true</UseMaui >
1111 <SingleProject >true</SingleProject >
1212 <ImplicitUsings >enable</ImplicitUsings >
13+ <Nullable >enable</Nullable >
1314
1415 <!-- Display name -->
1516 <ApplicationTitle >TimeFormat</ApplicationTitle >
4950 </ItemGroup >
5051
5152 <ItemGroup >
52- <PackageReference Include =" Microsoft.Extensions.Logging.Debug" Version =" 7.0.0 " />
53+ <PackageReference Include =" Microsoft.Extensions.Logging.Debug" Version =" * " />
5354 <PackageReference Include =" Syncfusion.Maui.Core" Version =" *" />
5455 <PackageReference Include =" Syncfusion.Maui.DataForm" Version =" *" />
5556 </ItemGroup >
5657
58+ <ItemGroup >
59+ <PackageReference Include =" Microsoft.Maui.Controls" Version =" $(MauiVersion)" />
60+ </ItemGroup >
61+
5762</Project >
You can’t perform that action at this time.
0 commit comments