Different Windows Phone (2) control (controls)

Source: Internet
Author: User
Tags header xmlns

Introduced

Different Windows Phone 7.5 (SDK 7.1) controls

Panorama-Panorama Control

Pivot-Pivot Control

Map-bing Map Control

WebBrowser-Inline Browser Controls

Other-Available controls

Example

1, Panorama's Demo

Panorama.xaml

<phone:phoneapplicationpage x:class= "Demo.Controls.Panorama" xmlns= "http://schemas.microsoft.com/winfx/2006/ Xaml/presentation "xmlns:x=" Http://schemas.microsoft.com/winfx/2006/xaml "xmlns:phone=" Clr-namespace: Microsoft.phone.controls;assembly=microsoft.phone "Xmlns:shell=" clr-namespace:microsoft.phone.shell;assembly= Microsoft.phone "xmlns:controls=" Clr-namespace:microsoft.phone.controls;assembly=microsoft.phone.controls "xmlns :d = "http://schemas.microsoft.com/expression/blend/2008" xmlns:mc= "http://schemas.openxmlformats.org/" markup-compatibility/2006 "mc:ignorable=" D "d:designwidth=" "d:designheight=" "fontfamily=" {StaticResource P Honefontfamilynormal} "fontsize=" {StaticResource phonefontsizenormal} "foreground=" {StaticResource PhoneForeground Brush} "supportedorientations=" Portrait "orientation=" Portrait "shell:systemtray.isvisible=" False "XM lns:sys= "Clr-namespace:system;assembly=mscorlib" > &LT 
                Grid x:name= "LayoutRoot" > <!--Panorama-Panorama control Title-panorama title 
   
            Background-panorama background--> <controls:panorama x:name= "Panorama" title= "Title" > <controls:Panorama.Background> <imagebrush imagesource= "/CONTROLS/ASSETS/DIANDIAN.J PG "/> </controls:Panorama.Background> <!--panoramaitem-panor AMA's item header-panoramaitem the direction of the content in the title Orientation-panoramaitem (Vertical 
                or horizontal), the default value is Vertical--> <controls:panoramaitem header= "Item" > <Grid> <StackPanel> <textblock text= "I'm text, it's too long to wrap automatically" Styl E= "{StaticResource Phonetextlargestyle}" textwrapping= "Wrap"/> <textblock text= "I am the text, too long if not The "style=" {STATICR) will be wrapped automatically.Esource Phonetextlargestyle} "textwrapping=" NoWrap/> </StackPanel> </gr id> </controls:PanoramaItem> <controls:panoramaitem header= "Item" orientation = "Horizontal" > <Grid> <border borderbrush= "{StaticResource Phoneforegrou
                            Ndbrush} "borderthickness=" {StaticResource phoneborderthickness} "
                                   background= "#80808080" > <textblock text= "I'm a piece of text, and my display area is wide and wide." Style= "{StaticResource Phonetextextralargestyle}" horizontalalignment= "Center" Vert 
                Icalalignment= "Center" > </TextBlock> </Border> </Grid> </controls:PanoramaItem> <!--if needed Panoramai The contents of the TEM support drag-and-drop, which requires the OriEntation set to horizontal the contents of the following Panoramaitem can be dragged left and right, where the ListBox can be dragged up and down--> Controls:panoramaitem header= "Item" orientation= "horizontal" > <stackpanel orientation= "Horizont 
                        Al "> <listbox fontsize=" {StaticResource Phonefontsizelarge} "width=" "" 
                        <sys:String>a</sys:String> <sys:String>b</sys:String> 
                        <sys:String>c</sys:String> <sys:String>d</sys:String> 
                        <sys:String>e</sys:String> <sys:String>f</sys:String> <sys:String>g</sys:String> <sys:string>h</sys:strin G> <sys:String>i</sys:String> <sys:string>j</sys 
           :string>             <sys:String>k</sys:String> <sys:String>l</sys:String> 
                        <sys:String>m</sys:String> <sys:String>n</sys:String> <sys:String>o</sys:String> <sys:string>p</sys:strin G> <sys:String>q</sys:String> <sys:string>r</sys 
                :string> </ListBox> <textblock text= "Webabcd"/> </StackPanel> </controls:PanoramaItem> </controls:Panorama> </grid&gt 
   
; </phone:PhoneApplicationPage>

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.