• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Media.GeneralTransformGroup类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中System.Windows.Media.GeneralTransformGroup的典型用法代码示例。如果您正苦于以下问题:C# GeneralTransformGroup类的具体用法?C# GeneralTransformGroup怎么用?C# GeneralTransformGroup使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



GeneralTransformGroup类属于System.Windows.Media命名空间,在下文中一共展示了GeneralTransformGroup类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: GetDesiredTransform

 public override GeneralTransform GetDesiredTransform(GeneralTransform transform)
 {
     var result = new GeneralTransformGroup();
     result.Children.Add(base.GetDesiredTransform(transform));
     result.Children.Add(new TranslateTransform(_offsetLeft, _offsetTop));
     return result;
 }
开发者ID:borndead,项目名称:PoESkillTree,代码行数:7,代码来源:DragAdorner.cs


示例2: GetDesiredTransform

 public override GeneralTransform GetDesiredTransform(GeneralTransform transform)
 {
     GeneralTransformGroup result = new GeneralTransformGroup();
     result.Children.Add(base.GetDesiredTransform(transform));
     result.Children.Add(new TranslateTransform(_leftOffset, _topOffset));
     return result;
 }
开发者ID:allanckw,项目名称:GEMS-Client,代码行数:7,代码来源:DragAdorner.cs


示例3: GetDesiredTransform

 public override GeneralTransform GetDesiredTransform(GeneralTransform transform)
 {
     GeneralTransformGroup result = new GeneralTransformGroup();
     result.Children.Add (transform);
     result.Children.Add (new TranslateTransform (this.offset.X, this.offset.Y));
     return result;
 }
开发者ID:RevolutionSmythe,项目名称:xwt,代码行数:7,代码来源:ImageAdorner.cs


示例4: GetDesiredTransform

 public override GeneralTransform GetDesiredTransform(GeneralTransform transform)
 {
     var transformGroup = new GeneralTransformGroup();
     transformGroup.Children.Add(base.GetDesiredTransform(transform));
     transformGroup.Children.Add(new TranslateTransform(_currentPoint.X - _startPoint.X, _currentPoint.Y - _startPoint.Y));
     return transformGroup;
 }
开发者ID:markrendle,项目名称:WpfPrimitives,代码行数:7,代码来源:DragAdorner.cs


示例5: GetDesiredTransform

 public override GeneralTransform GetDesiredTransform(GeneralTransform transform)
 {
     GeneralTransformGroup result = new GeneralTransformGroup();
     result.Children.Add(base.GetDesiredTransform(transform));
     result.Children.Add(new TranslateTransform(position.X, position.Y));
     return result;
 }
开发者ID:YoshihiroIto,项目名称:TreeViewEx,代码行数:7,代码来源:DragAdorner.cs


示例6: GetDesiredTransform

 public override GeneralTransform GetDesiredTransform(GeneralTransform transform)
 {
     GeneralTransformGroup newTransform = new GeneralTransformGroup();
     newTransform.Children.Add(base.GetDesiredTransform(transform));
     newTransform.Children.Add(new TranslateTransform(this._adornerOffset.X, this._adornerOffset.Y));
     return newTransform;
 }
开发者ID:BoonieBear,项目名称:TinyMetro,代码行数:7,代码来源:DefaultAdorner.cs


示例7: GetDesiredTransform

 public override GeneralTransform GetDesiredTransform(GeneralTransform transform)
 {
     GeneralTransformGroup result = new GeneralTransformGroup();
     result.Children.Add(base.GetDesiredTransform(transform));
     result.Children.Add(new TranslateTransform(this.left, this.top));
     return result;
 }
开发者ID:Orange637,项目名称:WpfStudy,代码行数:7,代码来源:DraggedAdorner.cs


示例8: GetDesiredTransform

 public override GeneralTransform GetDesiredTransform(GeneralTransform transform)
 {
     GeneralTransformGroup group = new GeneralTransformGroup();
     group.Children.Add(base.GetDesiredTransform(transform));
     group.Children.Add(translate);
     return group;
 }
开发者ID:kinectitude,项目名称:kinectitude,代码行数:7,代码来源:DragAdorner.cs


