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


C# Media.GeneralTransformGroup类代码示例

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


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


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