Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x

Windows Phone

539

Solutions

870

Contributors

Windows Phone (WP) is a family of mobile operating systems developed for smartphones as the replacement successor to Windows Mobile and Zune.  Windows Phone features a new user interface derived from Metro design language. Windows 10 Mobile succeeded Windows Phone 8.1 and emphasizes a larger amount of integration and unification with its PC counterpart—including a new, unified application ecosystem, along with an expansion of its scope to include small-screened tablets.

Share tech news, updates, or what's on your mind.

Sign up to Post

I had a need for a “colour picker” for the nice original Windows Phone colour palette. The codes are impossible to remember, so I was looking for a method to point and click to copy a value for later to be pasted into a property pane.

As I wanted all values presented in the three often used formats for CSS, VBA, and as hex values - and had the colour values as an enumeration – I also needed some converter functions. Not much, and with a simple loop all field values could be set.

However, writing code for 63 fields looked like a daunting task. This is where WithEvents came in and solved that with a few handfuls of code.

I wrote it all up here as there are so few examples found demonstrating WithEvents:

    https://www.experts-exchange.com/articles/29554/Create-Windows-Phone-Colour-Palette-and-Selector-using-WithEvents.html

with a reference to John Colby’s old tutorial on WithEvents for the interested reader. The only principal difference to John’s example is, that I didn’t use 63 variables but a collection (as I learned from Shamil Salakhetdinov) to hold the controls.

The colour palette of Windows Phone I have previously used here:

    https://www.experts-exchange.com/articles/17684/Modern-Metro-style-message-box-and-input-box-for-Microsoft-Access-2013.html

/gustav
3
 

Expert Comment

by:Daniella Barion
That's great. I am sure it will help a lot of people.
0
New feature and membership benefit!
LVL 10
New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Windows Phone

539

Solutions

870

Contributors

Windows Phone (WP) is a family of mobile operating systems developed for smartphones as the replacement successor to Windows Mobile and Zune.  Windows Phone features a new user interface derived from Metro design language. Windows 10 Mobile succeeded Windows Phone 8.1 and emphasizes a larger amount of integration and unification with its PC counterpart—including a new, unified application ecosystem, along with an expansion of its scope to include small-screened tablets.

Top Experts In
Windows Phone
<
Monthly
>