Skip to content

Commit 7a7bf42

Browse files
committed
Changed project file
1 parent c357f9c commit 7a7bf42

Some content is hidden

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

80 files changed

+231
-208
lines changed

Dow30.sln

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

Dow30/Platforms/Android/MainActivity.cs

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

Dow30/ViewModel/DowViewModel.cs

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

MarketCap.sln

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.11.35303.130
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MarketCap", "MarketCap\MarketCap.csproj", "{656EBEEF-D57A-439E-88BD-2C81A9D8AB2B}"
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+
{656EBEEF-D57A-439E-88BD-2C81A9D8AB2B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{656EBEEF-D57A-439E-88BD-2C81A9D8AB2B}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{656EBEEF-D57A-439E-88BD-2C81A9D8AB2B}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
17+
{656EBEEF-D57A-439E-88BD-2C81A9D8AB2B}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{656EBEEF-D57A-439E-88BD-2C81A9D8AB2B}.Release|Any CPU.Build.0 = Release|Any CPU
19+
{656EBEEF-D57A-439E-88BD-2C81A9D8AB2B}.Release|Any CPU.Deploy.0 = Release|Any CPU
20+
EndGlobalSection
21+
GlobalSection(SolutionProperties) = preSolution
22+
HideSolutionNode = FALSE
23+
EndGlobalSection
24+
GlobalSection(ExtensibilityGlobals) = postSolution
25+
SolutionGuid = {0714E7C7-5290-45B6-BC11-E0EF41C9A7E0}
26+
EndGlobalSection
27+
EndGlobal

Dow30/App.xaml renamed to MarketCap/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:Dow30"
5-
x:Class="Dow30.App">
4+
xmlns:local="clr-namespace:MarketCap"
5+
x:Class="MarketCap.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 Dow30
1+
namespace MarketCap
22
{
33
public partial class App : Application
44
{
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
22
<Shell
3-
x:Class="Dow30.AppShell"
3+
x:Class="MarketCap.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:Dow30"
6+
xmlns:local="clr-namespace:MarketCap"
77
Shell.FlyoutBehavior="Disabled"
8-
Title="Dow30">
8+
Title="MarketCap">
99

1010
<ShellContent
1111
Title="Home"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace Dow30
1+
namespace MarketCap
22
{
33
public partial class AppShell : Shell
44
{
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
33
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
44
xmlns:chart="clr-namespace:Syncfusion.Maui.Charts;assembly=Syncfusion.Maui.Charts"
5-
xmlns:model="clr-namespace:Dow30"
6-
x:Class="Dow30.MainPage">
5+
xmlns:model="clr-namespace:MarketCap"
6+
x:Class="MarketCap.MainPage">
77

88
<Border Margin="25" Padding="{OnPlatform Default=8, Android=7,iOS=7}" StrokeThickness="3" Stroke="Gray" StrokeShape="RoundRectangle 15">
99
<chart:SfCartesianChart HorizontalOptions="Fill" VerticalOptions="FillAndExpand" >
@@ -35,7 +35,7 @@
3535
</chart:SfCartesianChart.Title>
3636

3737
<chart:SfCartesianChart.BindingContext>
38-
<model:DowJonesViewModel/>
38+
<model:MarketCapViewModel/>
3939
</chart:SfCartesianChart.BindingContext>
4040

4141
<chart:SfCartesianChart.TooltipBehavior>
@@ -77,7 +77,7 @@
7777

7878
<model:BubbleExt XBindingPath="Gdp" MaximumRadius="{OnPlatform Android=28, Default=50, iOS=28}" MinimumRadius="5" EnableTooltip="True"
7979
YBindingPath="Company" SizeValuePath="Size" Stroke="Black" StrokeWidth="2"
80-
ItemsSource="{Binding DowData}"
80+
ItemsSource="{Binding MarketCapData}"
8181
EnableAnimation="True">
8282

8383
<chart:BubbleSeries.TooltipTemplate>
@@ -93,7 +93,7 @@
9393
</Grid.ColumnDefinitions>
9494
<Grid Grid.Row="0" Grid.Column="0" Margin="3,5,10,3">
9595
<HorizontalStackLayout HorizontalOptions="Center">
96-
96+
9797
<Label Text="{Binding Item.Name}" FontSize="18" TextColor="White" HorizontalTextAlignment="Center" Margin="0,0,0,0"/>
9898
</HorizontalStackLayout>
9999
</Grid>
Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
using Syncfusion.Maui.Charts;
1+
using Syncfusion.Maui.Charts;
22

3-
namespace Dow30
3+
namespace MarketCap
44
{
55
public partial class MainPage : ContentPage
66
{
7+
78
public MainPage()
89
{
910
InitializeComponent();
@@ -18,6 +19,7 @@ private void OnLabelCreated(object sender, Syncfusion.Maui.Charts.ChartAxisLabel
1819
}
1920
}
2021
}
22+
2123
public class BubbleExt : BubbleSeries
2224
{
2325
protected override ChartSegment CreateSegment()
@@ -26,22 +28,22 @@ protected override ChartSegment CreateSegment()
2628
}
2729

2830
}
29-
public class BubbleSegmentExt: BubbleSegment
31+
public class BubbleSegmentExt : BubbleSegment
3032
{
3133
protected override void Draw(ICanvas canvas)
3234
{
33-
base.Draw(canvas);
35+
base.Draw(canvas);
3436

35-
if (Series is BubbleExt && Series.BindingContext is DowJonesViewModel viewModel)
37+
if (Series is BubbleExt && Series.BindingContext is MarketCapViewModel viewModel)
3638
{
3739

3840
float imageX = CenterX - (Radius / 2);
3941
float imageY = CenterY - (Radius / 2);
4042

4143
float diameter = Radius * 2; // Since radius is half of the diameter
42-
canvas.DrawImage(viewModel.DowData[Index].ImageIcon, CenterX - Radius, CenterY - Radius, diameter, diameter);
43-
44+
canvas.DrawImage(viewModel.MarketCapData[Index].ImageIcon, CenterX - Radius, CenterY - Radius, diameter, diameter);
4445
}
4546
}
4647
}
48+
4749
}

0 commit comments

Comments
 (0)