[Winodows Phone 7 control details] Silverlight toolkit for Windows Phone 7.1 control-2

Source: Internet
Author: User
Tags silverlight

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.1 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.

1. 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.

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.

<TextBlock Height="30" HorizontalAlignment="Left" Margin="121,90,0,0" Name="textBlock1" Text="TextBlock" VerticalAlignment="Top" >
<toolkit:ContextMenuService.ContextMenu>
<toolkit:ContextMenu Height="600" HorizontalAlignment="Left" Margin="162,103,0,0" Name="contextMenu1" VerticalAlignment="Top" Width="200">
<toolkit:MenuItem Header="MenuItem1" Click="MenuItem_Click_1" />
<toolkit:MenuItem Header="MenuItem2" />
<toolkit:Separator/>
<toolkit:MenuItem>
<toolkit:MenuItem.Header>
<StackPanel Orientation="Horizontal">
<Image Width="50" Height="50" Source="Images/log.jpg"/>
<TextBlock Text="MenuItem3"/>
</StackPanel>
</toolkit:MenuItem.Header>
</toolkit:MenuItem>
</toolkit:ContextMenu>
</toolkit:ContextMenuService.ContextMenu>
</TextBlock>

 

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.