资源简介
WPF图表控件,Visifire破解版,去除试用版字样,包含源代码
代码片段和文件信息
/*
Copyright (C) 2008 Webyog Softworks Private Limited
This file is a part of Visifire Charts.
Visifire is a free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation either version 3 of the License or
(at your option) any later version.
You should have received a copy of the GNU General Public License
along with Visifire Charts. If not see .
If GPL is not suitable for your products or company Webyog provides Visifire
under a flexible commercial license designed to meet your specific usage and
distribution requirements. If you have already obtained a commercial license
from Webyog you can use this file under those license terms.
*/
using System;
using System.Windows;
using System.Linq;
using System.Windows.Controls;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Collections.Generic;
using Visifire.Charts;
namespace Visifire.Commons
{
///
/// Visifire.Commons.Animationhelper class
///
internal class Animationhelper
{
#region Public Methods
public static void ApplyScaleAnimation(ScaleDirection direction Storyboard storyBoard frameworkElement element Double from Double to TimeSpan duration TimeSpan beginTime Boolean applyFromValueInitially)
{
if (storyBoard == null)
storyBoard = new Storyboard();
if (element.RenderTransform == null || !element.RenderTransform.GetType().Equals(typeof(ScaleTransform)))
element.RenderTransform = new ScaleTransform();
if (applyFromValueInitially)
{
if (direction == ScaleDirection.ScaleX)
(element.RenderTransform as ScaleTransform).ScaleX = from;
else
(element.RenderTransform as ScaleTransform).ScaleY = from;
}
DoubleAnimation da = new DoubleAnimation()
{
From = from
To = to
Duration = new Duration(duration)
BeginTime = beginTime
SpeedRatio = 2
};
Transform transform = element.RenderTransform;
String property = (direction == ScaleDirection.ScaleX) ? “(ScaleTransform.ScaleX)“ : “(ScaleTransform.ScaleY)“;
Storyboard.SetTarget(da transform);
Storyboard.SetTargetProperty(da new PropertyPath(property));
Storyboard.SetTargetName(da (String)element.GetValue(frameworkElement.NameProperty));
#if WPF
if(direction == ScaleDirection.ScaleX)
transform.BeginAnimation(ScaleTransform.ScaleXProperty da);
else
transform.BeginAnimation(ScaleTransform.ScaleYProper
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-05-07 11:38 visifire-master\
目录 0 2018-05-07 11:38 visifire-master\Common\
文件 17543 2015-05-05 10:20 visifire-master\Common\Animation
文件 206229 2015-05-05 10:20 visifire-master\Common\AreaChart.cs
文件 258698 2015-05-05 10:20 visifire-master\Common\Axis.cs
文件 26681 2015-05-05 10:20 visifire-master\Common\AxisLabel.cs
文件 110455 2015-05-05 10:20 visifire-master\Common\AxisLabels.cs
文件 29721 2015-05-05 10:20 visifire-master\Common\AxisManager.cs
文件 1596 2015-05-05 10:20 visifire-master\Common\AxisScrollEventArgs.cs
文件 2017 2015-05-05 10:20 visifire-master\Common\AxisZoomEventArgs.cs
文件 54782 2015-05-05 10:20 visifire-master\Common\BarChart.cs
文件 5238 2015-05-05 10:20 visifire-master\Common\Bezire.cs
文件 48765 2015-05-05 10:20 visifire-master\Common\BubbleChart.cs
文件 47045 2015-05-05 10:20 visifire-master\Common\CandleStickChart.cs
文件 307270 2015-05-05 10:20 visifire-master\Common\ChartArea.cs
文件 44191 2015-05-05 10:20 visifire-master\Common\ChartGrid.cs
文件 18385 2015-05-05 10:20 visifire-master\Common\CircularAxis.cs
文件 2356 2015-05-05 10:20 visifire-master\Common\CircularAxisLabel.cs
文件 7336 2015-05-05 10:20 visifire-master\Common\CircularPlotDetails.cs
文件 2927 2015-05-05 10:20 visifire-master\Common\Collections.cs
文件 1463 2015-05-05 10:20 visifire-master\Common\ColorSet.cs
文件 1657 2015-05-05 10:20 visifire-master\Common\ColorSets.cs
文件 152347 2015-05-05 10:20 visifire-master\Common\ColumnChart.cs
目录 0 2018-05-07 11:38 visifire-master\Common\Controls\
文件 4039 2015-05-05 10:20 visifire-master\Common\Controls\WeakEventListener.cs
文件 51029 2015-05-05 10:20 visifire-master\Common\Controls\ZoomBar.cs
文件 13558 2015-05-05 10:20 visifire-master\Common\Converters.cs
文件 25623 2015-05-05 10:20 visifire-master\Common\CustomAxisLabel.cs
文件 82991 2015-05-05 10:20 visifire-master\Common\CustomAxisLabels.cs
文件 5737 2015-05-05 10:20 visifire-master\Common\DataMapping.cs
文件 197004 2015-05-05 10:20 visifire-master\Common\DataPoint.cs
............此处省略1480个文件信息
相关资源
- Professional WPF Programming WPF高级编程 高
- WPF各种动画效果例子252069
- 超级棒的开源WPF动画效果
- C#高级编程(第11版) 附随书编码24
- MahApps.Metro源码WPF开源控件库
- WPF版学员管理系统
- 一个简单的WPF系统框架
- WPF C1Chart Demo
- wpf 适用windows系统触屏的手写识别
- WPF编程宝典 WPF编程(第二版)
- CefSharp63 WPF 支持mp3、mp4、flansh、anyc
- VLCTest.rar
- WPF 编程宝典第四版(.NET4.5)
- WPF比较多
- WPF全视角分析
- WPF 编程宝典-使用C# 2012和.NET 4.5 (第
- WPF 4.5 unleashed 最新版电子书
- C#基于MVC+EasyUI+ECharts后台管理系统完整
- wpf编程宝典完整PDF版 part2
- wpf写一个日历
- c# wpf图片左右滑动的
- WPF Blend开发教程
- 后台维护系统WPF附带SQL Server数据库和
- WPF旅游管理系统增删改查实用
- 海康威视wpf客户端1-实时预览
- WpfVLC-master.rar
- 免费DataGridView打印及.NET轻松打印控件
- 在wpf中使用Vlc 播放 rtsp视频流
- 深入浅出WPF(中文版)
- 《深入浅出 WPF》刘铁猛高清版
评论
共有 条评论