Learning windows phone7 development together (October. Windows phone7 Toolkit)

Source: Internet
Author: User
ArticleDirectory
    • Contextmenu

I have previously written the Silverlight toolkit application in Windows phone7. That should be a fake version, because it is not specially developed for Windows phone7 after all, and there are problems in compatibility in use, now it is different. The genuine version is released, making up for the shortcomings of the original control. However, it is much less than Silverlight toolkit.

Toolkit for Windows phone7 mainly contains the contextmenu, separator, datepicker, timepicker, toggleswitch, and wrappanel controls. Unfortunately, there are no busyindicator and data chart controls, I don't know if there will be an upgraded version later to add these controls.

In addition, some bloggers hope that I can release the examples written on the blog. Now I have sorted them out. I have put these examples on my own website.Www.daisy123.comYou can download the example in. In addition, if you have a question or answer, you can discuss the related technical questions. I will discuss the questions in a timely manner. You can also join our group on the website.

Contextmenu

Now, you can press it to display the menu! This control is somewhat different from Silverlight, and there is no icon on Windows phone7.

<Toolkit: contextmenuservice. contextmenu>

<Toolkit: contextmenu Height = "400" horizontalalignment = "Left" margin = "123,168, 200 "name =" contextmenu1 "verticalignment =" TOP "width =" "borderbrush =" red "borderthickness =" 5 ">

<Toolkit: menuitem header = "test1" Click = "menuitem_click"/>

<Toolkit: menuitem header = "Test2" Click = "menuitem_click"/>

<Toolkit: separator/> // delimiter Control

<Toolkit: menuitem header = "test3" Click = "menuitem_click"/>

</Toolkit: contextmenu>

</Toolkit: contextmenuservice. contextmenu>

As mentioned above, there is no icon, but it cannot be added. You can use a work ing method to obtain the effect of an icon.

<Toolkit: contextmenuservice. contextmenu>

<Toolkit: contextmenu Height = "400" horizontalalignment = "Left" margin = "123,168, 200 "name =" contextmenu1 "verticalignment =" TOP "width =" "borderbrush =" red "borderthickness =" 5 ">

<Toolkit: menuitem header = "test1" Click = "menuitem_click"/>

<Toolkit: menuitem header = "Test2" Click = "menuitem_click"/>

<Toolkit: separator/>

<Toolkit: menuitem click = "menuitem_click">

<Toolkit: menuitem. header>

<Stackpanel orientation = "horizontal">

<Image width = "50" Height = "50" Source = "applicationicon.png"/>

<Textblock text = "test3"/>

</Stackpanel>

</Toolkit: menuitem. header>

</Toolkit: menuitem>

</Toolkit: contextmenu>

</Toolkit: contextmenuservice. contextmenu>

This control is simple, but it won't work if you drag the page from the tool list. In addition, contextmenu cannot be used for container controls.

Related Article

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.