A new home

I’ve made the move to WordPress!

You should be automatically redirected in 5 seconds. Please visit World Wide Code on Wordpress

Hope to see you there!

Sunday, July 24, 2011

Windows Phone 7 Profiler


The Windows Phone Profiling Tool lets developers measure, evaluate, and target performance-related issues in their code. These tools are fully integrated into the Visual Studio IDE to provide a seamless and approachable user experience.
Profiling a phone application is straightforward. You begin by creating a new performance session. After a performance session ends, data gathered during profiling is saved in file with the extension .sap that you can view inside the IDE. These provide views on the different levels of your application structure from source code lines to processes, and program execution data from the calling and called functions of a specific function to the call tree of the entire application.

Read more at MSDN

The Windows Phone Profiler, "In Progress"


Windows Phone Profiler, with highlighted timeline


Related Links

Designing Icons for Windows Phone 7


In Silverlight TV #78, Corrina continues the Design Tips miniseries by sharing her insights on how to create tiles and splash screens for Windows Phone applications. She walks through the process of creating an icon in Expression Design and how to make tiles look good and quickly mesh with Metro. Corrina then shows how to create a splash screen and gives some good tips on how to make the splash screen provide a better user experience. Finally, she walks through some tips to help with working with gradients. This video is packed with tips from Corrina, including some great keyboard shortcuts she uses when working with Expression Design.





The main topics Corrina covers are:
  • Importing photos and using them as a stencil for icons
  • Creating a good splash screen that meshes with your app
  • Simple gradient color solutions
Related Links

Page Transitions in Windows Phone 7

If you see any in-built application on Windows Phone 7, you would notice nice transition effects when navigating from one page to another. These transitions certainly improves the overall user experience of the application.


When you create a new Windows Phone 7 Application using Visual Studio 2010 or Blend, you do not get theses nice transitions in your application.


For this, you would need to add a reference to the Microsoft.Phone.Controls.Toolkit.dll in your project. Once this is done, you would need to use the Transition Service in every page that you want to have the transition effect.



<toolkit:TransitionService.NavigationInTransition>
    <toolkit:NavigationInTransition>
        <toolkit:NavigationInTransition.Backward>
            <toolkit:TurnstileTransition Mode="BackwardIn"/>
        </toolkit:NavigationInTransition.Backward>
        <toolkit:NavigationInTransition.Forward>
            <toolkit:TurnstileTransition Mode="ForwardIn"/>
        </toolkit:NavigationInTransition.Forward>
    </toolkit:NavigationInTransition>
</toolkit:TransitionService.NavigationInTransition>
<toolkit:TransitionService.NavigationOutTransition>
    <toolkit:NavigationOutTransition>
        <toolkit:NavigationOutTransition.Backward>
            <toolkit:TurnstileTransition Mode="BackwardOut"/>
        </toolkit:NavigationOutTransition.Backward>
        <toolkit:NavigationOutTransition.Forward>
            <toolkit:TurnstileTransition Mode="ForwardOut"/>
        </toolkit:NavigationOutTransition.Forward>
    </toolkit:NavigationOutTransition>
</toolkit:TransitionService.NavigationOutTransition>

Copy the above XAML and paste it in your Page, preferebly at the end.


This would enable the tranitions for this page.  Now if you would like thses transitions to work automatically,

Friday, July 15, 2011

Building Mobile-Ready Content and Layout

Smart phones and tablets have changed people's web experience dramatically. If you are a web developer, you would probably require a mobile ready website.

There are two options one create two different sites one for the large screen devices and other for mobile devices.
Managing two different websites and become a difficult task after some time.The solution, build a mobile ready website which can change its appearance depending on the device you are viewing your site.


For this purpose, one must:
  • Focus on creating semantic markup – use CSS and JavaScript for appearance and behavior

Thursday, July 14, 2011

Categorize Custom Properties in Visual Studio or Blend


Many a times when you write your own control in Silverlight, its properties are displayed under "Other" in Visual Studio and "Miscellaneous"  in Expression Blend.

For one or two properties this behaviour is acceptable, but when you are creating custom template controls, usually you have many custom properties. Having these organized in groups makes the life of a XAML designer a bit simple.

So how do you set categories to your properties?

The answer is simple, just place a Category Attribute to your property like this:
[Category("My Properties")]
public string MyCustomProperty{ get; set; }
You can have multiple properties in one group by setting two properties within the same group name.

Related Links