EvenTiles from Start to Finish–Part 1
Join the DZone community and get the full member experience.Join For Free
as i promised a few days ago, in between other blog entries i will
show you how to create a complete windows phone application from
scratch. this project starts with running visual studio to create an
initial solution and it stops after having updated the application a few
times and successfully submitted each different version to marketplace.
initially i will focus on creating the application without thinking too
much about testability and reusability.
i just show you the possibilities of visual studio, the emulator and later on expression blend, marketplace and additional tools. later in this project we shift focus towards creating a more maintainable application, also using modern design patterns like mvvm. this series of articles is not meant to be a complete programming course for windows phone. if you want to know more about developing applications in c#, you should take a look at the rob miles ’ yellow book . not only an excellent resource to learn the c# programming language but also fun to read. if you want to learn more about windows phone application development, i can highly recommend rob miles’ blue book , and charles petzold’s book titled programming windows phone 7 . the good news is that all these books can be downloaded for free and they are all very valuable resources.
ok, back to application development. in this first part, you will learn how to create the initial solution for your project, how to modify the default application tile , how to write something on the back of the application tile through the manifest file and how to modify the default icon. you will also see the application in action for the first time. all steps that are necessary are not only documented, but also accompanied by a short video that can be viewed in this blog entry as well. if you already want to have a sneak preview of the application we are going to develop, it will be published on marketplace soon. i will update this line with the link to the application once it has been certified.
to begin with, we create a new windows phone silverlight application, call it eventiles and modify both the applicationicon.png and the background.png files to have a transparent icon for the application and a transparent application tile. the cool part about adding transparency is that the area’s of the art work that are transparent show up in the theme accent color that is selected by the user of the phone. of course we are also setting the application name and a page name on the application’s main page.
for this first version of eventiles we are not going to add additional functionality, although we will change the behavior of the application tile. instead of showing a static application tile, we want it to alternate between displaying the front and the back. we can achieve this by providing back side content for the application tile. this can actually be done in code, but also by adding definitions for background content to the application’s manifest file. each windows phone application has a manifest file with the name wmappmanifest.xml that contains information about the application, including an optional definition of content that needs to be displayed on the back side of the application tile. we will modify the wmappmanifest file to specify what we want to see on the back side of the application tile (as shown in the following code snippet):
in order to clearly see the content on the back side of the application tile, it’s image is simply an entirely transparent image, meaning it will show a solid theme color as background of the back side content.
if you deploy this application to the emulator or to a real device, you will see a rotating application tile after you have pinned the application to the start screen. you can watch the application being created in this video:
Opinions expressed by DZone contributors are their own.