Source CODE:HTTP://AKA.MS/ABSBEGINNERDEVWP8 PDF version:http://aka.ms/absbeginnerdevwp8pdf
We've discussed the XAML basics, layouts, and events, so let's discuss some interesting topics in this lesson. We will give the application unique features by setting the style of the application. Obviously we have to follow Microsoft's guidelines to make our applications look like part of the WindowsPhone 8 ecosystem, but we also have a lot of freedom of personalization applications.
The plan for this lesson is:
We will change the tile icon for the phone application list and the Start screen.
We will access the theme colors of the user's phone and incorporate them into the color of our application so that we will learn some very important XAML syntax features called binding expressions.
Finally, we'll discuss creating reusable styles in your application.
1. Replace the application's tile icon
The first task in this lesson is to change the application's tiles, and the user will see it in the alphabetical list of applications and in the Start screen (if the user fixed the tile to the start screen). First, we'll open the Wmappmanifest.xml file in the project's property directory:
When you double-click the file in Solution Explorer, it opens in a special designer window that provides options for many applications to be introduced to the Windows Phone 8 operating system. For example, in the first tab, "Application Interface (Application UI)", we can change the display name, the application icon, and more:
We need to change the default icon to a more appropriate icon for our application. I have created this icon and it is in the C9phone8\petsounds_assets folder. The material for this series can be obtained from the download of this document or from this video.
Applicationicon.png is located in the above folder:
See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/OS/extra/