Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Saturday, September 28, 2013

VideoChooserTask :: MediaChooserTask in WP8


VideoChooserTask &  MediaChooserTask not available in default chooser  Windows Phone 8

So We can Use  MedialLibrary it will give you access to  existing Songs & Video


Namespace: Microsoft.Xna.Framework.Media



 using(MediaLibrary library = new MediaLibrary())
            {
                SongCollection songscollection = library.Songs;
                Song song = songscollection [0];
                MediaPlayer.Play(song);
            }

Dev FeedBack:

Please follow below link for update

http://wpdev.uservoice.com/forums/110705-dev-platform/suggestions/1897833-video-chooser-task

Tuesday, August 6, 2013

Windows Phone Application Development Event Life Cycle


Windows Phone Application Development Event  Life Cycle

It is important for development to know Application life Cycle so that they can understand well

Easy to understand using below image:

Step 1:

 

Step 2:



I believe now you are understanding well, we can discuss briefly about application life cycle below

Event and States together make up for an application life cycle .In windows phone application life cycle events (4 type of event)

Windows Application life cycle Events:

1.    Launching
2.    Deactivated
3.    Activated
4.    Closing

Windows mobile have 3 type of application state

1.    Running
2.    Dormant
3.    Tombstoned

Events lead to change the application state




1. Launch Event:

1. This event is raised when user launch the application
         è Mostly avoid this event for Application will get load quickly

Application Launching Event coding:( App.xaml.cs)

            // Code to execute when the application is launching (eg, from Start)
        // This code will not execute when the application is reactivated
        private void Application_Launching(object sender, LaunchingEventArgs e)
        {

        }

 1.1Running State:

            1. Once the application is launched its goes into Running state
            When Running State will appear?
1.    This state is on till the user doesn't navigate away from application
2.    The Phone is in Lock mode

 2. Deactivated Event:

          The user goes away from your application this event is raised
           In this application context and page should be saved
           When this application reactivated, that time save state should be restore

  Coding( App.xaml.cs)

  // Code to execute when the application is deactivated (sent to background)
        // This code will not execute when the application is closing
        private void Application_Deactivated(object sender, DeactivatedEventArgs e)
        {
        }

2.1        Dormant State:

-       Deactivated event goes into dormant state
-       In Dormant State the application is stopped ,but application in phone memory
-       Again application activate state that time phone need more memory,
(While activate application, that time state convert into Tombstoned state)

2.2        Tombstoned State:

-Once an application is terminated its goes into tombstoned state
-In this state the data and application state information preserved for maximum 5 application

3. Activated Event

When user switch back to a dormant or tombstoned application, this event is fired.
Developer should check the IsApplicationInstancePreserved property to know if the application is returning from being dormant or tombstoned state.
If it's value true, then the application was in dormant state else tombstoned state.


Coding: App.xaml.cs

        // Code to execute when the application is activated (brought to foreground)
        // This code will not execute when the application is first launched
        private void Application_Activated(object sender, ActivatedEventArgs e)
        {
            if (e.IsApplicationInstancePreserved == true)
            {
                //Dormant state
            }
            else
            {
                //tombstoned  state
            }

        }

4.Close Event

When the user navigates backwards from the first page of application, this event is fired.
Application gets terminated in this event and you get only 10 seconds to save any data if required.
For your Info : User does not have API for close application

Coding: App.xaml.cs

       // Code to execute when the application is closing (eg, user hit Back)
        // This code will not execute when the application is deactivated
        private void Application_Closing(object sender, ClosingEventArgs e)
        {
        }




Thursday, August 1, 2013

LESS extends CSS with dynamic behavior such as variables, mixins, operations and functions.

                        Dot - Less {}

                                     Dynamic CSS for .Net

LESS extends CSS with dynamic behavior such as variables, mixins, operations and functions.

Download latest dot less package  http://www.dotlesscss.org/  ,

Sunday, April 28, 2013

Disable Right Click in IE

Java Script:

<script language="javascript">
document.onmousedown=disableclick;
status="Right Click Disabled";
Function disableclick(e)
{
  if(event.button==2)
   {
     alert(status);
     return false;    
   }
}
</script>

HTML Coding:

<body oncontextmenu="return false">
...
</body>

Thursday, March 7, 2013

VS Deployment Tool

How to deploy Application in VS 2012

1.      Click Once Deployment

a.       Right Click Solution èPublish

2.      InstallShield

a.       Right Click Solution èAdd New Project èSelect InstallShield(http://www.installshield.com/)

3.      Wix(Windows Installation)

a.       Open source Tool  more info http://wix.codeplex.com/

Saturday, March 2, 2013

Free !! Free!! Free !! Microsoft professional-level developer and designer tools at no cost

Hi All,

Microsoft  all about giving students Microsoft professional-level developer and designer tools at no cost so that students can chase their dreams and create the next big breakthrough in technology - or just get a head start on their career.

Microsoft helps educators teach the latest technologies and experiment in research. Microsoft knows that to make learning more motivating, relevant, and engaging for today's students requires a diverse set of resources. Microsoft gives educators the resources to ensure their classrooms always have the latest technologies to challenges, motivate, and keep students engaged in new ways.

Microsoft is also a subscription for Academic Institutions: it provides a cost-effective way to put Microsoft developer tools, platforms and servers in labs and classrooms, and on their students' and faculty's computers for learning and research purposes. It reduces lab costs and teaching budgets.

Free !! Free !! Free!!!

 Create Account and download all latest Microsoft software  More Info : https://www.dreamspark.com/Student/Software-Catalog.aspx



Windows Phone and Windows Store Certification details



-
 
-- Thanks & Regards
      Suthahar.J