项目结构调整

This commit is contained in:
艾竹
2023-04-16 20:11:40 +08:00
parent cbfbf96033
commit 81f91f3f35
2124 changed files with 218 additions and 5516 deletions

View File

@@ -0,0 +1,14 @@
<Page
x:Class="UWP.CartesianChart.Irregular_Intervals.IrregularIntervalsExample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:UWP.CartesianChart.Irregular_Intervals"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:lvc="using:LiveCharts.Uwp"
mc:Ignorable="d">
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<lvc:CartesianChart Series="{Binding SeriesCollection}"/>
</Grid>
</Page>

View File

@@ -0,0 +1,64 @@
using LiveCharts;
using LiveCharts.Defaults;
using LiveCharts.Uwp;
using Windows.UI.Xaml.Controls;
// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238
namespace UWP.CartesianChart.Irregular_Intervals
{
/// <summary>
/// An empty page that can be used on its own or navigated to within a Frame.
/// </summary>
public sealed partial class IrregularIntervalsExample : Page
{
public IrregularIntervalsExample()
{
InitializeComponent();
SeriesCollection = new SeriesCollection
{
new LineSeries
{
Values = new ChartValues<ObservablePoint>
{
new ObservablePoint(0, 10),
new ObservablePoint(4, 7),
new ObservablePoint(5, 3),
new ObservablePoint(7, 6),
new ObservablePoint(10, 8)
},
PointGeometrySize = 15
},
new LineSeries
{
Values = new ChartValues<ObservablePoint>
{
new ObservablePoint(0, 2),
new ObservablePoint(2, 5),
new ObservablePoint(3, 6),
new ObservablePoint(6, 8),
new ObservablePoint(10, 5)
},
PointGeometrySize = 15
},
new LineSeries
{
Values = new ChartValues<ObservablePoint>
{
new ObservablePoint(0, 4),
new ObservablePoint(5, 5),
new ObservablePoint(7, 7),
new ObservablePoint(9, 10),
new ObservablePoint(10, 9)
},
PointGeometrySize = 15
}
};
DataContext = this;
}
public SeriesCollection SeriesCollection { get; set; }
}
}