Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to create a web page on the shell tile for wp7
    primarykey
    data
    text
    <p>I have created a web browser for wp7. Below is the codes i have used in my app. But what happens is the image is blank(white image)<strong>See Image Below</strong>. Can anybody help me with this? Thanks for your help.</p> <pre><code>private void PinToStart_Click(object sender, EventArgs e) { string _url = UrlTextBox.Text; ShellTile TileToFind = ShellTile.ActiveTiles.FirstOrDefault(x =&gt; x.NavigationUri.ToString().Contains("url=" + _url)); using (var store = IsolatedStorageFile.GetUserStoreForApplication()) { var bmp = new WriteableBitmap(173, 173); var tt = new TranslateTransform(); tt.X = 0; tt.Y = 0; bmp.Render(browsers[this.currentIndex], tt); bmp.Invalidate(); var filename = "/Shared/ShellContent/01d.jpg"; using (var st = new IsolatedStorageFileStream(filename, FileMode.OpenOrCreate, FileAccess.Write, store)) { bmp.SaveJpeg(st, 173, 173, 0, 100); } } // Create the Tile if we didn't find that it already exists. if (TileToFind == null) { StandardTileData NewTileData = new StandardTileData { BackgroundImage = new System.Uri("isostore:/Shared/ShellContent/01d.jpg", System.UriKind.Absolute), Title = string.Format(_url.Substring(7)), BackTitle = "Browser", BackContent = (string)_url.Substring(7), BackBackgroundImage = new Uri("", 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("/Web.xaml?passedUrl=" + _url, UriKind.Relative), NewTileData); } else { MessageBox.Show("A live tile already created for this service. Please check it out!!!"); } } </code></pre> <p><img src="https://i.stack.imgur.com/7de0j.jpg" alt="enter image description here"></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload