Skip to content

Commit 7dacf44

Browse files
Updated sample version
1 parent 9b71636 commit 7dacf44

File tree

4 files changed

+21
-9
lines changed

4 files changed

+21
-9
lines changed

Custom_Annotation/App.xaml.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using System.Windows;
1+
using System.Configuration;
2+
using System.Data;
3+
using System.Windows;
24

35
namespace Custom_Annotation
46
{
@@ -8,4 +10,5 @@ namespace Custom_Annotation
810
public partial class App : Application
911
{
1012
}
13+
1114
}

Custom_Annotation/AssemblyInfo.cs

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
using System.Windows;
22

33
[assembly: ThemeInfo(
4-
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
5-
//(used if a resource is not found in the page,
6-
// or application resource dictionaries)
7-
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
8-
//(used if a resource is not found in the page,
9-
// app, or any theme specific resource dictionaries)
4+
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
5+
//(used if a resource is not found in the page,
6+
// or application resource dictionaries)
7+
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
8+
//(used if a resource is not found in the page,
9+
// app, or any theme specific resource dictionaries)
1010
)]

Custom_Annotation/Custom_Annotation.csproj

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22

33
<PropertyGroup>
44
<OutputType>WinExe</OutputType>
5-
<TargetFramework>net6.0-windows</TargetFramework>
5+
<TargetFramework>net8.0-windows</TargetFramework>
66
<Nullable>enable</Nullable>
7+
<ImplicitUsings>enable</ImplicitUsings>
78
<UseWPF>true</UseWPF>
89
</PropertyGroup>
910

1011
<ItemGroup>
11-
<PackageReference Include="Syncfusion.SfChart.WPF" Version="*" />
12+
<PackageReference Include="Syncfusion.SfChart.WPF" Version="29.1.41" />
1213
</ItemGroup>
1314

1415
</Project>

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,11 @@ public class CustomTextAnnotation : RectangleAnnotation
7070
## Output:
7171

7272
![Customized Rectangle Annotation with button](https://user-images.githubusercontent.com/102642528/212282757-e057007f-7bc2-46b7-832f-712dc69bbf20.png)
73+
74+
## Troubleshooting
75+
76+
#### Path too long exception
77+
78+
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.
79+
80+
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).

0 commit comments

Comments
 (0)