File tree Expand file tree Collapse file tree 5 files changed +25
-13
lines changed
Expand file tree Collapse file tree 5 files changed +25
-13
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,11 @@ public partial class App : Application
55 public App ( )
66 {
77 InitializeComponent ( ) ;
8+ }
89
9- MainPage = new AppShell ( ) ;
10+ protected override Window CreateWindow ( IActivationState ? activationState )
11+ {
12+ return new Window ( new MainPage ( ) ) ;
1013 }
1114 }
1215}
Original file line number Diff line number Diff line change @@ -5,17 +5,17 @@ namespace DataForm_Customization
55{
66 public class ContactsInfo
77 {
8- public string FirstName { get ; set ; }
8+ public string FirstName { get ; set ; } = string . Empty ;
99
10- public string MiddleName { get ; set ; }
10+ public string MiddleName { get ; set ; } = string . Empty ;
1111
12- public string LastName { get ; set ; }
12+ public string LastName { get ; set ; } = string . Empty ;
1313
14- public string ContactNumber { get ; set ; }
14+ public string ContactNumber { get ; set ; } = string . Empty ;
1515
16- public string Email { get ; set ; }
16+ public string Email { get ; set ; } = string . Empty ;
1717
18- public string Address { get ; set ; }
18+ public string Address { get ; set ; } = string . Empty ;
1919
2020 public DateTime ? BirthDate { get ; set ; }
2121 }
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 >DataForm_Customization</RootNamespace >
1010 <UseMaui >true</UseMaui >
1111 <SingleProject >true</SingleProject >
1212 <ImplicitUsings >enable</ImplicitUsings >
13+ <Nullable >enable</Nullable >
1314
1415 <!-- Display name -->
1516 <ApplicationTitle >DataForm_Customization</ApplicationTitle >
5354 </ItemGroup >
5455
5556 <ItemGroup >
56- <PackageReference Include =" Microsoft.Extensions.Logging.Debug" Version =" 7.0.0" />
57- <PackageReference Include =" Syncfusion.Maui.DataForm" Version =" 24.1.46" />
57+ <PackageReference Include =" Microsoft.Extensions.Logging.Debug" Version =" *" />
58+ <PackageReference Include =" Syncfusion.Maui.DataForm" Version =" *" />
59+ </ItemGroup >
60+
61+ <ItemGroup >
62+ <PackageReference Include =" Microsoft.Maui.Controls" Version =" $(MauiVersion)" />
5863 </ItemGroup >
5964
6065</Project >
Original file line number Diff line number Diff line change 22<Project ToolsVersion =" Current" xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
33 <PropertyGroup >
44 <IsFirstTimeProjectOpen >False</IsFirstTimeProjectOpen >
5- <ActiveDebugFramework >net7 .0-android </ActiveDebugFramework >
6- <ActiveDebugProfile >Pixel 5 - API 31 (Android 12.0 - API 31) </ActiveDebugProfile >
5+ <ActiveDebugFramework >net9 .0-windows10.0.19041.0 </ActiveDebugFramework >
6+ <ActiveDebugProfile >Windows Machine </ActiveDebugProfile >
77 <SelectedPlatformGroup >Emulator</SelectedPlatformGroup >
88 <DefaultDevice >pixel_5_-_api_31</DefaultDevice >
99 </PropertyGroup >
1010 <PropertyGroup Condition =" '$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net7.0-android|AnyCPU'" >
1111 <DebuggerFlavor >ProjectDebugger</DebuggerFlavor >
1212 </PropertyGroup >
13+ <PropertyGroup Condition =" '$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net9.0-android|AnyCPU'" >
14+ <DebuggerFlavor >ProjectDebugger</DebuggerFlavor >
15+ </PropertyGroup >
1316 <ItemGroup >
1417 <MauiXaml Update =" App.xaml" >
1518 <SubType >Designer</SubType >
Original file line number Diff line number Diff line change 33 xmlns : x =" http://schemas.microsoft.com/winfx/2009/xaml"
44 xmlns : dataForm =" clr-namespace:Syncfusion.Maui.DataForm;assembly=Syncfusion.Maui.DataForm"
55 xmlns : local =" clr-namespace:DataForm_Customization"
6+ x : DataType =" local:ContactsInfoViewModel"
67 x : Class =" DataForm_Customization.MainPage" >
78
89 <ContentPage .BindingContext>
You can’t perform that action at this time.
0 commit comments