本文整理汇总了C#中System.Windows.GiveFeedbackEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# GiveFeedbackEventArgs类的具体用法?C# GiveFeedbackEventArgs怎么用?C# GiveFeedbackEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
GiveFeedbackEventArgs类属于System.Windows命名空间,在下文中一共展示了GiveFeedbackEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: ListBox_OnGiveFeedback
private void ListBox_OnGiveFeedback(object sender, GiveFeedbackEventArgs e)
{
if (Mouse.OverrideCursor != null)
Mouse.OverrideCursor = null;
Mouse.SetCursor(_closedHandCursor);
e.UseDefaultCursors = false;
e.Handled = true;
}
开发者ID:rmunn,项目名称:cog,代码行数:8,代码来源:WordView.xaml.cs
示例2: List_GiveFeedback
void List_GiveFeedback(object sender, GiveFeedbackEventArgs e)
{
if (adorner != null)
{
ListBoxItem lbl = sender as ListBoxItem;
var pos = lbl.PointFromScreen(GetMousePosition());
adorner.UpdatePosition(pos);
//e.Handled = true;
}
}
开发者ID:Bulgrak,项目名称:praktikpbasw,代码行数:10,代码来源:ToolboxGroupsUserControl.xaml.cs
示例3: Label_GiveFeedback
private void Label_GiveFeedback(object sender, GiveFeedbackEventArgs e)
{
if (e.Effects == DragDropEffects.Copy)
{
e.UseDefaultCursors = false;
Mouse.SetCursor(Cursors.Pen);
}
else
e.UseDefaultCursors = true;
e.Handled = true;
}
开发者ID:keithgemeinhart,项目名称:ArcGis.Wpf.DragDropDemo,代码行数:12,代码来源:DragDropViewModel.cs
示例4: OnGiveFeedback
protected override void OnGiveFeedback(GiveFeedbackEventArgs e)
{
base.OnGiveFeedback(e);
if (this.adorner != null)
{
Point curpos = MouseSimulator.GetCursorPosition();
Point point = this.border.PointFromScreen(curpos);
this.adorner.SetPosition(point.X, point.Y);
}
Cursor cursor = ((TextBlock)this.Resources["CursorClosedHand"]).Cursor;
Mouse.SetCursor(cursor);
e.Handled = true;
}
开发者ID:joshreve,项目名称:Touchmote,代码行数:16,代码来源:KeymapOutputItem.xaml.cs
示例5: OnGiveFeedback
protected override void OnGiveFeedback(GiveFeedbackEventArgs e)
{
base.OnGiveFeedback(e);
if (e.Effects.HasFlag(DragDropEffects.Copy))
{
Mouse.SetCursor(Cursors.Cross);
}
else if (e.Effects.HasFlag(DragDropEffects.Move))
{
Mouse.SetCursor(Cursors.Pen);
}
else
{
Mouse.SetCursor(Cursors.No);
}
e.Handled = true;
}
开发者ID:cgideon,项目名称:CSharpSandbox,代码行数:19,代码来源:Circle.xaml.cs
示例6: triggerElement_GiveFeedback
private static void triggerElement_GiveFeedback(object sender, GiveFeedbackEventArgs e)
{
if (e.Effects == DragDropEffects.None)
{
e.UseDefaultCursors = true;
_isMouseOver = false;
}
else if (_isMouseOver)
{
Mouse.SetCursor(CreateCursor(_contentPresenter, 5, 5));
e.UseDefaultCursors = false;
}
else
{
Mouse.SetCursor(Cursors.Arrow);
e.UseDefaultCursors = false;
}
e.Handled = true;
}
开发者ID:Mrding,项目名称:Ribbon,代码行数:20,代码来源:CursorBehavior.cs
示例7: OnGiveFeedback
private void OnGiveFeedback(object sender, GiveFeedbackEventArgs e)
{
if( _adorner != null )
{
_adorner.SetPosition( MouseEx.GetPosition( _dragSource ) );
}
}
开发者ID:dxm007,项目名称:Droppy,代码行数:7,代码来源:DragDropHelper.cs
示例8: textArea_GiveFeedback
void textArea_GiveFeedback(object sender, GiveFeedbackEventArgs e)
{
try {
e.UseDefaultCursors = true;
e.Handled = true;
} catch (Exception ex) {
OnDragException(ex);
}
}
开发者ID:bbqchickenrobot,项目名称:AvalonEdit,代码行数:9,代码来源:SelectionMouseHandler.cs
示例9: DefaultGiveFeedback
public static void DefaultGiveFeedback(System.Windows.IDataObject data, GiveFeedbackEventArgs e)
{
bool flag1 = false;
bool flag2 = DataObjectExtensions.IsDropDescriptionDefault(data);
DropImageType dropImageType = DropImageType.Invalid;
if (!DataObjectExtensions.IsDropDescriptionValid(data) || flag2)
{
dropImageType = DataObjectExtensions.GetDropImageType(data);
flag1 = true;
}
if (DataObjectExtensions.IsShowingLayered(data))
{
e.UseDefaultCursors = false;
Mouse.SetCursor(Cursors.Arrow);
}
else
e.UseDefaultCursors = true;
if (DataObjectExtensions.InvalidateRequired(data) || !flag2 || dropImageType != DropImageType.None)
{
DataObjectExtensions.InvalidateDragImage(data);
DataObjectExtensions.SetInvalidateRequired(data, false);
}
if (flag1 && e.Effects != (DragDropEffects)dropImageType)
{
if (e.Effects == DragDropEffects.Copy)
DataObjectExtensions.SetDropDescription(data, DropImageType.Copy, "Copy", string.Empty);
else if (e.Effects == DragDropEffects.Link)
DataObjectExtensions.SetDropDescription(data, DropImageType.Link, "Link", string.Empty);
else if (e.Effects == DragDropEffects.Move)
DataObjectExtensions.SetDropDescription(data, DropImageType.Move, "Move", string.Empty);
else if (e.Effects == DragDropEffects.None)
DataObjectExtensions.SetDropDescription(data, DropImageType.None, (string)null, (string)null);
DataObjectExtensions.SetDropDescriptionIsDefault(data, true);
DataObjectExtensions.SetInvalidateRequired(data, true);
}
e.Handled = true;
}
开发者ID:kingpin2k,项目名称:MCS,代码行数:37,代码来源:DataObjectExtensions.cs
示例10: OnGiveFeedback
/// <summary>
/// Virtual method reporting the give feedback is going to happen
/// </summary>
protected internal virtual void OnGiveFeedback(GiveFeedbackEventArgs e) {}
开发者ID:nlh774,项目名称:DotNetReferenceSource,代码行数:4,代码来源:ContentElement.cs
示例11: OnGiveFeedbackThunk
private static void OnGiveFeedbackThunk(object sender, GiveFeedbackEventArgs e)
{
Invariant.Assert(!e.Handled, "Unexpected: Event has already been handled.");
UIElement uie = sender as UIElement;
if (uie != null)
{
uie.OnGiveFeedback(e);
}
else
{
ContentElement ce = sender as ContentElement;
if (ce != null)
{
ce.OnGiveFeedback(e);
}
else
{
((UIElement3D)sender).OnGiveFeedback(e);
}
}
}
开发者ID:nlh774,项目名称:DotNetReferenceSource,代码行数:24,代码来源:UIElement.cs
示例12: ellipse_GiveFeedback
private void ellipse_GiveFeedback(object sender, GiveFeedbackEventArgs e)
{
}
开发者ID:jeanch56,项目名称:Kurna,代码行数:3,代码来源:Board.xaml.cs
示例13: OnPreviewGiveFeedback
protected virtual void OnPreviewGiveFeedback(GiveFeedbackEventArgs e)
{
throw new NotImplementedException ();
}
开发者ID:alesliehughes,项目名称:olive,代码行数:4,代码来源:ContentElement.cs
示例14: DragSource_PreviewGiveFeedback
static void DragSource_PreviewGiveFeedback(object sender, GiveFeedbackEventArgs e)
{
// Can be used to set custom cursors
}
开发者ID:liuxr,项目名称:wpfumprototype,代码行数:4,代码来源:DragDropManager.cs
示例15: PreprocessGiveFeedback
public void PreprocessGiveFeedback(GiveFeedbackEventArgs e) {
IMouseProcessor processor = Content as IMouseProcessor;
if (processor != null) {
processor.PreprocessGiveFeedback(e);
}
}
开发者ID:omnimark,项目名称:PTVS,代码行数:6,代码来源:CompletionControl.xaml.cs
示例16: MouseElement_GiveFeedback
void MouseElement_GiveFeedback(object sender, GiveFeedbackEventArgs e) {
foreach (var m in mouseProcessors) {
if (e.Handled)
break;
m.PreprocessGiveFeedback(e);
}
if (!e.Handled)
defaultMouseProcessor.OnGiveFeedback(sender, e);
foreach (var m in mouseProcessors)
m.PostprocessGiveFeedback(e);
}
开发者ID:manojdjoshi,项目名称:dnSpy,代码行数:11,代码来源:HexMouseProcessorCollection.cs
示例17: DropTarget_GiveFeedback
private static void DropTarget_GiveFeedback(object sender, GiveFeedbackEventArgs e)
{
if (EffectAdorner != null) {
e.UseDefaultCursors = false;
e.Handled = true;
} else {
e.UseDefaultCursors = true;
e.Handled = true;
}
}
开发者ID:GeoffEngelstein,项目名称:gong-wpf-dragdrop,代码行数:10,代码来源:DragDrop.cs
示例18: OnGiveFeedback
protected virtual void OnGiveFeedback(GiveFeedbackEventArgs e);
开发者ID:jmreynolds,项目名称:SuperProductiveWPFApps,代码行数:1,代码来源:System.Windows.UIElement.cs
示例19: OnPreviewGiveFeedback
/// <summary>
/// Virtual method reporting the preview give feedback is going to happen
/// </summary>
protected virtual void OnPreviewGiveFeedback(GiveFeedbackEventArgs e) {}
开发者ID:nlh774,项目名称:DotNetReferenceSource,代码行数:4,代码来源:UIElement.cs
示例20: DragScopeGiveFeedback
private void DragScopeGiveFeedback(object sender, GiveFeedbackEventArgs e)
{
if (e.Effects == DragDropEffects.Move)
{
e.UseDefaultCursors = false;
Mouse.SetCursor(Cursors.Hand);
}
else
e.UseDefaultCursors = true;
e.Handled = true;
}
开发者ID:punker76,项目名称:VCA-player,代码行数:12,代码来源:AudioListView.xaml.cs
注:本文中的System.Windows.GiveFeedbackEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论