Skip to content

Commit 58e0423

Browse files
Updated the suggested changes.
1 parent f8092e9 commit 58e0423

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+64
-60
lines changed

AddCrossHairToMAUIChart/Annotations/CrossHairInteractiveBehavior.cs renamed to ChartCrossHair/Annotations/CrossHairInteractiveBehavior.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using Syncfusion.Maui.Toolkit.Charts;
22

3-
namespace AddCrossHairToMAUIChart.UsingAnnotations
3+
namespace ChartCrossHair.UsingAnnotations
44
{
55
public class CrossHairInteractiveBehavior : ChartInteractiveBehavior
66
{
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version = "1.0" encoding = "UTF-8" ?>
22
<Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
33
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
4-
xmlns:local="clr-namespace:AddCrossHairToMAUIChart"
5-
x:Class="AddCrossHairToMAUIChart.App">
4+
xmlns:local="clr-namespace:ChartCrossHair"
5+
x:Class="ChartCrossHair.App">
66
<Application.Resources>
77
<ResourceDictionary>
88
<ResourceDictionary.MergedDictionaries>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace AddCrossHairToMAUIChart
1+
namespace ChartCrossHair
22
{
33
public partial class App : Application
44
{
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
22
<Shell
3-
x:Class="AddCrossHairToMAUIChart.AppShell"
3+
x:Class="ChartCrossHair.AppShell"
44
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
55
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
6-
xmlns:local="clr-namespace:AddCrossHairToMAUIChart"
6+
xmlns:local="clr-namespace:ChartCrossHair"
77
Shell.FlyoutBehavior="Flyout"
8-
Title="AddCrossHairToMAUIChart">
8+
Title="ChartCrossHair">
99

10-
<ShellContent
11-
Title="Crosshair with GraphicsView"
10+
<ShellContent Title="CrossHair with GraphicsView"
1211
ContentTemplate="{DataTemplate local:WithGraphicsView}"
1312
Route="WithGraphicsView" />
1413

15-
<ShellContent
16-
Title="Crosshair with Annotation"
14+
<ShellContent Title="CrossHair with Annotation"
1715
ContentTemplate="{DataTemplate local:WithAnnotation}"
1816
Route="WithAnnotation" />
1917

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace AddCrossHairToMAUIChart
1+
namespace ChartCrossHair
22
{
33
public partial class AppShell : Shell
44
{

AddCrossHairToMAUIChart/AddCrossHairToMAUIChart.csproj renamed to ChartCrossHair/ChartCrossHair.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
<!-- For example: <RuntimeIdentifiers>maccatalyst-x64;maccatalyst-arm64</RuntimeIdentifiers> -->
1515

1616
<OutputType>Exe</OutputType>
17-
<RootNamespace>AddCrossHairToMAUIChart</RootNamespace>
17+
<RootNamespace>ChartCrossHair</RootNamespace>
1818
<UseMaui>true</UseMaui>
1919
<SingleProject>true</SingleProject>
2020
<ImplicitUsings>enable</ImplicitUsings>
2121
<Nullable>enable</Nullable>
2222

2323
<!-- Display name -->
24-
<ApplicationTitle>AddCrossHairToMAUIChart</ApplicationTitle>
24+
<ApplicationTitle>ChartCrossHair</ApplicationTitle>
2525

2626
<!-- App Identifier -->
2727
<ApplicationId>com.companyname.addcrosshairtomauichart</ApplicationId>
@@ -62,14 +62,14 @@
6262
<ItemGroup>
6363
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
6464
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.0" />
65-
<PackageReference Include="Syncfusion.Maui.Toolkit" Version="1.0.3" />
65+
<PackageReference Include="Syncfusion.Maui.Toolkit" Version="*" />
6666
</ItemGroup>
6767

6868
<ItemGroup>
69-
<MauiXaml Update="WithAnnotation.xaml">
69+
<MauiXaml Update="Views\WithAnnotation.xaml">
7070
<Generator>MSBuild:Compile</Generator>
7171
</MauiXaml>
72-
<MauiXaml Update="WithGraphicsView.xaml">
72+
<MauiXaml Update="Views\WithGraphicsView.xaml">
7373
<Generator>MSBuild:Compile</Generator>
7474
</MauiXaml>
7575
</ItemGroup>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<IsFirstTimeProjectOpen>False</IsFirstTimeProjectOpen>
5+
<ActiveDebugFramework>net9.0-windows10.0.19041.0</ActiveDebugFramework>
6+
<ActiveDebugProfile>Windows Machine</ActiveDebugProfile>
7+
</PropertyGroup>
8+
</Project>

AddCrossHairToMAUIChart/AddCrossHairToMAUIChart.sln renamed to ChartCrossHair/ChartCrossHair.sln

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
4-
VisualStudioVersion = 17.12.35521.163 d17.12
4+
VisualStudioVersion = 17.12.35521.163
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AddCrossHairToMAUIChart", "AddCrossHairToMAUIChart.csproj", "{26AF134E-FF0E-49C1-A320-9ED16639D6E9}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ChartCrossHair", "ChartCrossHair.csproj", "{26AF134E-FF0E-49C1-A320-9ED16639D6E9}"
77
EndProject
88
Global
99
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -13,6 +13,7 @@ Global
1313
GlobalSection(ProjectConfigurationPlatforms) = postSolution
1414
{26AF134E-FF0E-49C1-A320-9ED16639D6E9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
1515
{26AF134E-FF0E-49C1-A320-9ED16639D6E9}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{26AF134E-FF0E-49C1-A320-9ED16639D6E9}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
1617
{26AF134E-FF0E-49C1-A320-9ED16639D6E9}.Release|Any CPU.ActiveCfg = Release|Any CPU
1718
{26AF134E-FF0E-49C1-A320-9ED16639D6E9}.Release|Any CPU.Build.0 = Release|Any CPU
1819
EndGlobalSection

AddCrossHairToMAUIChart/GraphicsView/CrossHairBehavior.cs renamed to ChartCrossHair/GraphicsView/CrossHairBehavior.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using Syncfusion.Maui.Toolkit.Charts;
22
using Font = Microsoft.Maui.Graphics.Font;
33

4-
namespace AddCrossHairToMAUIChart.UsingGraphicsView
4+
namespace ChartCrossHair.UsingGraphicsView
55
{
66
public class CrossHairBehavior : GraphicsView, IDrawable
77
{
@@ -43,14 +43,14 @@ public void Draw(ICanvas canvas, RectF dirtyRect)
4343
}
4444
}
4545

46-
public virtual void OnTouchMove(ChartBase chart, float pointX, float pointY)
46+
public void OnTouchMove(ChartBase chart, float pointX, float pointY)
4747
{
4848
isTouchActive = true;
4949
CalculateCrossHairPoints(chart, pointX, pointY);
5050
Invalidate();
5151
}
5252

53-
public virtual void OnTouchUp(ChartBase chart, float pointX, float pointY)
53+
public void OnTouchUp(ChartBase chart, float pointX, float pointY)
5454
{
5555
isTouchActive = false;
5656
Invalidate();

AddCrossHairToMAUIChart/GraphicsView/CrossHairInteractiveBehavior.cs renamed to ChartCrossHair/GraphicsView/CrossHairInteractiveBehavior.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using Syncfusion.Maui.Toolkit.Charts;
22

3-
namespace AddCrossHairToMAUIChart.UsingGraphicsView
3+
namespace ChartCrossHair.UsingGraphicsView
44
{
55
public class CrossHairInteractiveBehavior : ChartInteractiveBehavior
66
{

0 commit comments

Comments
 (0)