示例9: GetDesiredTransform

    public override GeneralTransform GetDesiredTransform(GeneralTransform transform)
    {
      var result = new GeneralTransformGroup();
      result.Children.Add(base.GetDesiredTransform(transform));
      result.Children.Add(new TranslateTransform(this.MousePosition.X - 4, this.MousePosition.Y - 4));

      return result;
    }
开发者ID:DeadlyEmbrace,项目名称:gong-wpf-dragdrop,代码行数:8,代码来源:DragAdorner.cs


示例10: GetDesiredTransform

 public override GeneralTransform GetDesiredTransform(GeneralTransform transform)
 {
     GeneralTransformGroup result = new GeneralTransformGroup();
     result.Children.Add(base.GetDesiredTransform(transform));
     result.Children.Add(new TranslateTransform(
         position.X - treeViewEx.ScrollViewer.ContentHorizontalOffset, position.Y - treeViewEx.ScrollViewer.ContentVerticalOffset));
     return result;
 }
开发者ID:YoshihiroIto,项目名称:TreeViewEx,代码行数:8,代码来源:BorderSelectionAdorner.cs


示例11: GetDesiredTransform

 /// <summary>
 ///     Override.
 /// </summary>
 /// <param name="transform"></param>
 /// <returns></returns>
 public override GeneralTransform GetDesiredTransform(GeneralTransform transform)
 {
     var result = new GeneralTransformGroup();
     // ReSharper disable AssignNullToNotNullAttribute
     result.Children.Add(base.GetDesiredTransform(transform));
     // ReSharper restore AssignNullToNotNullAttribute
     result.Children.Add(new TranslateTransform(offsetLeft, offsetTop));
     return result;
 }
开发者ID:Robin--,项目名称:Warewolf,代码行数:14,代码来源:SingleChildAdornerBase.cs


示例12: GetDesiredTransform

        public override GeneralTransform GetDesiredTransform(GeneralTransform transform)
        {
            GeneralTransformGroup result = new GeneralTransformGroup();
            result.Children.Add(new TranslateTransform(Left, Top));
            if (Left > 0) this.Visibility = Visibility.Visible;
            result.Children.Add(base.GetDesiredTransform(transform));

            return result;
        }
开发者ID:tablesmit,项目名称:FabTab,代码行数:9,代码来源:DropPreviewAdorner.cs


示例13: GetDesiredTransform

        public override GeneralTransform GetDesiredTransform(GeneralTransform transform) {
            var result = new GeneralTransformGroup();
            var desired = base.GetDesiredTransform(transform);
            if (desired != null) {
                result.Children.Add(desired);
            }

            result.Children.Add(new TranslateTransform(_offsetLeft, _offsetTop));
            return result;
        }
开发者ID:gro-ove,项目名称:actools,代码行数:10,代码来源:DragAdorner.cs


示例14: GetDesiredTransform

        public override GeneralTransform GetDesiredTransform(GeneralTransform transform)
        {
            var result = new GeneralTransformGroup();
            var tf = base.GetDesiredTransform(transform);
            Debug.Assert(tf != null);
            result.Children.Add(tf);
            result.Children.Add(new TranslateTransform(_left, _top));

            return result;
        }
开发者ID:rmunn,项目名称:cog,代码行数:10,代码来源:DraggedAdorner.cs


示例15: GetDesiredTransform

    public override GeneralTransform GetDesiredTransform(GeneralTransform transform)
    {
      var baseTransform = base.GetDesiredTransform(transform);
      var translateTransform = new TranslateTransform(MousePosition.X - 4, MousePosition.Y - 4);
      
      var result = new GeneralTransformGroup();
      if (baseTransform != null)
        result.Children.Add(baseTransform);
      result.Children.Add(translateTransform);

      return result;
    }
开发者ID:modulexcite,项目名称:LoreSoft.Shared,代码行数:12,代码来源:DragAdorner.cs


示例16: GetDesiredTransform

        public override GeneralTransform GetDesiredTransform(GeneralTransform transform)
        {
            var result = new GeneralTransformGroup();

            result.Children.Add(base.GetDesiredTransform(transform));

            var mousePositionTransform = new TranslateTransform(MousePosition.X, MousePosition.Y);
            result.Children.Add(mousePositionTransform);

            var mousePositionOffsetTransform = new TranslateTransform(-4, -4);
            result.Children.Add(mousePositionOffsetTransform);

            return result;
        }
