mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-07 18:20:51 +08:00
28 lines
1.2 KiB
XML
28 lines
1.2 KiB
XML
<Page
|
|
x:Class="UWP.CartesianChart.Financial.CandleStickExample"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:local="using:UWP.CartesianChart.Financial"
|
|
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}">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"></RowDefinition>
|
|
<RowDefinition Height="30"></RowDefinition>
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Grid.Row="0">
|
|
<Bold>New in 0.7.0</Bold> Financial series
|
|
</TextBlock>
|
|
<Button Grid.Row="1" Click="UpdateAllOnClick">Update Open and Close</Button>
|
|
<lvc:CartesianChart Grid.Row="2" Series="{Binding SeriesCollection}">
|
|
<lvc:CartesianChart.AxisX>
|
|
<lvc:Axis Labels="{Binding Labels}"/>
|
|
</lvc:CartesianChart.AxisX>
|
|
</lvc:CartesianChart>
|
|
</Grid>
|
|
</Page>
|