Windows 8 Applications Development with HTML5 For Dummies by By Bill Sempf

Windows 8 Applications Development with HTML5 For Dummies by By Bill Sempf

Author:By Bill Sempf
Language: eng
Format: epub
Publisher: Wiley Publishing
Published: 2012-10-30T16:00:00+00:00


Figure 8-3: Tiles in the package.appxmanifest file.

Scroll down a little to find the tile section of the file. Notice the logo and small logo items have files associated with them. The logo file is what is used to make the tile image in the new project deployment.

There isn’t a wide logo defined, and unsurprisingly there isn’t a wide tile option for a default app in the Start screen. You can see what I mean by right-clicking the project and selecting Deploy. When deployment is done, go to the Start screen, right-click the new tile, and check the app bar. Is there a wide option? Nope.

You can change that. Create an image that is 310 pixels wide and 150 tall and put it in the Images folder of the project. I used Windows Paint to make mine. You can use whatever tool you wish as long as it produces a .gif, .jpeg or .png file. Even Visual Studio has an image editor now.

When the file is in the Images folder, click the Browse button next to Wide Logo in the package.appxmanifest editor and find the file you loaded. I called mine WideLogo.png. When the file is shown in the editor, right-click the project and select Deploy again.

Now press the Windows key and check out the tile. It will default to the wide tile, and the user now has an option to change to the smaller tile. The existence of the Wide Logo in the app manifest defines what tile size your app starts with.

Along those lines, if you fill in the Short Name field in the manifest editor, that appears in the Name region of the Tile, as shown in Figure 8-4. This value is editable in the code, so you can use it to do more than just pass the name on to the user.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.