Friday 15 May 2015

c# - Custom Wide Tile in Windows Phone 8 -


I currently have the code below that creates a custom layout for the tile, only small and medium and large scale Varies on

I need to update the code to support the extended tile of Windows 8 phone, but where should I optimize the text

The code uses a template where I can change the tile background and text position.

Any thoughts on how I can do this in a comprehensive tile? And to be able to get out in many lines of text too.

  shell tile tilfofind = silly.activiltels First and default (x = & gt; x.NavigationUri.ToString (). This includes (Bus Stations name. Text)); Tile Control Monty = New Tile Control (); TileName = ""; TileName = Just Aesthetnam Text; Tiled Data TileData = New Tiled Data () {Text1 = busStopName.Text}; FrontTile.DataContext = Tiled Data; Tiles in front. Existence (new size (173, 173)); FrontTile.Arrange (new rectangle (0, 0, 173, 173)); Var BMP = new writable bitmap (173, 173); BMP. Render (frontline, empty); Bmp.Invalidate (); Var isf = IsolatedStorageFile.GetUserStoreForApplication (); Var Filename = "/ Shared / Shell Content /" + Bus StopName Text + ".jpg"; (Var stream = isf.OpenFile (file name, System.IO.FileMode.OpenOrCreate)) (bmp.SaveJpeg (stream, 173, 173, 0, 100);} Var data = new standardtitle {background image = new Uri ("Isostor: / shared / shell content" + + busstopnaym test + ".jpg", Uricund.zolute)} Shell tile.Composition (new urie ("/ live times.xml? Name =" + just stapename text, Urekind.relative), data); There is an additional surcharge for the construction of Chalilit, which specifies the alternative boolean logic Whether it is a wide tile or not.  

Check out my blog post

BTW requires you to use new tile templates like FlipTileData and that can not support StandardTileData extensively and is inherited from # wp7.5

  fliptyledata tiledata = new fliptyledata () {title = "[top ], Backtrack = "[back [of title] [tile]", backcountant = "[behind medium tile-sized content]", wide content content = "[behind detailed tile-size content]", calculation = [count], Small background image = [small tile size URI], background image = [front of medium tile size URI], back background image = [middle tile size URI], wide backgroundground image = [wide tile size URI front], widebackbackground image = [ Strit URI tile size] [};}; Shell tile Composition (new Uri ("/ live times. Xml? Name =" + just sitapname. Text, uricind, relativative), til datas, truth);    

No comments:

Post a Comment