Windows Phone Developers

Thursday, July 26, 2012

C# .NET Images / Icons as Resources and Content

Build Action Resources vs Content in .NET / C# .NET Images / Icons as Resources and Content

Images can be added either as a Resource or Content Resource - This is default for Images / Icons Content - The file is not compiled, but is included in the Content output group. For example, this setting is the default value for an .htm or other kind of Web file.



Having Images as Content will reduce the Filesize. Having as a Resource appears to load the images faster .. it might be my perception. Please express your views on it Digg Technorati Delicious StumbleUpon Reddit BlinkList Furl Mixx Facebook Google Bookmark Yahoo
ma.gnolia squidoo newsvine live netscape tailrank mister-wong blogmarks slashdot spurl StumbleUpon

How to Add Icons to the Windows Phone Project (C#/.NET)

Windows Phone SDK comes with a list of Icons.

They are available in the following location

 Location of Icons in Visual Studio (Windows Phone Development):

On 32-bit operating systems: C:\Program Files\Microsoft SDKs\Windows Phone\v7.1\Icons On 64-bit operating systems: C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v7.1\Icons

To add an icon to the project: Icons can be either created or added;

If you want to create a new Icon
 file use the following option

To add an existing icon, select from the list of Icons
 
Do some edits / updates if needed

Set the set the Build Action to Content.
            would
Digg Technorati Delicious StumbleUpon Reddit BlinkList Furl Mixx Facebook Google Bookmark Yahoo
ma.gnolia squidoo newsvine live netscape tailrank mister-wong blogmarks slashdot spurl StumbleUpon

How to Enable ApplicationBar on Windows Phone (XAML)

How to enable Application Bar in Windows Phone Application using .NET The Application bar is available in the XAML file. It is commented by default. Remove the commented section and use the Application Bar in your App The ApplicationBar can be customized Digg Technorati Delicious StumbleUpon Reddit BlinkList Furl Mixx Facebook Google Bookmark Yahoo
ma.gnolia squidoo newsvine live netscape tailrank mister-wong blogmarks slashdot spurl StumbleUpon