diff --git a/README.md b/README.md
index 522a333..bfad952 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
-# How-to-customize-the-appearance-of-axis-labels-in-WPF-Chart
-This sample demonstrate how to customize the appearance of axis labels in WPF Chart.
+# How to customize the appearance of axis labels in WPF Chart
+This sample demonstrate how to customize the appearance of axis labels in [WPF Chart](https://www.syncfusion.com/wpf-controls/charts).
[WPF SfChart](https://help.syncfusion.com/wpf/charts/getting-started) supports customizing the appearance of the axis labels using the [LabelTemplate](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Charts.ChartAxis.html#Syncfusion_UI_Xaml_Charts_ChartAxis_LabelTemplate) property of the Chart axis with the following steps:
@@ -88,7 +88,10 @@ Step 3: Customize the axis labels using `LabelTemplate` property of the Chart ax

-## Troubleshooting ##
-### Path too long exception
-If you are facing path too long exception when building this example project, close Visual Studio and rename the repository to short and build the project.
+## 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 customize the appearance of axis labels in WPF Chart](https://support.syncfusion.com/kb/article/12176/how-to-customize-the-appearance-of-axis-labels-in-wpf-chart-sfchart)
diff --git a/WPF_SfChart_Customize_AxisLabels/App.config b/WPF_SfChart_Customize_AxisLabels/App.config
deleted file mode 100644
index 5754728..0000000
--- a/WPF_SfChart_Customize_AxisLabels/App.config
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/WPF_SfChart_Customize_AxisLabels/App.xaml.cs b/WPF_SfChart_Customize_AxisLabels/App.xaml.cs
index 7295390..5e1e112 100644
--- a/WPF_SfChart_Customize_AxisLabels/App.xaml.cs
+++ b/WPF_SfChart_Customize_AxisLabels/App.xaml.cs
@@ -1,17 +1,14 @@
-using System;
-using System.Collections.Generic;
-using System.Configuration;
+using System.Configuration;
using System.Data;
-using System.Linq;
-using System.Threading.Tasks;
using System.Windows;
namespace WPF_SfChart_Customize_AxisLabels
{
- ///
- /// Interaction logic for App.xaml
- ///
- public partial class App : Application
- {
- }
+ ///
+ /// Interaction logic for App.xaml
+ ///
+ public partial class App : Application
+ {
+ }
+
}
diff --git a/WPF_SfChart_Customize_AxisLabels/AssemblyInfo.cs b/WPF_SfChart_Customize_AxisLabels/AssemblyInfo.cs
new file mode 100644
index 0000000..b0ec827
--- /dev/null
+++ b/WPF_SfChart_Customize_AxisLabels/AssemblyInfo.cs
@@ -0,0 +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)
+)]
diff --git a/WPF_SfChart_Customize_AxisLabels/ChartModel.cs b/WPF_SfChart_Customize_AxisLabels/ChartModel.cs
index 8808fc5..2f97d1a 100644
--- a/WPF_SfChart_Customize_AxisLabels/ChartModel.cs
+++ b/WPF_SfChart_Customize_AxisLabels/ChartModel.cs
@@ -1,10 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace WPF_SfChart_Customize_AxisLabels
+namespace WPF_SfChart_Customize_AxisLabels
{
public class ChartModel
{
diff --git a/WPF_SfChart_Customize_AxisLabels/MainWindow.xaml b/WPF_SfChart_Customize_AxisLabels/MainWindow.xaml
index 63087cc..9f960a3 100644
--- a/WPF_SfChart_Customize_AxisLabels/MainWindow.xaml
+++ b/WPF_SfChart_Customize_AxisLabels/MainWindow.xaml
@@ -3,10 +3,11 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ xmlns:chart="clr-namespace:Syncfusion.UI.Xaml.Charts;assembly=Syncfusion.SfChart.WPF"
xmlns:local="clr-namespace:WPF_SfChart_Customize_AxisLabels"
- xmlns:chart="http://schemas.syncfusion.com/wpf"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
+
diff --git a/WPF_SfChart_Customize_AxisLabels/MainWindow.xaml.cs b/WPF_SfChart_Customize_AxisLabels/MainWindow.xaml.cs
index 80f89f3..08385d5 100644
--- a/WPF_SfChart_Customize_AxisLabels/MainWindow.xaml.cs
+++ b/WPF_SfChart_Customize_AxisLabels/MainWindow.xaml.cs
@@ -1,28 +1,15 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Imaging;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
+using System.Windows;
namespace WPF_SfChart_Customize_AxisLabels
{
- ///
- /// Interaction logic for MainWindow.xaml
- ///
- public partial class MainWindow : Window
- {
- public MainWindow()
- {
- InitializeComponent();
- }
- }
-}
+ ///
+ /// Interaction logic for MainWindow.xaml
+ ///
+ public partial class MainWindow : Window
+ {
+ public MainWindow()
+ {
+ InitializeComponent();
+ }
+ }
+}
\ No newline at end of file
diff --git a/WPF_SfChart_Customize_AxisLabels/Properties/AssemblyInfo.cs b/WPF_SfChart_Customize_AxisLabels/Properties/AssemblyInfo.cs
deleted file mode 100644
index dfa9fcd..0000000
--- a/WPF_SfChart_Customize_AxisLabels/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-using System.Reflection;
-using System.Resources;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-using System.Windows;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("WPF_SfChart_Customize_AxisLabels")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("WPF_SfChart_Customize_AxisLabels")]
-[assembly: AssemblyCopyright("Copyright © 2022")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-//In order to begin building localizable applications, set
-//CultureYouAreCodingWith in your .csproj file
-//inside a . For example, if you are using US english
-//in your source files, set the to en-US. Then uncomment
-//the NeutralResourceLanguage attribute below. Update the "en-US" in
-//the line below to match the UICulture setting in the project file.
-
-//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
-
-
-[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)
-)]
-
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/WPF_SfChart_Customize_AxisLabels/Properties/Resources.Designer.cs b/WPF_SfChart_Customize_AxisLabels/Properties/Resources.Designer.cs
deleted file mode 100644
index d2f3e3b..0000000
--- a/WPF_SfChart_Customize_AxisLabels/Properties/Resources.Designer.cs
+++ /dev/null
@@ -1,71 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.42000
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-namespace WPF_SfChart_Customize_AxisLabels.Properties
-{
-
-
- ///
- /// A strongly-typed resource class, for looking up localized strings, etc.
- ///
- // This class was auto-generated by the StronglyTypedResourceBuilder
- // class via a tool like ResGen or Visual Studio.
- // To add or remove a member, edit your .ResX file then rerun ResGen
- // with the /str option, or rebuild your VS project.
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- internal class Resources
- {
-
- private static global::System.Resources.ResourceManager resourceMan;
-
- private static global::System.Globalization.CultureInfo resourceCulture;
-
- [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
- internal Resources()
- {
- }
-
- ///
- /// Returns the cached ResourceManager instance used by this class.
- ///
- [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Resources.ResourceManager ResourceManager
- {
- get
- {
- if ((resourceMan == null))
- {
- global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WPF_SfChart_Customize_AxisLabels.Properties.Resources", typeof(Resources).Assembly);
- resourceMan = temp;
- }
- return resourceMan;
- }
- }
-
- ///
- /// Overrides the current thread's CurrentUICulture property for all
- /// resource lookups using this strongly typed resource class.
- ///
- [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Globalization.CultureInfo Culture
- {
- get
- {
- return resourceCulture;
- }
- set
- {
- resourceCulture = value;
- }
- }
- }
-}
diff --git a/WPF_SfChart_Customize_AxisLabels/Properties/Resources.resx b/WPF_SfChart_Customize_AxisLabels/Properties/Resources.resx
deleted file mode 100644
index ffecec8..0000000
--- a/WPF_SfChart_Customize_AxisLabels/Properties/Resources.resx
+++ /dev/null
@@ -1,117 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
\ No newline at end of file
diff --git a/WPF_SfChart_Customize_AxisLabels/Properties/Settings.Designer.cs b/WPF_SfChart_Customize_AxisLabels/Properties/Settings.Designer.cs
deleted file mode 100644
index d5f7627..0000000
--- a/WPF_SfChart_Customize_AxisLabels/Properties/Settings.Designer.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.42000
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-namespace WPF_SfChart_Customize_AxisLabels.Properties
-{
-
-
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
- internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
- {
-
- private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
-
- public static Settings Default
- {
- get
- {
- return defaultInstance;
- }
- }
- }
-}
diff --git a/WPF_SfChart_Customize_AxisLabels/Properties/Settings.settings b/WPF_SfChart_Customize_AxisLabels/Properties/Settings.settings
deleted file mode 100644
index 8f2fd95..0000000
--- a/WPF_SfChart_Customize_AxisLabels/Properties/Settings.settings
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/WPF_SfChart_Customize_AxisLabels/ViewModel.cs b/WPF_SfChart_Customize_AxisLabels/ViewModel.cs
index 9f6e98f..951df80 100644
--- a/WPF_SfChart_Customize_AxisLabels/ViewModel.cs
+++ b/WPF_SfChart_Customize_AxisLabels/ViewModel.cs
@@ -1,9 +1,5 @@
-using System;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
+using System.Collections.ObjectModel;
+
namespace WPF_SfChart_Customize_AxisLabels
{
diff --git a/WPF_SfChart_Customize_AxisLabels/WPF_SfChart_Customize_AxisLabels.csproj b/WPF_SfChart_Customize_AxisLabels/WPF_SfChart_Customize_AxisLabels.csproj
index 6265c4a..947772e 100644
--- a/WPF_SfChart_Customize_AxisLabels/WPF_SfChart_Customize_AxisLabels.csproj
+++ b/WPF_SfChart_Customize_AxisLabels/WPF_SfChart_Customize_AxisLabels.csproj
@@ -1,102 +1,15 @@
-
-
-
+
+
- Debug
- AnyCPU
- {4B433844-7F92-46D6-BD0A-16C4CB0D1FCE}
WinExe
- WPF_SfChart_Customize_AxisLabels
- WPF_SfChart_Customize_AxisLabels
- v4.7.2
- 512
- {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
- 4
- true
- true
+ net9.0-windows
+ enable
+ enable
+ true
-
- AnyCPU
- true
- full
- false
- bin\Debug\
- DEBUG;TRACE
- prompt
- 4
-
-
- AnyCPU
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
-
-
-
-
-
-
-
-
-
-
-
-
- 4.0
-
-
-
-
-
-
-
- MSBuild:Compile
- Designer
-
-
-
-
- MSBuild:Compile
- Designer
-
-
- App.xaml
- Code
-
-
- MainWindow.xaml
- Code
-
-
-
-
- Code
-
-
- True
- True
- Resources.resx
-
-
- True
- Settings.settings
- True
-
-
- ResXFileCodeGenerator
- Resources.Designer.cs
-
-
-
- SettingsSingleFileGenerator
- Settings.Designer.cs
-
-
+
-
+
-
-
\ No newline at end of file
+
+
diff --git a/WPF_SfChart_Customize_AxisLabels/WPF_SfChart_Customize_AxisLabels.sln b/WPF_SfChart_Customize_AxisLabels/WPF_SfChart_Customize_AxisLabels.sln
index 6cfabf8..ffc33f7 100644
--- a/WPF_SfChart_Customize_AxisLabels/WPF_SfChart_Customize_AxisLabels.sln
+++ b/WPF_SfChart_Customize_AxisLabels/WPF_SfChart_Customize_AxisLabels.sln
@@ -1,9 +1,9 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
-VisualStudioVersion = 17.3.32901.215
+VisualStudioVersion = 17.12.35527.113 d17.12
MinimumVisualStudioVersion = 10.0.40219.1
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPF_SfChart_Customize_AxisLabels", "WPF_SfChart_Customize_AxisLabels.csproj", "{4B433844-7F92-46D6-BD0A-16C4CB0D1FCE}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPF_SfChart_Customize_AxisLabels", "WPF_SfChart_Customize_AxisLabels.csproj", "{BE282803-4657-40F0-81D5-4F1272FC977E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -11,15 +11,12 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {4B433844-7F92-46D6-BD0A-16C4CB0D1FCE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {4B433844-7F92-46D6-BD0A-16C4CB0D1FCE}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {4B433844-7F92-46D6-BD0A-16C4CB0D1FCE}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {4B433844-7F92-46D6-BD0A-16C4CB0D1FCE}.Release|Any CPU.Build.0 = Release|Any CPU
+ {BE282803-4657-40F0-81D5-4F1272FC977E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {BE282803-4657-40F0-81D5-4F1272FC977E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {BE282803-4657-40F0-81D5-4F1272FC977E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {BE282803-4657-40F0-81D5-4F1272FC977E}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
- GlobalSection(ExtensibilityGlobals) = postSolution
- SolutionGuid = {0AB567C4-C8D4-43CB-9ED0-B79016859804}
- EndGlobalSection
EndGlobal
diff --git a/WPF_SfChart_Customize_AxisLabels/packages.config b/WPF_SfChart_Customize_AxisLabels/packages.config
deleted file mode 100644
index 159db26..0000000
--- a/WPF_SfChart_Customize_AxisLabels/packages.config
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
\ No newline at end of file