原創(chuàng)|使用教程|編輯:郝浩|2015-07-28 14:25:10.000|閱讀 597 次
概述:這篇文章提供了Windows Phone開發(fā)的基礎(chǔ)教程。
# 界面/圖表報(bào)表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
相關(guān)鏈接:
這是本系列的第1部分。在進(jìn)行開發(fā)的過程之前,我將解釋W(xué)indows Phone的基礎(chǔ)知識(shí)。第1部分涵蓋了以下三個(gè)開發(fā)的基本主題:
首先從該下載并安裝用于Windows Phone 7系列的全部開發(fā)工具。在安裝完先前的SDK 7.1之后,訪問該對(duì)版本進(jìn)行升級(jí)。
Windows Phone SDK包含以下內(nèi)容:
首先從File菜單選擇New project,然后選擇Window Phone Application并輸入應(yīng)用程序名稱,選擇存儲(chǔ)位置。
來看Windows Phone默認(rèn)的UI面板元素Grid和Stack Panel。
<StackPanel x:Name="TitlePanel" Grid.Row="0" <TextBlock x:Name="ApplicationTitle" Text="MY APPLICATION" Style="{StaticResource PhoneTextNormalStyle}"/> <TextBlock x:Name="PageTitle" Text="page name Style="{StaticResource PhoneTextTitle1Style}"/> </StackPanel>
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0"> <Button x:Name="Button" Content="Button" Height="95" ></Button> <TextBlock x:Name="TextBlock" Text="This is TextBlock" Height="95" ></TextBlock> <Image x:Name="Image" Height="100" Margin="6,378,-6,129" Source="/PhoneApp1;component/Images/Chrysanthemum.jpg"></Image> </Grid>
Windows Phone 7提供了包含Button、TextBox、TextBlock、Image和HyperLink在內(nèi)的各種控件。
<Button x:Name="Button" Content="Button" Height="95" ></Button>
<TextBlock x:Name="TextBlock" Text="This is TextBlock" Height="95" ></TextBlock>
<TextBox x:Name="MyTextBox" Text="Hai" Height="95" Margin="0,98,0,0" VerticalAlignment="Top"></TextBox>
<Image x:Name="Image" Height="100" Margin="12,320,-12,187" Source="/PhoneApp1;component/Images/Chrysanthemum.jpg"></Image>
<HyperlinkButton Content="HyperlinkButton" Height="44" HorizontalAlignment="Left" Margin="12,450,0,0" Name="hyperlinkButton1" VerticalAlignment="Top" Width="258" />
本文翻譯自
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請(qǐng)務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請(qǐng)郵件反饋至chenjj@fc6vip.cn