原創|使用教程|編輯:郝浩|2015-07-28 14:25:10.000|閱讀 597 次
概述:這篇文章提供了Windows Phone開發的基礎教程。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
這是本系列的第1部分。在進行開發的過程之前,我將解釋Windows Phone的基礎知識。第1部分涵蓋了以下三個開發的基本主題:
首先從該下載并安裝用于Windows Phone 7系列的全部開發工具。在安裝完先前的SDK 7.1之后,訪問該對版本進行升級。
Windows Phone SDK包含以下內容:
首先從File菜單選擇New project,然后選擇Window Phone Application并輸入應用程序名稱,選擇存儲位置。
來看Windows Phone默認的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在內的各種控件。
<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" />
本文翻譯自
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn