本文整理汇总了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;
}
示例2: OnGiveFeedback
private void OnGiveFeedback(object sender, Telerik.Windows.DragDrop.GiveFeedbackEventArgs e)
{
e.SetCursor(Cursors.Arrow);
e.Handled = true;
}
示例3: OnGiveFeedback
private static void OnGiveFeedback(object sender, Telerik.Windows.DragDrop.GiveFeedbackEventArgs e)
{
RadGridView grid = (RadGridView)sender;
e.SetCursor(Cursors.Arrow);
e.Handled = true;
}
示例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;
}
示例5: OnGiveFeedback
private void OnGiveFeedback(object sender, Telerik.Windows.DragDrop.GiveFeedbackEventArgs args)
{
args.SetCursor(Cursors. ArrowCD);
args.Handled = true;
}