Click here to Skip to main content
15,878,814 members
Articles / Programming Languages / C#

A Silverlight WidgetZone Control

Rate me:
Please Sign up or sign in to vote.
4.67/5 (2 votes)
21 Oct 2009Ms-PL4 min read 64K   414   14  
Widget developing is more and more in fashion today, drag and drop support is a basic function in a widget platform. If you want to develop a Silverlight widget platform, you may need a Panel which supports drag and drop UIElement on it. The WidgetZone is a Panel that can be used in such cases.
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// 有关程序集的常规信息通过以下
// 一组属性控制。更改这些属性值可修改
// 与程序集相关的信息。
[assembly: AssemblyTitle("WidgetZoneTest")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("WidgetZoneTest")]
[assembly: AssemblyCopyright("Copyright ©  2008")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// 将 ComVisible 设置为 false 可使此程序集中的类型
// 对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型,
// 请在该类型上将 ComVisible 属性设置为 true。
[assembly: ComVisible(false)]

// 如果此项目向 COM 公开,则以下 GUID 用作类型库的 ID
[assembly: Guid("6bc399c6-adc5-4ed1-a8e1-106c24c0b309")]

// 程序集的版本信息由下面四个值组成:
//
//      主版本
//      次版本
//      内部版本号
//      修订号
//
// 您可以指定所有值,也可以使用“*”默认修订号和内部版本号,
// 如下所示:
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Microsoft Public License (Ms-PL)


Written By
Team Leader
China China
The God created the world.
The programer made the world easy.
I am a programer like c# and c++, so I am writting application with it.
Creating beautiful application make life easy.
If you have a project and looking for a man, I'll be say "hi, I am just the man you are looking for."

Comments and Discussions