Skip to content

Commit 42c96d3

Browse files
Merge pull request #2 from SyncfusionExamples/private
How to bind a property of the view model in .NET MAUI DataGrid?
2 parents 40b3729 + 738168a commit 42c96d3

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

DataGridMAUI/DataGridMAUI.csproj

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net6.0-android;net6.0-ios;net6.0-maccatalyst</TargetFrameworks>
5-
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net6.0-windows10.0.19041.0</TargetFrameworks>
6-
<!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET -->
7-
<!-- <TargetFrameworks>$(TargetFrameworks);net6.0-tizen</TargetFrameworks> -->
4+
<TargetFrameworks>net9.0-android;net9.0-ios;net9.0-maccatalyst;net9.0-windows10.0.19041.0</TargetFrameworks>
85
<OutputType>Exe</OutputType>
96
<RootNamespace>DataGridMAUI</RootNamespace>
107
<UseMaui>true</UseMaui>
@@ -22,12 +19,12 @@
2219
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
2320
<ApplicationVersion>1</ApplicationVersion>
2421

25-
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">14.2</SupportedOSPlatformVersion>
26-
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">14.0</SupportedOSPlatformVersion>
27-
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
28-
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</SupportedOSPlatformVersion>
29-
<TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</TargetPlatformMinVersion>
30-
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen'">6.5</SupportedOSPlatformVersion>
22+
<!-- Platform Versions -->
23+
<SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net9.0-ios'">14.2</SupportedOSPlatformVersion>
24+
<SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net9.0-maccatalyst'">14.0</SupportedOSPlatformVersion>
25+
<SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net9.0-android'">21.0</SupportedOSPlatformVersion>
26+
<SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net9.0-windows10.0.19041.0'">10.0.17763.0</SupportedOSPlatformVersion>
27+
<TargetPlatformMinVersion Condition="'$(TargetFramework)' == 'net9.0-windows10.0.19041.0'">10.0.17763.0</TargetPlatformMinVersion>
3128
</PropertyGroup>
3229

3330
<ItemGroup>
@@ -44,12 +41,12 @@
4441
<!-- Custom Fonts -->
4542
<MauiFont Include="Resources\Fonts\*" />
4643

47-
<!-- Raw Assets (also remove the "Resources\Raw" prefix) -->
44+
<!-- Raw Assets -->
4845
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
4946
</ItemGroup>
5047

5148
<ItemGroup>
52-
<PackageReference Include="Syncfusion.Maui.DataGrid" Version="20.4.50" />
49+
<PackageReference Include="Syncfusion.Maui.DataGrid" Version="*" />
5350
</ItemGroup>
5451

5552
</Project>
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
4-
<ActiveDebugFramework>net6.0-android</ActiveDebugFramework>
4+
<ActiveDebugFramework>net9.0-windows10.0.19041.0</ActiveDebugFramework>
55
<IsFirstTimeProjectOpen>False</IsFirstTimeProjectOpen>
6-
<ActiveDebugProfile>Pixel 5 - API 30 (Android 11.0 - API 30)</ActiveDebugProfile>
6+
<ActiveDebugProfile>Windows Machine</ActiveDebugProfile>
77
<SelectedPlatformGroup>Emulator</SelectedPlatformGroup>
8-
<DefaultDevice>pixel_5_-_api_30</DefaultDevice>
8+
<DefaultDevice>pixel_5_-_api_28</DefaultDevice>
99
</PropertyGroup>
1010
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net6.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
</Project>

0 commit comments

Comments
 (0)