2016-07-17 5 views
0

Ich versuche, eine sekundäre Kachel zu erstellen, aber ich möchte nur das Zeug auf der Rückseite der Kachel angezeigt werden. Ist dies möglich, wenn Sie auf WP8.0-Geräte abzielen?Wie man sekundäre Kacheln einfriert WP8.0

private void MenuItem0_Click(object sender, EventArgs e) 
    { 
     StandardTileData standardTileData = new StandardTileData(); 
     standardTileData.BackTitle = "AppTitle0"; 
     standardTileData.BackContent = "AppTitle1"; 
     standardTileData.BackBackgroundImage = new Uri("/Assets/red_background.png", UriKind.Relative); 
    } 

Antwort

-2

Anstatt StandardTileData zu verwenden, verwenden Sie IconicTileData. Dies hat nur eine (vordere) Seite zur Kachel.

//Creating a iconic tile class 
IconicTileData iconic = new IconicTileData() 
{ 
    Title = "iconic tile", 
    Count = 87, 
    WideContent1 = "Battery left 87%", 
    WideContent2 = "estimated time remainning", 
    WideContent3 = "21 hours 24 min", 
    SmallIconImage = new Uri("Images/Iconic.png", UriKind.Relative), 
    IconImage = new Uri("Images/Iconic.png", UriKind.Relative), 
}; 

//Always provide a unique tile navigation uri to the each secondary tile that is pinned through the application 
string tileuri = string.Concat("/MainPage.xaml?", "id=iconic"); 

if (tile == null) 
{ 
    //Creating a new secondary flip tile on start screen having the properties as provided by the Tiledata class 
    //and the navigation uri given by tileuri string member 
    ShellTile.Create(new Uri(tileuri, UriKind.Relative), iconic,true); 
} 

So erstellen Sie eine Iconic-Kachel.

+0

Ich möchte keine breite Kachel verwenden, um meine Informationen anzuzeigen. Ich möchte eine mittelgroße Fliese verwenden. – MacaronLover

Verwandte Themen