Phoney Tools Updated (WP7 Open Source Library)
Url: http://phoney.codeplex.com
A new version of the Phoney Tools are available now (v0.3.1). This is the last Alpha release before I get ready for Beta in the next couple of weeks. The official release is slated for MIX11!
Changes in this version include:
- Refactored FadingMessage class to not allow concurrent messages, but you can get the behavior by deriving your own FadingMessage class (example is shown in the Example app).
- Added new Converters: StringFormat, VisibilityConverter, NullVisibilityConverter, MoneyConverter and DateTime Converter.
- Added new class called GameTimer to handle the FrameworkDispatcher.Update for you when using certain XNA libraries from Silverlight.
- Added new class called MicrophoneRecorder to simplify recording sound.
- Added new class called SoundEffectPlayer to simplify playing sounds without a MediaElement.
- Added new class called PhoneNetworking to allow you to detect what type of network connection the phone is using (if any).
- Fixed a number of small bugs.
- Refactored the Example application to show off all the new features.
You can get the library by going to http://phoney.codeplex.com or using NuGet to get the latest Phoney Tools package!
Let me know what you think!
This work by Shawn Wildermuth is
licensed under a
Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Based on a work at wildermuth.com.
Based on a work at wildermuth.com.




I just had a look at the PhoneNetworking class in your PhoneyTools package and I see that you are using NetworkInterface.NetworkInterfaceType to determine what kind of network you are on. I'm not sure if you are aware but accessing the NetworkInterface.NetworkInterfaceType property is actually a blocking call and can a considerable amount of time to return (especially when no network connection is available). I know it's a property not a method so you wouldn't expect it to block the thread but alas it does.
I've blogged about it here http://cisforcoder.wordpress.com/2010/11/27/better-way-to-check-for-an-internet-connection-on-wp7/.
Just thought you might like to know.
Aiden Caine