Skip to content

Commit 21d00d4

Browse files
authored
Sample Added
Sample Added
1 parent e64a3aa commit 21d00d4

21 files changed

+509
-0
lines changed

SfDataGridDemo/App.xaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!-- Copyright (c) Microsoft Corporation and Contributors. -->
2+
<!-- Licensed under the MIT License. -->
3+
4+
<Application
5+
x:Class="DataGridDemo.App"
6+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
7+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
8+
xmlns:local="using:DataGridDemo">
9+
<Application.Resources>
10+
<ResourceDictionary>
11+
<ResourceDictionary.MergedDictionaries>
12+
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
13+
<!-- Other merged dictionaries here -->
14+
</ResourceDictionary.MergedDictionaries>
15+
<!-- Other app resources here -->
16+
</ResourceDictionary>
17+
</Application.Resources>
18+
</Application>

SfDataGridDemo/App.xaml.cs

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
using Microsoft.UI.Xaml;
2+
3+
// To learn more about WinUI, the WinUI project structure,
4+
// and more about our project templates, see: http://aka.ms/winui-project-info.
5+
6+
namespace DataGridDemo
7+
{
8+
/// <summary>
9+
/// Provides application-specific behavior to supplement the default Application class.
10+
/// </summary>
11+
public partial class App : Application
12+
{
13+
/// <summary>
14+
/// Initializes the singleton application object. This is the first line of authored code
15+
/// executed, and as such is the logical equivalent of main() or WinMain().
16+
/// </summary>
17+
public App()
18+
{
19+
this.InitializeComponent();
20+
}
21+
22+
/// <summary>
23+
/// Invoked when the application is launched.
24+
/// </summary>
25+
/// <param name="args">Details about the launch request and process.</param>
26+
protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs args)
27+
{
28+
m_window = new MainWindow();
29+
m_window.Activate();
30+
}
31+
32+
private Window m_window;
33+
}
34+
}
432 Bytes
Loading
5.25 KB
Loading
1.71 KB
Loading
637 Bytes
Loading
283 Bytes
Loading
456 Bytes
Loading
2.05 KB
Loading

SfDataGridDemo/DataGridDemo.csproj

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<OutputType>WinExe</OutputType>
4+
<TargetFramework>net6.0-windows10.0.19041.0</TargetFramework>
5+
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
6+
<RootNamespace>DataGridDemo</RootNamespace>
7+
<ApplicationManifest>app.manifest</ApplicationManifest>
8+
<Platforms>x86;x64;ARM64</Platforms>
9+
<RuntimeIdentifiers>win10-x86;win10-x64;win10-arm64</RuntimeIdentifiers>
10+
<PublishProfile>win10-$(Platform).pubxml</PublishProfile>
11+
<UseWinUI>true</UseWinUI>
12+
<EnableMsixTooling>true</EnableMsixTooling>
13+
</PropertyGroup>
14+
15+
<ItemGroup>
16+
<Content Include="Assets\SplashScreen.scale-200.png" />
17+
<Content Include="Assets\LockScreenLogo.scale-200.png" />
18+
<Content Include="Assets\Square150x150Logo.scale-200.png" />
19+
<Content Include="Assets\Square44x44Logo.scale-200.png" />
20+
<Content Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png" />
21+
<Content Include="Assets\StoreLogo.png" />
22+
<Content Include="Assets\Wide310x150Logo.scale-200.png" />
23+
</ItemGroup>
24+
25+
<ItemGroup>
26+
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.2.221116.1" />
27+
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22621.755" />
28+
<PackageReference Include="Syncfusion.Grid.WinUI" Version="20.4.0.53" />
29+
<Manifest Include="$(ApplicationManifest)" />
30+
</ItemGroup>
31+
32+
<!--
33+
Defining the "Msix" ProjectCapability here allows the Single-project MSIX Packaging
34+
Tools extension to be activated for this project even if the Windows App SDK Nuget
35+
package has not yet been restored.
36+
-->
37+
<ItemGroup Condition="'$(DisableMsixProjectCapabilityAddedByProject)'!='true' and '$(EnableMsixTooling)'=='true'">
38+
<ProjectCapability Include="Msix" />
39+
</ItemGroup>
40+
41+
<!--
42+
Defining the "HasPackageAndPublishMenuAddedByProject" property here allows the Solution
43+
Explorer "Package and Publish" context menu entry to be enabled for this project even if
44+
the Windows App SDK Nuget package has not yet been restored.
45+
-->
46+
<PropertyGroup Condition="'$(DisableHasPackageAndPublishMenuAddedByProject)'!='true' and '$(EnableMsixTooling)'=='true'">
47+
<HasPackageAndPublishMenu>true</HasPackageAndPublishMenu>
48+
</PropertyGroup>
49+
</Project>

0 commit comments

Comments
 (0)