当前位置: 首页>>代码示例>>C#>>正文


C# Freezable类代码示例

本文整理汇总了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));
    }
开发者ID:npcomplete111,项目名称:MediaPortal-1,代码行数:8,代码来源:DoubleAnimation.cs

示例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());
      }
    }
开发者ID:npcomplete111,项目名称:MediaPortal-1,代码行数:14,代码来源:TimelineGroup.cs

示例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;
    }
开发者ID:npcomplete111,项目名称:MediaPortal-1,代码行数:17,代码来源:Timeline.cs

示例4: CloneCurrentValueCore

        protected override void CloneCurrentValueCore(Freezable sourceFreezable)
        {
            InteropBitmap sourceBitmapSource = (InteropBitmap)sourceFreezable;

            base.CloneCurrentValueCore(sourceFreezable);

            CopyCommon(sourceBitmapSource);
        }
开发者ID:JianwenSun,项目名称:cc,代码行数:8,代码来源:InteropBitmapSource.cs

示例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);
        }
开发者ID:nlh774,项目名称:DotNetReferenceSource,代码行数:10,代码来源:BitmapSource.cs

示例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);
        }
开发者ID:sjyanxin,项目名称:WPFSource,代码行数:10,代码来源:BitmapFrameDecode.cs

示例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);
            }
        }
开发者ID:JianwenSun,项目名称:cc,代码行数:19,代码来源:BooleanKeyFrameCollection.cs

示例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);
 }
开发者ID:nlh774,项目名称:DotNetReferenceSource,代码行数:10,代码来源:GeneralTransform3DTo2D.cs

示例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);
 }
开发者ID:JianwenSun,项目名称:cc,代码行数:10,代码来源:GeneralTransform2DTo3D.cs

示例10: Freeze

 protected static bool Freeze(Freezable freezable,
     bool isChecking)
 {
     throw new NotImplementedException ();
 }
开发者ID:shahid-pk,项目名称:MonoPresentationFoundation,代码行数:5,代码来源:Freezable.cs

示例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);
 } 
开发者ID:sjyanxin,项目名称:WPFSource,代码行数:10,代码来源:KeySpline.cs

示例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;
        }
开发者ID:nlh774,项目名称:DotNetReferenceSource,代码行数:21,代码来源:ParserContext.cs

示例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;
        }
开发者ID:sjyanxin,项目名称:WPFSource,代码行数:20,代码来源:Baml2006Reader.cs

示例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);
 }
开发者ID:GonzRu,项目名称:WPG,代码行数:11,代码来源:DataResource.cs

示例15: GetAsFrozenCore

        protected override void GetAsFrozenCore(Freezable sourceFreezable)
        {
            InteropBitmap sourceBitmapSource = (InteropBitmap)sourceFreezable;

            base.GetAsFrozenCore(sourceFreezable);

            CopyCommon(sourceBitmapSource);
        }
开发者ID:JianwenSun,项目名称:cc,代码行数:8,代码来源:InteropBitmapSource.cs


注:本文中的Freezable类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。