开发者ID:squaredinfinity,项目名称:Foundation,代码行数:14,代码来源:DragAdorner.cs


示例17: GetDesiredTransform

        /// <summary>
        /// Adorners don't always want to be transformed in the same way as the elements they
        /// adorn.  Adorners which adorn points, such as resize handles, want to be translated
        /// and rotated but not scaled.  Adorners adorning an object, like a marquee, may want
        /// all transforms.  This method is called by AdornerLayer to allow the adorner to
        /// filter out the transforms it doesn't want and return a new transform with just the
        /// transforms it wants applied.  An adorner can also add an additional translation
        /// transform at this time, allowing it to be positioned somewhere other than the upper
        /// left corner of its adorned element.
        /// </summary>
        /// <param name="transform">The transform applied to the object the adorner adorns</param>
        /// <returns>Transform to apply to the adorner</returns>
        public override GeneralTransform GetDesiredTransform(GeneralTransform transform)
        {
            if (ReferenceElement == null)
                return transform;

            GeneralTransformGroup group = new GeneralTransformGroup();
            group.Children.Add(transform);

            GeneralTransform t = this.TransformToDescendant(ReferenceElement);
            if (t != null)
            {
                group.Children.Add(t);
            }
            return group;
        }
开发者ID:nlh774,项目名称:DotNetReferenceSource,代码行数:27,代码来源:TemplatedAdorner.cs


示例18: GetDesiredTransform

 /// <summary>
 /// Returns a <see cref="T:System.Windows.Media.Transform"/> for the adorner, based on the transform that is currently applied to the adorned element.
 /// </summary>
 /// <param name="transform">The transform that is currently applied to the adorned element.</param>
 /// <returns>A transform to apply to the adorner.</returns>
 public override GeneralTransform GetDesiredTransform(GeneralTransform transform)
 {
     if (PlaceholderReferenceElement == null)
     {
         return transform;
     }
     var group = new GeneralTransformGroup();
     group.Children.Add(transform);
     var transform2 = TransformToDescendant(PlaceholderReferenceElement);
     if (transform2 != null)
     {
         group.Children.Add(transform2);
     }
     return group;
 }
开发者ID:PaulStovell,项目名称:bindable,代码行数:20,代码来源:TemplatedAdorner.cs


示例19: GetDesiredTransform

        //------------------------------------------------------
        //
        //  Public Methods
        //
        //------------------------------------------------------
 
        #region Public Methods

        /// <summary>
        /// Add a transform so that the adorner is in right spot.
        /// </summary>
        /// <param name="transform">
        /// The transform applied to the object the adorner adorns
        /// </param>
        /// <returns>
        /// Transform to apply to the adorner
        /// </returns>
        public override GeneralTransform GetDesiredTransform(GeneralTransform transform)
        {
            GeneralTransformGroup group;            
            TranslateTransform translation;

            group = new GeneralTransformGroup();            
            translation = new TranslateTransform(_x, _top);

            group.Children.Add(translation);

            if (transform != null)
            {
                group.Children.Add(transform);
            }

            return group;
        }
开发者ID:JianwenSun,项目名称:cc,代码行数:34,代码来源:ColumnResizeAdorner.cs


示例20: GetDesiredTransform

        public override GeneralTransform GetDesiredTransform(GeneralTransform transform)
        {
            Rect adornedElementRect = new Rect(this.AdornedElement.RenderSize);
            double positionX = adornedElementRect.Left;
            double positionY;
            if (Content.Before)
            {
                positionY = adornedElementRect.Top;
            }
            else
            {
                positionY = adornedElementRect.Bottom;
            }

            GeneralTransformGroup result = new GeneralTransformGroup();
            result.Children.Add(base.GetDesiredTransform(transform));
            result.Children.Add(new TranslateTransform(positionX, positionY - contentPresenter.ActualHeight/2));
            return result;
        }
开发者ID:YoshihiroIto,项目名称:TreeViewEx,代码行数:19,代码来源:InsertAdorner.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Media.Geometry类代码示例发布时间:2022-05-26
下一篇:
C# Media.GeneralTransform类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap