Skip to content

Commit be55982

Browse files
Updated the sample
1 parent 0f42862 commit be55982

Some content is hidden

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

49 files changed

+509
-149
lines changed

Add benchmark line/Sample.sln

Lines changed: 0 additions & 27 deletions
This file was deleted.

Add benchmark line/Sample/AppShell.xaml

Lines changed: 0 additions & 15 deletions
This file was deleted.

Add benchmark line/Sample/AppShell.xaml.cs

Lines changed: 0 additions & 10 deletions
This file was deleted.

Add benchmark line/Sample/MainPage.xaml

Lines changed: 0 additions & 30 deletions
This file was deleted.

Add benchmark line/Sample/MainPage.xaml.cs

Lines changed: 0 additions & 11 deletions
This file was deleted.

Add benchmark line/Sample/Model/Model.cs

Lines changed: 0 additions & 8 deletions
This file was deleted.

Add benchmark line/Sample/View Model/ViewModel.cs

Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 205 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,205 @@
1+
{
2+
"Version": 1,
3+
"WorkspaceRootPath": "D:\\KB_Samples\\How-to-add-benchmark-line-in-.NET-MAUI-Cartesian-chart\\BenchMarkSample\\",
4+
"Documents": [
5+
{
6+
"AbsoluteMoniker": "D:0:0:{F3C894BA-AE5D-49F9-9561-D5526A93AE30}|BenchMarkSample.csproj|d:\\kb_samples\\how-to-add-benchmark-line-in-.net-maui-cartesian-chart\\benchmarksample\\appshell.xaml||{F11ACC28-31D1-4C80-A34B-F4E09D3D753C}",
7+
"RelativeMoniker": "D:0:0:{F3C894BA-AE5D-49F9-9561-D5526A93AE30}|BenchMarkSample.csproj|solutionrelative:appshell.xaml||{F11ACC28-31D1-4C80-A34B-F4E09D3D753C}"
8+
},
9+
{
10+
"AbsoluteMoniker": "D:0:0:{F3C894BA-AE5D-49F9-9561-D5526A93AE30}|BenchMarkSample.csproj|D:\\KB_Samples\\How-to-add-benchmark-line-in-.NET-MAUI-Cartesian-chart\\BenchMarkSample\\app.xaml||{F11ACC28-31D1-4C80-A34B-F4E09D3D753C}",
11+
"RelativeMoniker": "D:0:0:{F3C894BA-AE5D-49F9-9561-D5526A93AE30}|BenchMarkSample.csproj|solutionrelative:app.xaml||{F11ACC28-31D1-4C80-A34B-F4E09D3D753C}"
12+
},
13+
{
14+
"AbsoluteMoniker": "D:0:0:{F3C894BA-AE5D-49F9-9561-D5526A93AE30}|BenchMarkSample.csproj|D:\\KB_Samples\\How-to-add-benchmark-line-in-.NET-MAUI-Cartesian-chart\\BenchMarkSample\\appshell.xaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
15+
"RelativeMoniker": "D:0:0:{F3C894BA-AE5D-49F9-9561-D5526A93AE30}|BenchMarkSample.csproj|solutionrelative:appshell.xaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
16+
},
17+
{
18+
"AbsoluteMoniker": "D:0:0:{F3C894BA-AE5D-49F9-9561-D5526A93AE30}|BenchMarkSample.csproj|D:\\KB_Samples\\How-to-add-benchmark-line-in-.NET-MAUI-Cartesian-chart\\BenchMarkSample\\mainpage.xaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
19+
"RelativeMoniker": "D:0:0:{F3C894BA-AE5D-49F9-9561-D5526A93AE30}|BenchMarkSample.csproj|solutionrelative:mainpage.xaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
20+
},
21+
{
22+
"AbsoluteMoniker": "D:0:0:{F3C894BA-AE5D-49F9-9561-D5526A93AE30}|BenchMarkSample.csproj|D:\\KB_Samples\\How-to-add-benchmark-line-in-.NET-MAUI-Cartesian-chart\\BenchMarkSample\\mainpage.xaml||{F11ACC28-31D1-4C80-A34B-F4E09D3D753C}",
23+
"RelativeMoniker": "D:0:0:{F3C894BA-AE5D-49F9-9561-D5526A93AE30}|BenchMarkSample.csproj|solutionrelative:mainpage.xaml||{F11ACC28-31D1-4C80-A34B-F4E09D3D753C}"
24+
},
25+
{
26+
"AbsoluteMoniker": "D:0:0:{F3C894BA-AE5D-49F9-9561-D5526A93AE30}|BenchMarkSample.csproj|D:\\KB_Samples\\How-to-add-benchmark-line-in-.NET-MAUI-Cartesian-chart\\BenchMarkSample\\customdrawing.xaml||{2974C621-7033-421A-B08A-11D27B021D1B}",
27+
"RelativeMoniker": "D:0:0:{F3C894BA-AE5D-49F9-9561-D5526A93AE30}|BenchMarkSample.csproj|solutionrelative:customdrawing.xaml||{2974C621-7033-421A-B08A-11D27B021D1B}"
28+
},
29+
{
30+
"AbsoluteMoniker": "D:0:0:{F3C894BA-AE5D-49F9-9561-D5526A93AE30}|BenchMarkSample.csproj|D:\\KB_Samples\\How-to-add-benchmark-line-in-.NET-MAUI-Cartesian-chart\\BenchMarkSample\\customdrawing.xaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
31+
"RelativeMoniker": "D:0:0:{F3C894BA-AE5D-49F9-9561-D5526A93AE30}|BenchMarkSample.csproj|solutionrelative:customdrawing.xaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
32+
},
33+
{
34+
"AbsoluteMoniker": "D:0:0:{F3C894BA-AE5D-49F9-9561-D5526A93AE30}|BenchMarkSample.csproj|D:\\KB_Samples\\How-to-add-benchmark-line-in-.NET-MAUI-Cartesian-chart\\BenchMarkSample\\benchmarksample.csproj||{FA3CD31E-987B-443A-9B81-186104E8DAC1}|",
35+
"RelativeMoniker": "D:0:0:{F3C894BA-AE5D-49F9-9561-D5526A93AE30}|BenchMarkSample.csproj|solutionrelative:benchmarksample.csproj||{FA3CD31E-987B-443A-9B81-186104E8DAC1}|"
36+
},
37+
{
38+
"AbsoluteMoniker": "D:0:0:{F3C894BA-AE5D-49F9-9561-D5526A93AE30}|BenchMarkSample.csproj|D:\\KB_Samples\\How-to-add-benchmark-line-in-.NET-MAUI-Cartesian-chart\\BenchMarkSample\\mauiprogram.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
39+
"RelativeMoniker": "D:0:0:{F3C894BA-AE5D-49F9-9561-D5526A93AE30}|BenchMarkSample.csproj|solutionrelative:mauiprogram.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
40+
},
41+
{
42+
"AbsoluteMoniker": "D:0:0:{F3C894BA-AE5D-49F9-9561-D5526A93AE30}|BenchMarkSample.csproj|D:\\KB_Samples\\How-to-add-benchmark-line-in-.NET-MAUI-Cartesian-chart\\BenchMarkSample\\viewmodel.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
43+
"RelativeMoniker": "D:0:0:{F3C894BA-AE5D-49F9-9561-D5526A93AE30}|BenchMarkSample.csproj|solutionrelative:viewmodel.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
44+
},
45+
{
46+
"AbsoluteMoniker": "D:0:0:{F3C894BA-AE5D-49F9-9561-D5526A93AE30}|BenchMarkSample.csproj|D:\\KB_Samples\\How-to-add-benchmark-line-in-.NET-MAUI-Cartesian-chart\\BenchMarkSample\\model.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
47+
"RelativeMoniker": "D:0:0:{F3C894BA-AE5D-49F9-9561-D5526A93AE30}|BenchMarkSample.csproj|solutionrelative:model.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
48+
}
49+
],
50+
"DocumentGroupContainers": [
51+
{
52+
"Orientation": 0,
53+
"VerticalTabListWidth": 256,
54+
"DocumentGroups": [
55+
{
56+
"DockedWidth": 200,
57+
"SelectedChildIndex": 6,
58+
"Children": [
59+
{
60+
"$type": "Bookmark",
61+
"Name": "ST:0:0:{d78612c7-9962-4b83-95d9-268046dad23a}"
62+
},
63+
{
64+
"$type": "Bookmark",
65+
"Name": "ST:0:0:{34e76e81-ee4a-11d0-ae2e-00a0c90fffc3}"
66+
},
67+
{
68+
"$type": "Document",
69+
"DocumentIndex": 2,
70+
"Title": "AppShell.xaml.cs",
71+
"DocumentMoniker": "D:\\KB_Samples\\How-to-add-benchmark-line-in-.NET-MAUI-Cartesian-chart\\BenchMarkSample\\AppShell.xaml.cs",
72+
"RelativeDocumentMoniker": "AppShell.xaml.cs",
73+
"ToolTip": "D:\\KB_Samples\\How-to-add-benchmark-line-in-.NET-MAUI-Cartesian-chart\\BenchMarkSample\\AppShell.xaml.cs",
74+
"RelativeToolTip": "AppShell.xaml.cs",
75+
"ViewState": "AQIAAAAAAAAAAAAAAAAAAAYAAAAMAAAA",
76+
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
77+
"WhenOpened": "2024-06-19T06:10:20.247Z"
78+
},
79+
{
80+
"$type": "Document",
81+
"DocumentIndex": 5,
82+
"Title": "CustomDrawing.xaml",
83+
"DocumentMoniker": "D:\\KB_Samples\\How-to-add-benchmark-line-in-.NET-MAUI-Cartesian-chart\\BenchMarkSample\\CustomDrawing.xaml",
84+
"RelativeDocumentMoniker": "CustomDrawing.xaml",
85+
"ToolTip": "D:\\KB_Samples\\How-to-add-benchmark-line-in-.NET-MAUI-Cartesian-chart\\BenchMarkSample\\CustomDrawing.xaml",
86+
"RelativeToolTip": "CustomDrawing.xaml",
87+
"ViewState": "AQIAAAAAAAAAAAAAAAAAAA4AAACPAAAA",
88+
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003549|",
89+
"WhenOpened": "2024-06-19T05:41:15.386Z"
90+
},
91+
{
92+
"$type": "Document",
93+
"DocumentIndex": 4,
94+
"Title": "MainPage.xaml",
95+
"DocumentMoniker": "D:\\KB_Samples\\How-to-add-benchmark-line-in-.NET-MAUI-Cartesian-chart\\BenchMarkSample\\MainPage.xaml",
96+
"RelativeDocumentMoniker": "MainPage.xaml",
97+
"ToolTip": "D:\\KB_Samples\\How-to-add-benchmark-line-in-.NET-MAUI-Cartesian-chart\\BenchMarkSample\\MainPage.xaml",
98+
"RelativeToolTip": "MainPage.xaml",
99+
"ViewState": "AQIAAAYAAAAAAAAAAAAAAA8AAACTAAAA",
100+
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003549|",
101+
"WhenOpened": "2024-06-05T05:54:44.238Z"
102+
},
103+
{
104+
"$type": "Document",
105+
"DocumentIndex": 1,
106+
"Title": "App.xaml",
107+
"DocumentMoniker": "D:\\KB_Samples\\How-to-add-benchmark-line-in-.NET-MAUI-Cartesian-chart\\BenchMarkSample\\App.xaml",
108+
"RelativeDocumentMoniker": "App.xaml",
109+
"ToolTip": "D:\\KB_Samples\\How-to-add-benchmark-line-in-.NET-MAUI-Cartesian-chart\\BenchMarkSample\\App.xaml",
110+
"RelativeToolTip": "App.xaml",
111+
"ViewState": "AQIAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
112+
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003549|",
113+
"WhenOpened": "2024-06-19T06:05:11.226Z"
114+
},
115+
{
116+
"$type": "Document",
117+
"DocumentIndex": 0,
118+
"Title": "AppShell.xaml",
119+
"DocumentMoniker": "D:\\KB_Samples\\How-to-add-benchmark-line-in-.NET-MAUI-Cartesian-chart\\BenchMarkSample\\AppShell.xaml",
120+
"RelativeDocumentMoniker": "AppShell.xaml",
121+
"ToolTip": "D:\\KB_Samples\\How-to-add-benchmark-line-in-.NET-MAUI-Cartesian-chart\\BenchMarkSample\\AppShell.xaml",
122+
"RelativeToolTip": "AppShell.xaml",
123+
"ViewState": "AQIAAAAAAAAAAAAAAAAAAAoAAAAmAAAA",
124+
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003549|",
125+
"WhenOpened": "2024-06-18T11:34:52.164Z",
126+
"EditorCaption": ""
127+
},
128+
{
129+
"$type": "Document",
130+
"DocumentIndex": 3,
131+
"Title": "MainPage.xaml.cs",
132+
"DocumentMoniker": "D:\\KB_Samples\\How-to-add-benchmark-line-in-.NET-MAUI-Cartesian-chart\\BenchMarkSample\\MainPage.xaml.cs",
133+
"RelativeDocumentMoniker": "MainPage.xaml.cs",
134+
"ToolTip": "D:\\KB_Samples\\How-to-add-benchmark-line-in-.NET-MAUI-Cartesian-chart\\BenchMarkSample\\MainPage.xaml.cs",
135+
"RelativeToolTip": "MainPage.xaml.cs",
136+
"ViewState": "AQIAADEAAAAAAAAAAAAQwDcAAAAAAAAA",
137+
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
138+
"WhenOpened": "2024-06-05T06:02:08.132Z"
139+
},
140+
{
141+
"$type": "Document",
142+
"DocumentIndex": 6,
143+
"Title": "CustomDrawing.xaml.cs",
144+
"DocumentMoniker": "D:\\KB_Samples\\How-to-add-benchmark-line-in-.NET-MAUI-Cartesian-chart\\BenchMarkSample\\CustomDrawing.xaml.cs",
145+
"RelativeDocumentMoniker": "CustomDrawing.xaml.cs",
146+
"ToolTip": "D:\\KB_Samples\\How-to-add-benchmark-line-in-.NET-MAUI-Cartesian-chart\\BenchMarkSample\\CustomDrawing.xaml.cs",
147+
"RelativeToolTip": "CustomDrawing.xaml.cs",
148+
"ViewState": "AQIAACEAAAAAAAAAAAAkwAYAAAAdAAAA",
149+
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
150+
"WhenOpened": "2024-06-19T06:12:56.59Z"
151+
},
152+
{
153+
"$type": "Document",
154+
"DocumentIndex": 7,
155+
"Title": "BenchMarkSample",
156+
"DocumentMoniker": "D:\\KB_Samples\\How-to-add-benchmark-line-in-.NET-MAUI-Cartesian-chart\\BenchMarkSample\\BenchMarkSample.csproj",
157+
"RelativeDocumentMoniker": "BenchMarkSample.csproj",
158+
"ToolTip": "D:\\KB_Samples\\How-to-add-benchmark-line-in-.NET-MAUI-Cartesian-chart\\BenchMarkSample\\BenchMarkSample.csproj",
159+
"RelativeToolTip": "BenchMarkSample.csproj",
160+
"ViewState": "AQIAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
161+
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000758|",
162+
"WhenOpened": "2024-06-19T06:11:36.803Z"
163+
},
164+
{
165+
"$type": "Document",
166+
"DocumentIndex": 8,
167+
"Title": "MauiProgram.cs",
168+
"DocumentMoniker": "D:\\KB_Samples\\How-to-add-benchmark-line-in-.NET-MAUI-Cartesian-chart\\BenchMarkSample\\MauiProgram.cs",
169+
"RelativeDocumentMoniker": "MauiProgram.cs",
170+
"ToolTip": "D:\\KB_Samples\\How-to-add-benchmark-line-in-.NET-MAUI-Cartesian-chart\\BenchMarkSample\\MauiProgram.cs",
171+
"RelativeToolTip": "MauiProgram.cs",
172+
"ViewState": "AQIAAAAAAAAAAAAAAAAAAAEAAAAjAAAA",
173+
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
174+
"WhenOpened": "2024-06-05T05:55:23.967Z"
175+
},
176+
{
177+
"$type": "Document",
178+
"DocumentIndex": 9,
179+
"Title": "ViewModel.cs",
180+
"DocumentMoniker": "D:\\KB_Samples\\How-to-add-benchmark-line-in-.NET-MAUI-Cartesian-chart\\BenchMarkSample\\ViewModel.cs",
181+
"RelativeDocumentMoniker": "ViewModel.cs",
182+
"ToolTip": "D:\\KB_Samples\\How-to-add-benchmark-line-in-.NET-MAUI-Cartesian-chart\\BenchMarkSample\\ViewModel.cs",
183+
"RelativeToolTip": "ViewModel.cs",
184+
"ViewState": "AQIAAAAAAAAAAAAAAAAAABIAAAAJAAAA",
185+
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
186+
"WhenOpened": "2024-06-05T05:50:28.653Z"
187+
},
188+
{
189+
"$type": "Document",
190+
"DocumentIndex": 10,
191+
"Title": "Model.cs",
192+
"DocumentMoniker": "D:\\KB_Samples\\How-to-add-benchmark-line-in-.NET-MAUI-Cartesian-chart\\BenchMarkSample\\Model.cs",
193+
"RelativeDocumentMoniker": "Model.cs",
194+
"ToolTip": "D:\\KB_Samples\\How-to-add-benchmark-line-in-.NET-MAUI-Cartesian-chart\\BenchMarkSample\\Model.cs",
195+
"RelativeToolTip": "Model.cs",
196+
"ViewState": "AQIAAAAAAAAAAAAAAAAAAAsAAAAqAAAA",
197+
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
198+
"WhenOpened": "2024-06-05T05:50:18.662Z"
199+
}
200+
]
201+
}
202+
]
203+
}
204+
]
205+
}

