From 7dacf44ac8695b8f1e99a78ecac90fe037d37ff6 Mon Sep 17 00:00:00 2001 From: KompelliSravanSyncfusion Date: Tue, 13 May 2025 22:19:23 +0530 Subject: [PATCH 1/2] Updated sample version --- Custom_Annotation/App.xaml.cs | 5 ++++- Custom_Annotation/AssemblyInfo.cs | 12 ++++++------ Custom_Annotation/Custom_Annotation.csproj | 5 +++-- README.md | 8 ++++++++ 4 files changed, 21 insertions(+), 9 deletions(-) diff --git a/Custom_Annotation/App.xaml.cs b/Custom_Annotation/App.xaml.cs index 1164603..3710004 100644 --- a/Custom_Annotation/App.xaml.cs +++ b/Custom_Annotation/App.xaml.cs @@ -1,4 +1,6 @@ -using System.Windows; +using System.Configuration; +using System.Data; +using System.Windows; namespace Custom_Annotation { @@ -8,4 +10,5 @@ namespace Custom_Annotation public partial class App : Application { } + } diff --git a/Custom_Annotation/AssemblyInfo.cs b/Custom_Annotation/AssemblyInfo.cs index 8b5504e..b0ec827 100644 --- a/Custom_Annotation/AssemblyInfo.cs +++ b/Custom_Annotation/AssemblyInfo.cs @@ -1,10 +1,10 @@ using System.Windows; [assembly: ThemeInfo( - ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located - //(used if a resource is not found in the page, - // or application resource dictionaries) - ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located - //(used if a resource is not found in the page, - // app, or any theme specific resource dictionaries) + ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located + //(used if a resource is not found in the page, + // or application resource dictionaries) + ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located + //(used if a resource is not found in the page, + // app, or any theme specific resource dictionaries) )] diff --git a/Custom_Annotation/Custom_Annotation.csproj b/Custom_Annotation/Custom_Annotation.csproj index 71a107e..9651b60 100644 --- a/Custom_Annotation/Custom_Annotation.csproj +++ b/Custom_Annotation/Custom_Annotation.csproj @@ -2,13 +2,14 @@ WinExe - net6.0-windows + net8.0-windows enable + enable true - + diff --git a/README.md b/README.md index a3c931e..baee104 100644 --- a/README.md +++ b/README.md @@ -70,3 +70,11 @@ public class CustomTextAnnotation : RectangleAnnotation ## Output: ![Customized Rectangle Annotation with button](https://user-images.githubusercontent.com/102642528/212282757-e057007f-7bc2-46b7-832f-712dc69bbf20.png) + +## 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 a custom annotation in WPF Chart?](https://support.syncfusion.com/kb/article/12315/how-to-create-a-custom-annotation-in-wpf-chart-sfchart). From 14eba2c95018553138462d3a2bad429bf38e47da Mon Sep 17 00:00:00 2001 From: KompelliSravanSyncfusion Date: Fri, 16 May 2025 15:55:33 +0530 Subject: [PATCH 2/2] Updated version --- Custom_Annotation/Custom_Annotation.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Custom_Annotation/Custom_Annotation.csproj b/Custom_Annotation/Custom_Annotation.csproj index 9651b60..52478d0 100644 --- a/Custom_Annotation/Custom_Annotation.csproj +++ b/Custom_Annotation/Custom_Annotation.csproj @@ -9,7 +9,7 @@ - +