Skip to content

Commit 434a871

Browse files
author
NitheeshKumarThangaraj
committed
Updated the .NET Core project for label format customization KB
1 parent 6a3ec02 commit 434a871

19 files changed

+94
-483
lines changed

Culture_Customization/App.xaml.cs

Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.14.36301.6 d17.14
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CustomLabelFormatSample", "CustomLabelFormatSample\CustomLabelFormatSample.csproj", "{6D1A2F55-4824-42C0-A467-BA8E7ABBC75D}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{6D1A2F55-4824-42C0-A467-BA8E7ABBC75D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{6D1A2F55-4824-42C0-A467-BA8E7ABBC75D}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{6D1A2F55-4824-42C0-A467-BA8E7ABBC75D}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{6D1A2F55-4824-42C0-A467-BA8E7ABBC75D}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {F42F352C-1C2A-49A8-AE6C-1E9149ECBA5A}
24+
EndGlobalSection
25+
EndGlobal

Culture_Customization/App.xaml renamed to Culture_Customization/CustomLabelFormatSample/CustomLabelFormatSample/App.xaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
<Application x:Class="GettingStartedDemo.App"
1+
<Application x:Class="CustomLabelFormatSample.App"
22
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
33
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
xmlns:local="clr-namespace:CustomLabelFormatSample"
45
StartupUri="MainWindow.xaml">
56
<Application.Resources>
67

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using System.Configuration;
2+
using System.Data;
3+
using System.Windows;
4+
5+
namespace CustomLabelFormatSample
6+
{
7+
/// <summary>
8+
/// Interaction logic for App.xaml
9+
/// </summary>
10+
public partial class App : Application
11+
{
12+
}
13+
14+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using System.Windows;
2+
3+
[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)
10+
)]
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>WinExe</OutputType>
5+
<TargetFramework>net9.0-windows</TargetFramework>
6+
<Nullable>enable</Nullable>
7+
<ImplicitUsings>enable</ImplicitUsings>
8+
<UseWPF>true</UseWPF>
9+
</PropertyGroup>
10+
11+
<ItemGroup>
12+
<PackageReference Include="Syncfusion.SfChart.WPF" Version="*" />
13+
</ItemGroup>
14+
15+
</Project>
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,29 @@
1-
<Window x:Class="GettingStartedDemo.MainWindow"
1+
<Window x:Class="CustomLabelFormatSample.MainWindow"
22
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
33
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
5+
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
6+
xmlns:local="clr-namespace:CustomLabelFormatSample"
7+
mc:Ignorable="d"
48
xmlns:chart="clr-namespace:Syncfusion.UI.Xaml.Charts;assembly=Syncfusion.SfChart.WPF"
5-
xmlns:local="clr-namespace:GettingStartedDemo" ResizeMode="CanResizeWithGrip"
6-
WindowStartupLocation="CenterScreen"
7-
Title="Getting Started" >
8-
9+
Title="Custom Label Format" Height="450" Width="800">
910
<Grid Margin="20">
1011

1112
<Grid.DataContext>
1213
<local:ViewModel/>
1314
</Grid.DataContext>
14-
15+
1516
<Grid.RowDefinitions>
1617
<RowDefinition Height="7*"></RowDefinition>
1718
<RowDefinition Height="3*"></RowDefinition>
1819
</Grid.RowDefinitions>
19-
20+
2021
<chart:SfChart AreaBorderThickness="0,1,1,1" x:Name="Chart" Header="" Grid.Row="0">
21-
22+
2223
<chart:SfChart.PrimaryAxis>
2324
<chart:DateTimeAxis Name="axis1" Interval="1" IntervalType="Hours" LabelFormat="hhtt" />
2425
</chart:SfChart.PrimaryAxis>
25-
26+
2627
<chart:SfChart.SecondaryAxis>
2728
<chart:NumericalAxis/>
2829
</chart:SfChart.SecondaryAxis>
@@ -31,19 +32,19 @@
3132
</chart:ColumnSeries>
3233

