Feature(特性)之搜尋的可擴充性, 程式的生命週期和頁面的生命週期, 頁面導航, 系統狀態列
介紹
與眾不同 windows phone 7.5 (sdk 7.1) 之特性
搜尋的可擴充性
程式的生命週期和頁面的生命週期
頁面導航
系統狀態列
樣本
1、關於搜尋的可擴充性
SearchExtensibility.xaml
<phone:PhoneApplicationPage x:Class="Demo.Feature.SearchExtensibility" 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:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" FontFamily="{StaticResource PhoneFontFamilyNormal}" FontSize="{StaticResource PhoneFontSizeNormal}" Foreground="{StaticResource PhoneForegroundBrush}" SupportedOrientations="Portrait" Orientation="Portrait" mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480" shell:SystemTray.IsVisible="True"> <Grid x:Name="LayoutRoot" Background="Transparent"> <TextBlock VerticalAlignment="Top" TextWrapping="Wrap" Text="關於搜尋的可擴充性:由於需要與“搜尋”按鈕的 bing 整合,而對於相關的 n 多 bing 特性中國又不支援,所以就不寫 Demo 了" /> </Grid> </phone:PhoneApplicationPage>
2、頁面的生命週期
LifeCycle.xaml
<phone:PhoneApplicationPage x:Class="Demo.Feature.LifeCycle" 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:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" FontFamily="{StaticResource PhoneFontFamilyNormal}" FontSize="{StaticResource PhoneFontSizeNormal}" Foreground="{StaticResource PhoneForegroundBrush}" SupportedOrientations="Portrait" Orientation="Portrait" mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480" shell:SystemTray.IsVisible="True"> <Grid x:Name="LayoutRoot" Background="Transparent"> <StackPanel Orientation="Vertical"> <HyperlinkButton Content="導航到主介面" NavigateUri="/MainPage.xaml" /> <TextBlock Name="lblMsg" Text="請模擬器調試,查看 Output 視窗" /> </StackPanel> </Grid> </phone:PhoneApplicationPage>