Skip to content

Commit 881d949

Browse files
committed
V1.5.0 Released.
1 parent 71cb7c6 commit 881d949

File tree

143 files changed

+14176
-1187
lines changed

Some content is hidden

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

143 files changed

+14176
-1187
lines changed
Binary file not shown.
3.35 MB
Binary file not shown.
390 KB
Binary file not shown.
Binary file not shown.
1.8 KB
Binary file not shown.
37.5 KB
Binary file not shown.

Toolkit/Src/Xceed.Maui.Toolkit.LiveExplorer/AppShell.xaml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,29 @@
2222
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
2323
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
2424
xmlns:local="clr-namespace:Xceed.Maui.Toolkit.LiveExplorer"
25-
Shell.FlyoutBehavior="Disabled">
26-
<TabBar>
25+
Shell.FlyoutBehavior="Disabled"
26+
BackgroundColor="White">
27+
<Shell.TitleView>
28+
<Grid Margin="2">
29+
<Label Text="{Binding Title}"
30+
FontSize="{OnPlatform Android=20, iOS=20, Default=30}"
31+
BindingContext="{Binding CurrentItem, Source={x:Reference NavigationBar}}" />
32+
<Label x:Name="VersionLabel"
33+
HorizontalOptions="End" />
34+
</Grid>
35+
</Shell.TitleView>
36+
37+
<TabBar x:Name="NavigationBar">
2738
<ShellContent Title="Xceed Toolkit for .NET MAUI"
2839
ContentTemplate="{DataTemplate local:MainPage}"
2940
Route="MainPage" />
3041

42+
<ShellContent Title="Chart Control"
43+
ContentTemplate="{DataTemplate local:ChartPage}"
44+
Route="ChartPage" />
45+
3146
<ShellContent Title="About Xceed"
3247
ContentTemplate="{DataTemplate local:AboutXceedPage}"
33-
Route="AboutXceedPage" />
34-
</TabBar>
48+
Route="AboutXceedPage" />
49+
</TabBar>
3550
</Shell>

Toolkit/Src/Xceed.Maui.Toolkit.LiveExplorer/AppShell.xaml.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,18 @@ the use or inability to use the code.
1616
*************************************************************************************/
1717

1818

