Pages

8/24/10

How to define resource programmatically?

When at Windows phone application you'd like to define resource programmatically, you should this way:

myBorder.BorderBrush = (SolidColorBrush)App.Current.Resources["PhoneAccentBrush"],

8/18/10

WrapperPanel for Windows Phone 7

The Silverlight Toolkit has a great WrapPanel. BUT it's 160 Kb and when you don't need all controls but 1 it's too "expensive".
Sources of WrapperPanel under public license by MS could be found there. With DockPanel when you need it.

8/14/10

Windows Phone 7 Emulator Hotkeys

F1 = Back
F2 = Windows
F3 = Search
F7 = Camera
F9 = Vol +
F10 = Vol -
F11 = Bluetooth headset button. This plays/pauses music as well.
And all of these require the focus to be on the screen, not the buttons. (You'll see a thin blue line around the screen when it's in focus.)