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


C# Telerik.SetCursor方法代码示例

本文整理汇总了C#中Telerik.SetCursor方法的典型用法代码示例。如果您正苦于以下问题:C# Telerik.SetCursor方法的具体用法?C# Telerik.SetCursor怎么用?C# Telerik.SetCursor使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Telerik的用法示例。


在下文中一共展示了Telerik.SetCursor方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: OnGiveFeedBack

        private void OnGiveFeedBack(object sender, Telerik.Windows.DragDrop.GiveFeedbackEventArgs args)
        {
            OrgTeamMemberViewModel draggedModel = (OrgTeamMemberViewModel)(args.OriginalSource as FrameworkElement).DataContext;
            RadDiagramShape shapeUnderDragPosition = this.diagram.GetShapeUnderDragPosition();
            if (shapeUnderDragPosition != null)
            {
                bool isDropAllowed = false;
                OrgTeamViewModel targetModel = (OrgTeamViewModel)shapeUnderDragPosition.DataContext;
                if (targetModel != null && draggedModel.Team != targetModel )
                {
                    isDropAllowed = true;
                    this.viewModel.GraphSource.InternalItems.ForEach(team => team.IsDropTarget = false);
                    targetModel.IsDropTarget = true;
                }

                if (isDropAllowed)
                {
                    draggedModel.DropTarget = targetModel;
                    args.SetCursor(Cursors.Arrow);
                    this.ExpandItemDelayed(targetModel);
                }
                else
                {
                    draggedModel.DropTarget = null;                    
                }
            }
            else
            {
                draggedModel.DropTarget = null;
            }

            args.Handled = true;
        }
开发者ID:netintellect,项目名称:PluralsightSpaJumpStartFinal,代码行数:33,代码来源:OrgChartExample.xaml.cs

示例2: OnGiveFeedback

 private void OnGiveFeedback(object sender, Telerik.Windows.DragDrop.GiveFeedbackEventArgs e)
 {
     e.SetCursor(Cursors.Arrow);
     e.Handled = true;
 }
开发者ID:jigjosh,项目名称:xaml-sdk,代码行数:5,代码来源:ListBoxDragDropBehavior.cs

示例3: OnGiveFeedback

 private static void OnGiveFeedback(object sender, Telerik.Windows.DragDrop.GiveFeedbackEventArgs e)
 {
     RadGridView grid = (RadGridView)sender;
     e.SetCursor(Cursors.Arrow);
     e.Handled = true;
 }
开发者ID:JeanNguon,项目名称:Projet,代码行数:6,代码来源:TourneeGridViewBehavior.cs

示例4: ToolBarGiveFeedback

        private static void ToolBarGiveFeedback(object sender, Telerik.Windows.DragDrop.GiveFeedbackEventArgs e)
        {
            if (lastInitializedInfo != null && lastInitializedInfo.Tray.Items.Contains(lastInitializedInfo.ToolBar) && !lastInitializedInfo.Tray.IsMouseOver)
            {
                // Handle cases when DragInitialized was raised when the mouse was not in tray's bounds.
                ClearHitTesting(lastInitializedInfo.Tray.Items);
                MoveToolBarToDragVisual(lastInitializedInfo, lastInitializedInfo.Tray);
                lastInitializedInfo = null;
            }

            e.SetCursor(System.Windows.Input.Cursors.SizeAll);
            e.Handled = true;
        }
开发者ID:Motaz-Al-Zoubi,项目名称:xaml-sdk,代码行数:13,代码来源:ToolBarTrayUtilities.cs

示例5: OnGiveFeedback

 private void OnGiveFeedback(object sender, Telerik.Windows.DragDrop.GiveFeedbackEventArgs args)
 {
     args.SetCursor(Cursors. ArrowCD);
     args.Handled = true;
 }
开发者ID:leefw,项目名称:Telerik-DragDropManager,代码行数:5,代码来源:MainWindow.xaml.cs


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