CalcBase for Windows Phone 7/8 App Released

CalcBase for Windows Phone 7/8 has just been approved into the Windows Phone Store. You can download it here.

CalcBase is a simple base converter that converts any base-2 to base-16 number to all other bases from base-2 to base-16. Simply select the base you are converting from, enter your number, and then show the results to see the conversions. It’s that simple.

Here is a screen shot of the input screen:

If you have any suggestions for this app, send me some feedback.

APP UPDATE: Connectivity Manager Updated to Version 1.1

I’ve updated Connectivity Manager to version 1.1. The update is mostly cosmetic. You can download the update here. Here are the changes:

  • Ads are now included (sorry, I had to do it)
  • I updated the “notes” page to provide a little more info on how the app works and why
  • The “about” page has been improved

There were no functionality changes this time around because the Windows Phone API has not changed.

I should note that the the Marketplace/Store lists the following for app requirements:

  • owner identity
  • photo, music, and video libraries
  • data services
  • movement and directional sensor

I need to look into this. The only things the app accesses are:

  • links to your list of email accounts so you can send feedback through an email
  • links to the Windows Phone Marketplace/Store so you can rate and review
  • links to the Windows Phone Marketplace/Store so you can see other apps I’ve developed
  • links to this website

Again, the app does not access, use, or collect any personal data whatsoever.

Let me know if you have any questions.

Setting a Windows Phone Button Background in C#

There might be a case where you need to set the background color of a button in code rather than in XAML. Or you might define a style in XAML with a particular button background color, but would like to change the background color in an event handler. For example, let’s say you created the following button in XAML:

<Button Content=”My Button”
Background=”{StaticResource PhoneAccentBrush}”
Click=”RegisterSelection_Click”/>

Now let’s say that when the user clicks the button you want to change the button’s background color to give another way of indicating the button has been selected. You can do the following in C#:

private void RegisterSelection_Click(object sender, RoutedEventArgs e)
{
Button btn = (Button)sender;
btn.Background = App.Current.Resources["PhoneChromeBrush"] as SolidColorBrush;
}

I am using this in an app I am currently working on and it works well. Give it a try.

Overriding the Default Windows Phone Back Button Action

Here is a great blog post showing how to override the default action of the back button.

This can be very handy when interacting with pop-ups and dialogs within your app. For example, you may have a pop-up menu that you want the user to be able to back out of using the back button. Depending on your app’s design, the standard back button action might go so far as to exit the app. By overriding the standard action, the user could close the dialog instead.

Code samples are included in the post.