本文整理汇总了C#中Freezable类的典型用法代码示例。如果您正苦于以下问题:C# Freezable类的具体用法?C# Freezable怎么用?C# Freezable使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Freezable类属于命名空间,在下文中一共展示了Freezable类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CopyCore
protected override void CopyCore(Freezable sourceFreezable)
{
base.CopyCore(sourceFreezable);
sourceFreezable.SetValue(ByProperty, GetValue(ByProperty));
sourceFreezable.SetValue(FromProperty, GetValue(FromProperty));
sourceFreezable.SetValue(ToProperty, GetValue(ToProperty));
}
示例2: CopyCore
protected override void CopyCore(Freezable sourceFreezable)
{
base.CopyCore(sourceFreezable);
if (_children == null)
{
return;
}
foreach (Timeline childTimeline in _children)
{
((TimelineGroup)sourceFreezable).Children.Add(childTimeline.Copy());
}
}
示例3: CopyCore
protected override void CopyCore(Freezable sourceFreezable)
{
base.CopyCore(sourceFreezable);
Timeline sourceTimeline = (Timeline)sourceFreezable;
sourceTimeline._accelerationRatio = _accelerationRatio;
sourceTimeline._beginTime = _beginTime;
sourceTimeline._cutoffTime = _cutoffTime;
sourceTimeline._decelerationRatio = _decelerationRatio;
sourceTimeline._duration = _duration;
sourceTimeline._fillBehavior = _fillBehavior;
sourceTimeline._isAutoReverse = _isAutoReverse;
sourceTimeline._name = _name;
sourceTimeline._repeatBehavior = _repeatBehavior;
sourceTimeline._speedRatio = _speedRatio;
}
示例4: CloneCurrentValueCore
protected override void CloneCurrentValueCore(Freezable sourceFreezable)
{
InteropBitmap sourceBitmapSource = (InteropBitmap)sourceFreezable;
base.CloneCurrentValueCore(sourceFreezable);
CopyCommon(sourceBitmapSource);
}
示例5: CloneCurrentValueCore
/// <summary>
/// Implementation of <see cref="System.Windows.Freezable.CloneCurrentValueCore(Freezable)">Freezable.CloneCurrentValueCore</see>.
/// </summary>
protected override void CloneCurrentValueCore(Freezable sourceFreezable)
{
BitmapSource sourceBitmap = (BitmapSource)sourceFreezable;
base.CloneCurrentValueCore(sourceFreezable);
CopyCommon(sourceBitmap);
}
示例6: GetAsFrozenCore
/// <summary>
/// Implementation of <see cref="System.Windows.Freezable.GetAsFrozenCore(Freezable)">Freezable.GetAsFrozenCore</see>.
/// </summary>
protected override void GetAsFrozenCore(Freezable sourceFreezable)
{
BitmapFrameDecode sourceBitmapFrameDecode = (BitmapFrameDecode)sourceFreezable;
base.GetAsFrozenCore(sourceFreezable);
CopyCommon(sourceBitmapFrameDecode);
}
示例7: CloneCore
/// <summary>
/// Implementation of <see cref="System.Windows.Freezable.CloneCore(System.Windows.Freezable)">Freezable.CloneCore</see>.
/// </summary>
protected override void CloneCore(Freezable sourceFreezable)
{
BooleanKeyFrameCollection sourceCollection = (BooleanKeyFrameCollection) sourceFreezable;
base.CloneCore(sourceFreezable);
int count = sourceCollection._keyFrames.Count;
_keyFrames = new List< BooleanKeyFrame>(count);
for (int i = 0; i < count; i++)
{
BooleanKeyFrame keyFrame = (BooleanKeyFrame)sourceCollection._keyFrames[i].Clone();
_keyFrames.Add(keyFrame);
OnFreezablePropertyChanged(null, keyFrame);
}
}
示例8: GetCurrentValueAsFrozenCore
/// <summary>
/// Implementation of <see cref="System.Windows.Freezable.GetCurrentValueAsFrozenCore(Freezable)">Freezable.GetCurrentValueAsFrozenCore</see>.
/// </summary>
/// <param name="sourceFreezable"></param>
protected override void GetCurrentValueAsFrozenCore(Freezable sourceFreezable)
{
GeneralTransform3DTo2D transform = (GeneralTransform3DTo2D)sourceFreezable;
base.GetCurrentValueAsFrozenCore(sourceFreezable);
CopyCommon(transform);
}
示例9: GetAsFrozenCore
/// <summary>
/// Implementation of <see cref="System.Windows.Freezable.GetAsFrozenCore(Freezable)">Freezable.GetAsFrozenCore</see>.
/// </summary>
/// <param name="sourceFreezable"></param>
protected override void GetAsFrozenCore(Freezable sourceFreezable)
{
GeneralTransform2DTo3D transform = (GeneralTransform2DTo3D)sourceFreezable;
base.GetAsFrozenCore(sourceFreezable);
CopyCommon(transform);
}
示例10: Freeze
protected static bool Freeze(Freezable freezable,
bool isChecking)
{
throw new NotImplementedException ();
}
示例11: CloneCore
/// <summary>
/// Implementation of <see cref="System.Windows.Freezable.CloneCore(System.Windows.Freezable)">Freezable.CloneCore</see>.
/// </summary>
/// <param name="sourceFreezable">The KeySpline to copy.</param>
protected override void CloneCore(Freezable sourceFreezable)
{
KeySpline sourceKeySpline = (KeySpline) sourceFreezable;
base.CloneCore(sourceFreezable);
CloneCommon(sourceKeySpline);
}
示例12: TryCacheFreezable
internal bool TryCacheFreezable(string value, Freezable freezable)
{
if (FreezeFreezables)
{
if (freezable.CanFreeze)
{
if (!freezable.IsFrozen)
{
freezable.Freeze();
}
if (_freezeCache == null)
{
_freezeCache = new Dictionary<string, Freezable>();
}
_freezeCache.Add(value, freezable);
return true;
}
}
return false;
}
示例13:
bool IFreezeFreezables.TryFreeze(string value, Freezable freezable)
{
// We don't check FreezeFreezables since this is used only by the BrushBinary deserializer inter----ly
// It will check FreezeFreezables.
if (freezable.CanFreeze)
{
if (!freezable.IsFrozen)
{
freezable.Freeze();
}
if (_freezeCache == null)
{
_freezeCache = new Dictionary<string, Freezable>();
}
_freezeCache.Add(value, freezable);
return true;
}
return false;
}
示例14: CloneCore
/// <summary>
/// Makes the instance a clone (deep copy) of the specified <see cref="Freezable"/>
/// using base (non-animated) property values.
/// </summary>
/// <param name="sourceFreezable">
/// The object to clone.
/// </param>
protected override sealed void CloneCore(Freezable sourceFreezable)
{
base.CloneCore(sourceFreezable);
}
示例15: GetAsFrozenCore
protected override void GetAsFrozenCore(Freezable sourceFreezable)
{
InteropBitmap sourceBitmapSource = (InteropBitmap)sourceFreezable;
base.GetAsFrozenCore(sourceFreezable);
CopyCommon(sourceBitmapSource);
}