Add benchmark line/Sample/App.xaml renamed to BenchMarkSample/App.xaml

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:Sample"
5-
x:Class="Sample.App">
4+
xmlns:local="clr-namespace:BenchMarkSample"
5+
x:Class="BenchMarkSample.App">
66
<Application.Resources>
77
<ResourceDictionary>
88
<ResourceDictionary.MergedDictionaries>

Add benchmark line/Sample/App.xaml.cs renamed to BenchMarkSample/App.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace Sample
1+
namespace BenchMarkSample
22
{
33
public partial class App : Application
44
{

BenchMarkSample/AppShell.xaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<Shell
3+
x:Class="BenchMarkSample.AppShell"
4+
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
5+
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
6+
xmlns:local="clr-namespace:BenchMarkSample"
7+
Shell.FlyoutBehavior="Flyout"
8+
Title="BenchMarkSample">
9+
10+
<ShellContent
11+
Title="Horizontal Line Annotation" ContentTemplate="{DataTemplate local:MainPage}"
12+
Route="MainPage"/>
13+
<ShellContent Title="Custom Drawing" ContentTemplate="{DataTemplate local:CustomDrawing}"
14+
Route="customDrawing"/>
15+
16+
</Shell>

BenchMarkSample/AppShell.xaml.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
namespace BenchMarkSample
2+
{
3+
public partial class AppShell : Shell
4+
{
5+
public AppShell()
6+
{
7+
InitializeComponent();
8+
9+
Routing.RegisterRoute("default", typeof(MainPage));
10+
Routing.RegisterRoute("customDrawing", typeof(CustomDrawing));
11+
}
12+
}
13+
}

0 commit comments

Comments
 (0)