зеркало из https://github.com/telerik/xaml-sdk.git
35 строки
1006 B
C#
35 строки
1006 B
C#
using System.Windows;
|
|
using System.Windows.Controls;
|
|
|
|
namespace Animations
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for StackedBars.xaml
|
|
/// </summary>
|
|
public partial class StackedBars : UserControl
|
|
{
|
|
public StackedBars()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void Button_Click(object sender, RoutedEventArgs e)
|
|
{
|
|
foreach (var series in this.chart.Series)
|
|
{
|
|
ChartAnimationUtilities.SetCartesianAnimation(series, CartesianAnimation.DropWithDelay);
|
|
}
|
|
ChartAnimationUtilities.DispatchRunAnimations(this.chart);
|
|
}
|
|
|
|
private void Button2_Click(object sender, RoutedEventArgs e)
|
|
{
|
|
foreach (var series in this.chart.Series)
|
|
{
|
|
ChartAnimationUtilities.SetCartesianAnimation(series, CartesianAnimation.StackedBars);
|
|
}
|
|
ChartAnimationUtilities.DispatchRunAnimations(this.chart);
|
|
}
|
|
}
|
|
}
|