xaml-sdk/ChartView/WPF/Animations/BarLine.xaml

26 строки
1.5 KiB
XML

<UserControl x:Class="Animations.BarLine"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
xmlns:local="clr-namespace:Animations"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300">
<Grid>
<telerik:RadCartesianChart x:Name="chart" Grid.Row="1" Palette="Flower">
<telerik:RadCartesianChart.HorizontalAxis>
<telerik:CategoricalAxis />
</telerik:RadCartesianChart.HorizontalAxis>
<telerik:RadCartesianChart.VerticalAxis>
<telerik:LinearAxis />
</telerik:RadCartesianChart.VerticalAxis>
<telerik:RadCartesianChart.Series>
<telerik:BarSeries CategoryBinding="XCat" ValueBinding="YVal1" ItemsSource="{Binding}" local:ChartAnimationUtilities.CartesianAnimation="Rise" />
<telerik:LineSeries CategoryBinding="XCat" ValueBinding="YVal2" ItemsSource="{Binding}" local:ChartAnimationUtilities.CartesianAnimation="Stretch" />
</telerik:RadCartesianChart.Series>
</telerik:RadCartesianChart>
<Button HorizontalAlignment="Right" VerticalAlignment="Bottom" Content="run" Click="Button_Click" />
</Grid>
</UserControl>