Friday, July 23, 2010

Many Connections Can Wireless Router Handle

Hello World on Windows Mobile 7

First application created using the development environment for Windows 7 Phone

--------------- -------- MainPage. xaml -----------------------

\u0026lt;phone: PhoneApplicationPage
x: Class = "SilverlightHelloPhone.MainPage"
xmlns = "\u0026lt;a href =" http://schemas.microsoft.com/winfx/ 2006/xaml/presentation ""> http://schemas.microsoft.com/winfx/2006/xaml/presentation "\u0026lt;/ a>
xmlns: x = "\u0026lt;a href="http://schemas.microsoft.com/winfx/2006/xaml""> http:// schemas.microsoft.com/winfx/2006/xaml "\u0026lt;/ a>
xmlns: phone =" clr-namespace: Microsoft.Phone.Controls; assembly = Microsoft. Phone "
xmlns: shell =" clr-namespace: Microsoft.Phone.Shell; Microsoft.Phone assembly = "
xmlns: d = "\u0026lt;a href = "http://schemas.microsoft.com/expression/blend/2008" "> http://schemas.microsoft.com/expression/blend/2008" \u0026lt;/ a>
xmlns: mc = "\u0026lt;a href="http://schemas.openxmlformats.org/markup-compatibility/2006""> http://schemas.openxmlformats.org / markup-compatibility/2006 "\u0026lt;/ a>
FontFamily =" {static resource phone FontFamily normal} "
font size = "{static resource phone font size normal}"
Foreground = "{static resource PhoneForegroundBrush}"
SupportedOrientations = " portrait "orientation =" portrait "
mc: Ignorable =" d "d: design width =" 480 "d: design height =" 768 "
shell: SystemTray.IsVisible = "True">

    <!--LayoutRoot contains the root grid where all other page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="24,24,0,12">
            <TextBlock x:Name="ApplicationTitle" Text="Silverlight Prima Applicazione" Style="{StaticResource PhoneTextNormalStyle}"/>
\u0026lt;TextBlock x: name = "page title" text = "Prova" Margin = "-3, -8,0,0" Foreground = "Green" style = "{static resource PhoneTextTitle1Style}" />
\u0026lt;/ StackPanel>

; \u0026lt;- Content panel - place additional content here ->
\u0026lt;Grid x: Name = "content grid" Grid.Row = "1">
& # 160; \u0026lt;TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Text="Hello World"/>
& # 160; </Grid>
    </Grid>
   
    <!-- Sample code showing usage of ApplicationBar
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            \u0026lt;shell:ApplicationBarIconButton x:Name="appbar_button1" IconUri="/Images/appbar_button1.png" Text="Button 1"> \u0026lt;/ shell: ApplicationBarIconButton>
& # 160; \u0026lt;shell: ApplicationBarIconButton x: Name = "appbar_button2" IconUri = "/ Images/appbar_button2.png" Text = "Button 2"> \u0026lt;/ shell: ApplicationBarIconButton>
\u0026lt;shell: ApplicationBar . MenuItems>
& # 160; \u0026lt;shell:ApplicationBarMenuItem x:Name="menuItem1" Text="MenuItem 1"> \u0026lt;/ shell: ApplicationBarMenuItem>
& # 160; \u0026lt;shell:ApplicationBarMenuItem x:Name="menuItem2" Text="MenuItem 2"> \u0026lt;/ shell: ApplicationBarMenuItem>
\u0026lt;/ shell: ApplicationBar.MenuItems>
\u0026lt;/ shell: ApplicationBar>
\u0026lt;/ phone: PhoneApplicationPage.ApplicationBar>
->


\u0026lt;/ phone: phone application page>

--------------------- - WMAppManifest xml -----------------------

\u0026lt;xml version = "1.0" encoding = "utf-8".? >

\u0026lt;deployment xmlns = "\u0026lt;a href="http://schemas.microsoft.com/windowsphone/2009/deployment""> http://schemas.microsoft.com/windowsphone/ 2009/deployment "\u0026lt;/ a> AppPlatformVersion =" 7.0 ">
\u0026lt;app xmlns = "" ProductID = "{21f4b1b7-ea7e-4446-be0a-415d4eec8e3f}" title = "Hello Silverlight Phone" runtime type = "Silver Light" version = "1.0 .0.0 "Genre =" apps.normal "Author =" hello phone silverlight author "Description =" Sample description "Publisher =" silverlight hello phone ">
; \u0026lt;IconPath IsRelative="true" IsResource="false"> ApplicationIcon.png \u0026lt;/ IconPath>
\u0026lt;Capabilities>
\u0026lt;Capability Name="ID_CAP_NETWORKING" />
\u0026lt;Capability Name="ID_CAP_LOCATION" />
\u0026lt;Capability Name="ID_CAP_SENSORS" />
\u0026lt;Capability Name="ID_CAP_MICROPHONE" />
\u0026lt;Capability Name="ID_CAP_MEDIALIB" />
\u0026lt;Capability Name="ID_CAP_GAMERSERVICES" />
\u0026lt; ; Capability name = "ID_CAP_PHONEDIALER" />
\u0026lt;Capability Name="ID_CAP_PUSH_NOTIFICATION" />
\u0026lt;Capability Name="ID_CAP_WEBBROWSERCOMPONENT" />
\u0026lt;/ capabilities>
\u0026lt;Tasks>
; \u0026lt;DefaultTask Name ="_default" NavigationPage="MainPage.xaml"/>
\u0026lt;/ tasks>
\u0026lt;Tokens>
& # 160; \u0026lt;PrimaryToken TokenID="SilverlightHelloPhoneToken" TaskName="_default">
& # 160; \u0026lt;TemplateType5>
\u0026lt;BackgroundImageURI IsRelative="true" IsResource="false"> Background.png \u0026lt;/ BackgroundImageURI>
& # 160; \u0026lt;Count> 0 \u0026lt;/ Count>
& # 160; \u0026lt;Title> silverlight hello phone \u0026lt;/ Title>
\u0026lt;/ TemplateType5>
\u0026lt;/ PrimaryToken>
\u0026lt;/ Tokens>
\u0026lt;/ App>
\u0026lt;/ Deployment>

-------------------------------- -------------------------------------

Cattura

0 comments:

Post a Comment