19+
using System.Reflection;
20+
1921
namespace Xceed.Maui.Toolkit.LiveExplorer
2022
{
2123
public partial class AppShell : Shell
2224
{
2325
public AppShell()
2426
{
2527
InitializeComponent();
28+
29+
var version = Assembly.GetExecutingAssembly().GetName().Version;
30+
VersionLabel.Text = "v" + version.Major + "." + version.Minor;
2631
}
2732
}
2833
}
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<!--
3+
/***************************************************************************************
4+
5+
Xceed Toolkit for MAUI is a multiplatform toolkit offered by Xceed Software Inc.,
6+
makers of the popular WPF Toolkit.
7+
8+
COPYRIGHT (C) 2023 Xceed Software Inc. ALL RIGHTS RESERVED.
9+
10+
This program is provided to you under the terms of a Xceed Community License
11+
For more details about the Xceed Community License please visit the products GitHub or NuGet page .
12+
13+
DISCLAIMER: This code is provided as-is and without warranty of any kind, express or implied. The
14+
author(s) and owner(s) of this code shall not be liable for any damages or losses resulting from
15+
the use or inability to use the code.
16+
17+
18+
*************************************************************************************/
19+
-->
20+
21+
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
22+
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
23+
x:Class="Xceed.Maui.Toolkit.LiveExplorer.ChartPage"
24+
xmlns:xctk="http://schemas.xceed.com/maui/xaml/toolkit"
25+
Title="ChartPage">
26+
<Grid>
27+
<Grid.RowDefinitions>
28+
<RowDefinition Height="Auto" />
29+
<RowDefinition Height="*" />
30+
</Grid.RowDefinitions>
31+
32+
<StackLayout Orientation="Horizontal">
33+
<xctk:Button x:Name="AddPointButton"
34+
Content="Add Data Point"
35+
Clicked="AddPointButton_Clicked"
36+
Margin="8" />
37+
38+
<xctk:Button x:Name="ChangeChartButton"
39+
Content="Add Bar Chart"
40+
Clicked="ChangeChartButton_Clicked"
41+
Margin="8"/>
42+
</StackLayout>
43+
44+
<xctk:Chart x:Name="MyChart"
45+
Grid.Row="1">
46+
<xctk:Chart.HorizontalAxis>
47+
<xctk:Axis TickLabelType="Text" />
48+
</xctk:Chart.HorizontalAxis>
49+
<xctk:Chart.Series>
50+
<xctk:Series x:Name="FirstSeries">
51+
<xctk:Series.DataPoints>
52+
<xctk:DataPoint Text="0"
53+
Y="44" />
54+
<xctk:DataPoint Text="1"
55+
Y="64" />
56+
<xctk:DataPoint Text="2"
57+
Y="60" />
58+
<xctk:DataPoint Text="3"
59+
Y="32" />
60+
<xctk:DataPoint Text="4"
61+
Y="52" />
62+
<xctk:DataPoint Text="5"
63+
Y="72" />
64+
<xctk:DataPoint Text="6"
65+
Y="32" />
66+
</xctk:Series.DataPoints>
67+
</xctk:Series>
68+
<xctk:Series>
69+
<xctk:Series.DataPoints>
70+
<xctk:DataPoint Text="0"
71+
Y="56" />
72+
<xctk:DataPoint Text="1"
73+
Y="32" />
74+
<xctk:DataPoint Text="2"
75+
Y="42" />
76+
<xctk:DataPoint Text="3"
77+
Y="58" />
78+
<xctk:DataPoint Text="4"
79+
Y="41" />
80+
<xctk:DataPoint Text="5"
81+
Y="68" />
82+
<xctk:DataPoint Text="6"
83+
Y="39" />
84+
</xctk:Series.DataPoints>
85+
</xctk:Series>
86+
<xctk:Series>
87+
<xctk:Series.DataPoints>
88+
<xctk:DataPoint Text="0"
89+
Y="36" />
90+
<xctk:DataPoint Text="1"
91+
Y="42" />
92+
<xctk:DataPoint Text="2"
93+
Y="52" />
94+
<xctk:DataPoint Text="3"
95+
Y="28" />
96+
<xctk:DataPoint Text="4"
97+
Y="31" />
98+
<xctk:DataPoint Text="5"
99+
Y="78" />
100+
<xctk:DataPoint Text="6"
101+
Y="29" />
102+
</xctk:Series.DataPoints>
103+
</xctk:Series>
104+
</xctk:Chart.Series>
105+
</xctk:Chart>
106+
</Grid>
107+
</ContentPage>
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
/***************************************************************************************
2+
3+
Xceed Toolkit for MAUI is a multiplatform toolkit offered by Xceed Software Inc.,
4+
makers of the popular WPF Toolkit.
5+
6+
COPYRIGHT (C) 2023 Xceed Software Inc. ALL RIGHTS RESERVED.
7+
8+
This program is provided to you under the terms of a Xceed Community License
9+
For more details about the Xceed Community License please visit the products GitHub or NuGet page .
10+
11+
DISCLAIMER: This code is provided as-is and without warranty of any kind, express or implied. The
12+
author(s) and owner(s) of this code shall not be liable for any damages or losses resulting from
13+
the use or inability to use the code.
14+
15+
16+
*************************************************************************************/
17+
18+
19+
namespace Xceed.Maui.Toolkit.LiveExplorer;
20+
21+
public partial class ChartPage : ContentPage
22+
{
23+
public ChartPage()
24+
{
25+
InitializeComponent();
26+
}
27+
28+
Random _random = new Random();
29+
private void AddPointButton_Clicked(object sender, EventArgs e)
30+
{
31+
var randomSeries = _random.Next(0, MyChart.Series.Count);
32+
33+
// Create a new DataPoint object
34+
DataPoint myDataPoint = new DataPoint()
35+
{
36+
Y = _random.Next(30, 70),
37+
Text = MyChart.Series[randomSeries].DataPoints.Count.ToString()
38+
};
39+
40+
MyChart.Series[randomSeries].DataPoints.Add(myDataPoint);
41+
42+
System.Diagnostics.Debug.WriteLine($"my series has {FirstSeries.DataPoints.Count.ToString()} points");
43+
}
44+
45+
private void ChangeChartButton_Clicked(object sender, EventArgs e)
46+
{
47+
FirstSeries.Renderer = new BarRenderer();
48+
49+
//foreach (Series series in MyChart.Series)
50+
//{
51+
// series.Renderer = new BarRenderer();
52+
//}
53+
}
54+
55+
}

0 commit comments

Comments
 (0)