2013-10-28 91 views
1

我想在我的應用程序中使用「Pin啓動」功能。我並不想創建一個次平鋪如下面的代碼:從Windows手機應用程序中的代碼開始銷售

StandardTileData NewTileData = new StandardTileData 
{ 
    BackgroundImage = new Uri("Red.jpg", UriKind.Relative), 
    Title = "Secondary Tile", 
    Count = 12, 
    BackTitle = "Back of Tile", 
    BackContent = "Welcome to the back of the Tile", 
    BackBackgroundImage = new Uri("Blue.jpg", UriKind.Relative) 
}; 

// Create the tile and pin it to Start. This will cause a navigation to Start and a deactivation of our application. 

ShellTile.Create(new Uri("/SecondaryTile.xaml?DefaultTitle=FromTile", UriKind.Relative), NewTileData); 

而且,我不想當圖標固定到開始屏幕上的應用程序退出。

回答

3

據我所知,沒有辦法以編程方式將您的主應用程序磁貼固定到開始屏幕,只有次要的應用程序磁貼。 (請參閱here

當您創建輔助磁貼時,操作系統將自動在開始屏幕上顯示新磁貼。 (並在此過程中停用您的應用程序)我很確定這是無法解決的。抱歉!

相關問題