mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-05 08:46:34 +08:00
项目结构调整
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<Page
|
||||
x:Class="UWP.CartesianChart.Inverted_Series.InvertedExample"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:UWP.CartesianChart.Inverted_Series"
|
||||
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:RowSeries Values="{Binding Values2}" Canvas.ZIndex="1"/>
|
||||
<lvc:VerticalLineSeries Values="{Binding Values1}" Canvas.ZIndex="0"/>
|
||||
</lvc:CartesianChart.Series>
|
||||
<lvc:CartesianChart.AxisY>
|
||||
<lvc:Axis>
|
||||
<lvc:Axis.Separator>
|
||||
<lvc:Separator Step="1"></lvc:Separator>
|
||||
</lvc:Axis.Separator>
|
||||
</lvc:Axis>
|
||||
</lvc:CartesianChart.AxisY>
|
||||
<lvc:CartesianChart.AxisX>
|
||||
<lvc:Axis MinValue="0"></lvc:Axis>
|
||||
</lvc:CartesianChart.AxisX>
|
||||
<lvc:CartesianChart.DataTooltip>
|
||||
<lvc:DefaultTooltip SelectionMode="SharedYValues"></lvc:DefaultTooltip>
|
||||
</lvc:CartesianChart.DataTooltip>
|
||||
</lvc:CartesianChart>
|
||||
</Grid>
|
||||
</Page>
|
||||
@@ -0,0 +1,27 @@
|
||||
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.Inverted_Series
|
||||
{
|
||||
/// <summary>
|
||||
/// An empty page that can be used on its own or navigated to within a Frame.
|
||||
/// </summary>
|
||||
public sealed partial class InvertedExample : Page
|
||||
{
|
||||
public InvertedExample()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
Values1 = new ChartValues<double> { 3, 5, 2, 6, 2, 7, 1 };
|
||||
|
||||
Values2 = new ChartValues<double> { 6, 2, 6, 3, 2, 7, 2 };
|
||||
|
||||
DataContext = this;
|
||||
}
|
||||
|
||||
public ChartValues<double> Values1 { get; set; }
|
||||
public ChartValues<double> Values2 { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user