项目结构调整

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,20 @@
<Page
x:Class="UWP.CartesianChart.StepLine.StepLineExample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:UWP.CartesianChart.StepLine"
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>
<lvc:CartesianChart.Series>
<lvc:StepLineSeries Values="{x:Bind ChartValues1}"/>
<lvc:StepLineSeries Values="{x:Bind ChartValues2}" AlternativeStroke="Transparent"
PointGeometry="{x:Null}" StrokeThickness="3"/>
</lvc:CartesianChart.Series>
</lvc:CartesianChart>
</Grid>
</Page>

View File

@@ -0,0 +1,21 @@
using LiveCharts;
using Windows.UI.Xaml.Controls;
// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238
namespace UWP.CartesianChart.StepLine
{
/// <summary>
/// An empty page that can be used on its own or navigated to within a Frame.
/// </summary>
public sealed partial class StepLineExample : Page
{
public StepLineExample()
{
this.InitializeComponent();
}
public IChartValues ChartValues1 { get; set; } = new ChartValues<int>(new int[] { 9, 6, 5, 7, 8, 9, 7, 6, 7, 5 });
public IChartValues ChartValues2 { get; set; } = new ChartValues<int>(new int[] { 1, 4, 3, 1, 4, 2, 1, 2, 3, 5 });
}
}