From 649888ca6138686bea9e2023c90c07bb5bdf1a13 Mon Sep 17 00:00:00 2001 From: KompelliSravanSyncfusion Date: Mon, 12 May 2025 19:23:54 +0530 Subject: [PATCH 1/2] Updated the sample version --- README.md | 8 ++- WinUI_ChartSqliteSample/App.xaml | 3 +- WinUI_ChartSqliteSample/App.xaml.cs | 23 +++++--- .../WinUI_ChartSqliteSample.csproj | 53 ++++++++----------- WinUI_ChartSqliteSample/app.manifest | 18 ++++--- 5 files changed, 58 insertions(+), 47 deletions(-) diff --git a/README.md b/README.md index cf4e452..ae34f35 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,13 @@ This example demonstrates how to show the SQLite database data to Chart. Please refer KB link for more details, -KB article - [How to bind the SQLite Database to the WinUI Chart (SfCartesianChart)](https://www.syncfusion.com/kb/13689/how-to-bind-the-sqlite-database-to-the-winui-chart-sfcartesianchart) +## Troubleshooting + +#### Path too long exception + +If you are facing a path too long exception when building this example project, close Visual Studio and rename the repository to a shorter name before building the project. + +For more details, refer to the KB on [How to create custom legend items in WPF Chart?](https://www.syncfusion.com/kb/13689/how-to-bind-the-sqlite-database-to-the-winui-chart-sfcartesianchart). Follow these steps to learn how to work with the WinUI Chart using the SQLite database. diff --git a/WinUI_ChartSqliteSample/App.xaml b/WinUI_ChartSqliteSample/App.xaml index 652146a..b9c0ef7 100644 --- a/WinUI_ChartSqliteSample/App.xaml +++ b/WinUI_ChartSqliteSample/App.xaml @@ -1,4 +1,5 @@ - + public partial class App : Application { + static ChartDatabase database; - private Window m_window; + public static ChartDatabase Database { @@ -35,6 +42,7 @@ public static ChartDatabase Database } } + /// /// Initializes the singleton application object. This is the first line of authored code /// executed, and as such is the logical equivalent of main() or WinMain(). @@ -45,8 +53,7 @@ public App() } /// - /// Invoked when the application is launched normally by the end user. Other entry points - /// will be used such as when the application is launched to open a specific file. + /// Invoked when the application is launched. /// /// Details about the launch request and process. protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs args) @@ -57,5 +64,7 @@ protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs ar m_window.Activate(); rootFrame.Navigate(typeof(MainPage)); } + + private Window? m_window; } } diff --git a/WinUI_ChartSqliteSample/WinUI_ChartSqliteSample.csproj b/WinUI_ChartSqliteSample/WinUI_ChartSqliteSample.csproj index 6580ace..8971a98 100644 --- a/WinUI_ChartSqliteSample/WinUI_ChartSqliteSample.csproj +++ b/WinUI_ChartSqliteSample/WinUI_ChartSqliteSample.csproj @@ -1,21 +1,17 @@ WinExe - net6.0-windows10.0.19041.0 + net8.0-windows10.0.19041.0 10.0.17763.0 WinUI_ChartSqliteSample app.manifest - x86;x64;arm64 - win10-x86;win10-x64;win10-arm64 - win10-$(Platform).pubxml + x86;x64;ARM64 + win-x86;win-x64;win-arm64 + win-$(Platform).pubxml true true + enable - - - - - @@ -28,14 +24,10 @@ - - - - - true - + + + + False + True + False + True + + \ No newline at end of file diff --git a/WinUI_ChartSqliteSample/app.manifest b/WinUI_ChartSqliteSample/app.manifest index af96bd6..422e1df 100644 --- a/WinUI_ChartSqliteSample/app.manifest +++ b/WinUI_ChartSqliteSample/app.manifest @@ -2,14 +2,18 @@ + + + + + + + - - true/PM - PerMonitorV2, PerMonitor + PerMonitorV2 - + \ No newline at end of file From c2247f151916c254906c370a5ef3a93987276f73 Mon Sep 17 00:00:00 2001 From: KompelliSravanSyncfusion Date: Tue, 13 May 2025 12:35:42 +0530 Subject: [PATCH 2/2] Updated the readme file --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ae34f35..4f94a6f 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ This example demonstrates how to show the SQLite database data to Chart. Please If you are facing a path too long exception when building this example project, close Visual Studio and rename the repository to a shorter name before building the project. -For more details, refer to the KB on [How to create custom legend items in WPF Chart?](https://www.syncfusion.com/kb/13689/how-to-bind-the-sqlite-database-to-the-winui-chart-sfcartesianchart). +For more details, refer to the KB on [How to bind the SQLite database to the WinUI Chart?](https://www.syncfusion.com/kb/13689/how-to-bind-the-sqlite-database-to-the-winui-chart-sfcartesianchart). Follow these steps to learn how to work with the WinUI Chart using the SQLite database.