3334
</chart:SfChart>
34-
35+
3536
<Grid Grid.Row="2" Margin="0,0,0,0">
36-
37+
3738
<chart:SfDateTimeRangeNavigator x:Name="RangeNavigator"
38-
ScrollbarVisibility="Hidden"
39-
Background="AliceBlue"
40-
HigherBarVisibility="Collapsed"
41-
Margin="0,10,0,10"
42-
RangePadding="None"
43-
ItemsSource="{Binding StockPriceDetails}"
44-
XBindingPath="XValue"
45-
LowerBarLabelsCreated="RangeNavigator_LowerBarLabelsCreated" >
46-
39+
ScrollbarVisibility="Hidden"
40+
Background="AliceBlue"
41+
HigherBarVisibility="Collapsed"
42+
Margin="0,10,0,10"
43+
RangePadding="None"
44+
ItemsSource="{Binding StockPriceDetails}"
45+
XBindingPath="XValue"
46+
LowerBarLabelsCreated="RangeNavigator_LowerBarLabelsCreated" >
47+
4748
<chart:SfDateTimeRangeNavigator.Intervals>
4849
<chart:Interval IntervalType="Hour" x:Name="hourInterval"/>
4950
<chart:Interval IntervalType="Hour" />
@@ -55,7 +56,7 @@
5556
</chart:SfDateTimeRangeNavigator.LowerLevelBarStyle>
5657

5758
<chart:SfDateTimeRangeNavigator.Content>
58-
59+
5960
<chart:SfChart >
6061
<chart:SfChart.PrimaryAxis>
6162
<chart:DateTimeAxis Visibility="Collapsed" />
@@ -66,10 +67,10 @@
6667
</chart:SfChart.SecondaryAxis>
6768
<chart:LineSeries ItemsSource="{Binding StockPriceDetails}" XBindingPath="XValue" YBindingPath="YValue" Background="AliceBlue"/>
6869
</chart:SfChart>
69-
70+
7071
</chart:SfDateTimeRangeNavigator.Content>
7172
</chart:SfDateTimeRangeNavigator>
72-
73+
7374
</Grid>
7475
</Grid>
7576
</Window>

Culture_Customization/MainWindow.xaml.cs renamed to Culture_Customization/CustomLabelFormatSample/CustomLabelFormatSample/MainWindow.xaml.cs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
using Syncfusion.UI.Xaml.Charts;
2-
using System;
3-
using System.Collections.Generic;
4-
using System.Collections.ObjectModel;
52
using System.Globalization;
6-
using System.Linq;
73
using System.Text;
8-
using System.Threading.Tasks;
94
using System.Windows;
105
using System.Windows.Controls;
116
using System.Windows.Data;
@@ -16,7 +11,7 @@
1611
using System.Windows.Navigation;
1712
using System.Windows.Shapes;
1813

19-
namespace GettingStartedDemo
14+
namespace CustomLabelFormatSample
2015
{
2116
/// <summary>
2217
/// Interaction logic for MainWindow.xaml
@@ -38,6 +33,4 @@ private void RangeNavigator_LowerBarLabelsCreated(object sender, Syncfusion.UI.X
3833
}
3934
}
4035
}
41-
42-
43-
}
36+
}

Culture_Customization/Model.cs renamed to Culture_Customization/CustomLabelFormatSample/CustomLabelFormatSample/Model.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using System.Text;
55
using System.Threading.Tasks;
66

7-
namespace GettingStartedDemo
7+
namespace CustomLabelFormatSample
88
{
99
public class Model
1010
{

Culture_Customization/ViewModel.cs renamed to Culture_Customization/CustomLabelFormatSample/CustomLabelFormatSample/ViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using System.Text;
66
using System.Threading.Tasks;
77

8-
namespace GettingStartedDemo
8+
namespace CustomLabelFormatSample
99
{
1010
public class ViewModel
1111
{

0 commit comments

Comments
 (0)