wpf中处理程序的用途是什么?

编程入门 行业动态 更新时间:2024-10-26 02:29:18
本文介绍了wpf中处理程序的用途是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

在我的wpf项目中,我见过一些wpf处理程序(拖放处理程序,鼠标行为处理程序)...有谁能请解释一下wpf中的处理程序?

In my wpf project i had seen some wpf handlers (dragdrop handler,mouse behaviour handler)... can anyone please explain me breifly about the handlers in wpf?

推荐答案

简短的回答是:您认为在没有处理程序的情况下使用UI会怎样?没有它们就没有UI。而且不仅仅是UI。这与询问编程中函数的用途是什么?相同。 :-) 它甚至不是WPF,这是一般的CLR,以及.NET和CLR之外的许多技术中许多非常相似的人员。 b $ b 不,读取原始MSDN文档很难让你更容易: msdn.microsoft/en-us/library/edzehd2t%28v=vs.110%29。 aspx [ ^ ](这可能更简单一点吗?), msdn.microsoft/en-us/library/aa645739%28v=vs.71%29.aspx [ ^ ]。 但是,WPF在事件中引入了自己的扭曲,但在绝大多数情况下,这是先进的东西,所以你可以做很多工作而不理解它们: msdn.microsoft/en-us/library/ms753115%28v=vs.110%29.aspx [ ^ ], msdn.microsoft/en-us/library/ms742806 %28v = vs.110%29.aspx [ ^ ], msdn.microsoft/en-us/magazine/cc785480.aspx [ ^ ], www.wpf-tutorial/xaml/events-in-xaml [ ^ ]。 当然,最终你需要学习所有这些WPF特定的东西,但不要早于你理解一般事件概念,这些概念并不像有些人认为的那样微不足道。基本的日常体验。
-SA
Short answer is: and what do you think would be the use of UI without handlers? There is no UI without them. And not only UI. This is the same as asking "what is the use of functions in programming?" :-) It's not even WPF, this is the general CLR thing, as well as a lot of very similar staff in many technologies outside .NET and CLR. No, it's hard to make it easier for you than reading of original MSDN documentation: msdn.microsoft/en-us/library/edzehd2t%28v=vs.110%29.aspx[^] (what could be more brief that this one?), msdn.microsoft/en-us/library/aa645739%28v=vs.71%29.aspx[^]. However, WPF introduces its own twist to events, but, in vast majority of cases, this is advanced stuff, so you can do a lot of work without understanding it all: msdn.microsoft/en-us/library/ms753115%28v=vs.110%29.aspx[^], msdn.microsoft/en-us/library/ms742806%28v=vs.110%29.aspx[^], msdn.microsoft/en-us/magazine/cc785480.aspx[^], www.wpf-tutorial/xaml/events-in-xaml[^]. Of course, eventually you would need to learn all this WPF-specific stuff, but not sooner than you understand general event concepts, which are not so trivial as some may think based on basic everyday experience.
—SA

更多推荐

wpf中处理程序的用途是什么?

本文发布于:2023-11-05 04:01:53,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1559839.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:用途   程序   wpf

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!