WPF使用Live Chart之动态更新数据
效果如下:

前台代码:
<Window x:Class="Chapter3.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:Chapter3"
xmlns:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf"
mc:Ignorable="d"
Title="Matrix OPeration" Height="400" Width="500">
<Grid>
<!--<Button Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Center" Content="显示" Click="Button_Click"/>-->
<lvc:CartesianChart Name="sl" Grid.Row="1" Series="{Binding SeriesCollection}

最低0.47元/天 解锁文章
6663

被折叠的 条评论
为什么被折叠?



