" Live as if you were to die tomorrow. Learn as if you were to live forever.. "
- Mahatma Gandhi

Recording And Playing Recorded Audio in Windows Phone 7

Posted on November 24th, 2015 by Anobik Dey

This code has been implemented to record audio from the microphone and play it in device/ emulator using XNA framework provided for Windows phone. This code will Require a reference to Microsoft.XNA.Framework. This code consists of two parts: Code for MainPage.xaml <!–LayoutRoot is the root grid where all page content is placed–> <Grid x:Name=”LayoutRoot” Background=”Transparent”> […]

Navigation in Windows Phone 7

Posted on November 24th, 2015 by Anobik Dey

1 ) All the contents in the xaml Page should be places inside the       <phone:PhoneApplicationPage></phone:PhoneApplicationPage> TAG     for Windows Phone This code will contain 5 Files : 1 ) NavigatePage.xaml 2 ) Navigatepage.xaml.cs 3 ) NavigatepageViewModal.cs 4 ) Navigationutility.cs 5 ) ButtonClickCommand.cs ——————*————————— Code for NavigatePage.xaml * This page contains a button whose click event will direct you […]

Obtaining Latitude And Longitude In Windows Phone 7

Posted on November 24th, 2015 by Anobik Dey

This Demo needs a reference to System.Device dll for the use of GeoCoordinateWatcher class present in System.Device.Location namespace. The description of the Geolocation class and step by stem guide is presented below along with the code in commented format. It consists of two pages: 1 ) MainPage.xaml 2 ) MainPage.xaml.cs Code for MainPage.xaml :   <Grid x:Name=”ContentPanel” […]

Giving alternate color to each row of ListBox in Windows phone 7

Posted on November 24th, 2015 by DEBASHRITA SWAIN

As is generally known there is no DataGrid available under the Silverlight for Windows Phone platform at the moment. And many times we come across a situation where we need to display data as in the DataGrid with rows having alternate colors. Here are the steps of the work around to get the desired result. First […]

Working with Windows Phone Application and Secondary Tiles

Posted on November 24th, 2015 by DEBASHRITA SWAIN

Lets first learn something about Windows Phone Tiles Live Tiles represent an application on the Windows Phone Start screen, and when selected provide a link to a URI within the application. Tiles are two-sided and randomly switch between sides. Both sides have a title and background image, the front side also displays a counter while […]

Retrieve The Controls Present Inside The ListBox ItemTemplate in Windows Phone 7

Posted on November 24th, 2015 by DEBASHRITA SWAIN

As in Windows Phone 7 we generaly display lists of Data in the ListBox. So many times we came across the problem of retrieving the controls inside the ListBox itemTemplate. As we can take the example of buttons inside the ListBoxItem and on those Button click we can view the RowDetails.As in Windows Phone 7 […]

How to use Application Bar in Windows Phone 7

Posted on November 24th, 2015 by Debashrita Swain

Before going to the steps need to follow for using application bar lets us know something about Application bar in windows phone. 1.Why we need an Application Bar   In every application we need some menus for navigating to some specific screens or to do some common  operations like save,delete     update etc .so we […]

Using Interaction Triggers to bind Events to View Modals

Posted on November 24th, 2015 by Anobik Dey

he method of binding Events to View Modals only differs in the Xaml, rest of the Code remains the Same. Note: 1 ) All the contents in the xaml Page should be places inside the <phone:PhoneApplicationPage></phone:PhoneApplicationPage> TAG for Windows Phone And <UserControl></UserControl> for Silverlight Applications. 2) This also requires a reference to System.Windows.Interactivity dll. This […]

Binding Button Click Command with ViewModal

Posted on November 24th, 2015 by Anobik Dey

As a part of MVVM all the events should be handled in the ViewModal. Note: 1 ) All the contents in the xaml Page should be places inside the <phone:PhoneApplicationPage></phone:PhoneApplicationPage> TAG for Windows Phone And <UserControl></UserControl> for Silverlight Applications This example consistes of 4 parts : 1 ) ButtonCommandBinding.cs 2 ) ButtonClickCommandBindingViewModal.cs 3 ) ButtonClickCommandBinding.xaml.cs […]

