Silverlight 4 Beta right mouse button support

Source: Internet
Author: User
Tags silverlight

Silverlight4beta finally added to the right mouse button capture support!

Before we hit the right mouse button in a SL application, we could only get a hell of a death menu "Silverlight", which displays basic information about the SL plug-in, such as version, update policy, local storage quotas, and so on (who actually pays attention to this stuff?). )

In Silverlight4beta we have the Mouserightbuttondown and Mouserightbuttonup events, through which we can capture the right mouse button! (The popup Silverlight menu is still the default behavior, I mean, if you don't set the behavior of both events.) When we set the value of mousebuttoneventargs.handled to true, that embarrassing Silverlight menu is not displayed.

All UIElement have both events (routed events) that control them and MouseLeftButtonDown and mouseleftbuttonup identical.

It should be noted that the context menu control is not provided in the Sl4beta ... Either we write it ourselves, or we wait for a third party.

Well, that's all, if you have time, then look down.

So how do we look at Silverlight after we've shielded Silverlight, and look at the following figure:

Well, yes. Now that we've installed Silverlight, we can see the Microsoft Silverlight in the Start menu, and then we can display the original Silverlight plug-in information when we click.

Source: http://024hi.cnblogs.com/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.