當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。