mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-18 23:46:37 +08:00
项目结构调整
This commit is contained in:
@@ -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>
|
||||
@@ -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 });
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user