Introduction to WP
Windows Phone App development is getting popularity day by day. It’s a Microsoft technology that is a gift for the .NET developer. We .NET developers are very lucky that we are not only limited to we development only. Microsoft has given us the power to create any kind of Application weather it is desktop , Web or mobile.
Windows phone code writing is similar to WPF code writing. In WPF we use XAML to Design UI and same here in windows Phone Development. Following are the technology used in Windows phone App development:
- UI defined using XAML
- Logic written using C# or VB language
- Access .NET APIs , Windows Phone Runtime APIs other API also
- SQL lite Database is used for the local system storage
- Telerik controls
Windows Phone 8 requirements
Below are the requirements that required if you are going to create WP App:
- OS(operating systems) Support: Windows 8: Windows 8
- Hardware: 4 GB of free hard disk space, 4 GB RAM, 64-bit (x64) CPU
- Emulator Support: Windows 8 Pro edition Emulator or greater
- IDE visual studio 10,12,13
What’s in an App Package
AppManifest file contains all information required to deploy the application
WM appManifest enable all the device capability and requirement specification.
App Manifest and Capabilities
- Explicitly declares application integration endpoints
- File capabilities (music/pictures/videos/documents libraries, removable storage)
- Devices capability(webcam, microphone, SMS etc);
- Extensible to new device classes – user consent involved
- Network and identity (internet, private network, credentials)
- File type associations
- App contracts (search)
- Defines app branding and logos
Properties: It contains Appmainfest and WMAppMainfest file to deploy application.
Assets: Images are placed inside Assets Folder.
Resources: it contains all the resource file that needs to run application.
App.xaml & App.xaml.cs
- Handle all Incoming Request
- End Application Request
- Global declaration
- App.xaml is for common namespaces
- We can Declare our Global variable in App.xaml.cs class
Following are the methods that is used by default in App class. We will discuss later about these methods in our next blog.
- Application_Launching(object sender, LaunchingEventArgs e)
- Application_Activated(object sender, ActivatedEventArgs e)
- Application_Deactivated(object sender, DeactivatedEventArgs e)
- Application_Closing(object sender, ClosingEventArgs e)
- RootFrame_NavigationFailed(object sender, NavigationFailedEventArgs e)
- Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
It is Just a Image with name Splash.It will run first when App start.First time when your application runs, it will ask you for the image and image is only the splash image. Image name is fixed i.e “splash“.
- Open VS and select Visual C# then select Windows Phone. Press Ok and it will create some default folder.
- Open Solution Explorer and you will find the default structure of App.
- Open mainpage.xaml and write XAML code to design your UI as mention in below Image.
- VS provide you the facility to check how your UI is going to display after run. So you can check your design simultaneously. From Top toolbar menu Select the Emulator option and click on Debug green icon.
- After successful debug an Emulator will popup and you can check your App, how it looks like and wok.
So, we are done with our first App. We have create our one simple Application just in Five steps.