Downloading an Image from an external (Image) URL

Posted on November 24th, 2015 by Anobik Dey

The url has to be an Image URL, ending with jpeg, png, jpg, gif Note: 1 ) The entire code has not be en implemented following the MVVM pattern Every thing has been done from the code behind just for example purpose. 2 ) The Project should also have a reference to * Microsoft.Xna.Framework.dll * […]

Displaying Images stored in Device Media Library

Posted on November 24th, 2015 by Anobik Dey

Displaying Images Stored in Device Media Library Note: 1 ) The entire code has not be en implemented following the MVVM pattern Every thing has been done from the code behind just for example purpose. 2 ) The Project should also have a reference to * Microsoft.Xna.Framework.dll * 3 ) All the contents in the […]

Display Popup Box in Windows

Posted on November 24th, 2015 by Anobik Dey

This program displays a popup box with hello world text To Display a Popup in windows phone 7, First of all create two PhoneApplicationPage For Example : 1- MainPage.xaml -> Startup Page for the Application in which popup will be shown 2- PopupView.xaml -> Popup page that contains all the stuff to be displayed in the […]

Display Popup Box in Windows

Posted on November 24th, 2015 by Anobik Dey

This program displays a popup box with hello world text To Display a Popup in windows phone 7, First of all create two PhoneApplicationPage For Example : 1- MainPage.xaml -> Startup Page for the Application in which popup will be shown 2- PopupView.xaml -> Popup page that contains all the stuff to be displayed in the […]

Displaying Images stored in Device Media Library

Posted on November 24th, 2015 by Anobik Dey

Displaying Images Stored in Device Media Library Note: 1 ) The entire code has not be en implemented following the MVVM pattern Every thing has been done from the code behind just for example purpose. 2 ) The Project should also have a reference to * Microsoft.Xna.Framework.dll * 3 ) All the contents in the […]

Downloading an Image from an external (Image) URL

Posted on November 24th, 2015 by Anobik Dey

The url has to be an Image URL, ending with jpeg, png, jpg, gif Note: 1 ) The entire code has not be en implemented following the MVVM pattern Every thing has been done from the code behind just for example purpose. 2 ) The Project should also have a reference to * Microsoft.Xna.Framework.dll * […]

Using Interaction Triggers to bind Events to View Modals

Posted on November 24th, 2015 by Anobik Dey

The method of binding Events to View Modals only differs in the Xaml, rest of the Code remains the Same. Note: 1 ) All the contents in the xaml Page should be places inside the <phone:PhoneApplicationPage></phone:PhoneApplicationPage> TAG for Windows Phone And <UserControl></UserControl> for Silverlight Applications. 2) This also requires a reference to System.Windows.Interactivity dll. This […]

Binding Button Click Command with ViewModal

Posted on November 24th, 2015 by Anobik Dey

As a part of MVVM all the events should be handled in the ViewModal. Note: 1 ) All the contents in the xaml Page should be places inside the <phone:PhoneApplicationPage></phone:PhoneApplicationPage> TAG for Windows Phone And <UserControl></UserControl> for Silverlight Applications This example consistes of 4 parts : 1 ) ButtonCommandBinding.cs 2 ) ButtonClickCommandBindingViewModal.cs 3 ) ButtonClickCommandBinding.xaml.cs […]

How to Connect Windows Phone With WCF Service

Posted on November 23rd, 2015 by DEBASHRITA SWAIN

These are the follwing steps we need to follow to connect windows  phone with wcf service 1.Creation of service 2.Hosting the service in IIS 3.Connecting from the windows phone step 1: >> First we need to create a wcf service.and put it in the D drive.Lets name it as WinPhoneWcfService. For the connectivity to DataBase […]

Getting Images from Gallery and SD card in Smartphones using PhoneGap

Posted on November 23rd, 2015 by Sourabha Sahoo

If you want to get the images from device gallery or SD card, Phonegap can help you to do it by using the following method. 1.Include the Phonegap/Cordova javascript file inside your html page. 2.Create a function to get the images from specified source like Gallery or SD card. function getImage() { navigator.camera.getPicture(onSuccess, onFailure, { […]