I made a Windows 10 app this weekend called Alpha Geek.
The app simply takes a list of words entered via the keyboard or microphone and alphabetizes them. You can then copy the list to your clipboard, share the list or, for some crazy fun, save the list as an animated GIF.
I’m working on Windows 10 apps now that are in the process of wrapping up to ship. This little app gave me the chance to go a full round through the new Windows 10 store. I wanted pick something simple, but also try out a few of the new APIs like Speech Capture and image encoding. It was fun to make and possibly a start for some other app ideas.
Please check it out and let me know if there are any other features that might help you with your alphabetizing needs 🙂
Yesterday I needed to change the IsOn background color of a ToggleSwitch. There is no exposed property allowing you to update this color. And if you extract a copy of the default template, you’ll find that the blue color pictured below comes from a Rectangle with its Fill property bound directly to the ThemeResource “SystemControlHighlightAccentBrush”.
Frustrated that this property was not exposed, I plopped a copy of the default template into my ResourceDictionary and modified the Rectangle Fill directly. Having to deal with the stiffness of XAML templates previously, I decided to
whine vent online about it on Twitter to commiserate with others and hopefully find out that I was wrong.
Good news! I was wrong.
Thanks go to @wiredprairie for pointing out ThemeDictionaries overrides. As the title suggest you can override specific colors which will then cascade across all of the controls tied to that ThemeResource. In this case instead of adding a copy of the ToggleSwitch template, you can add the following code to your Application.
<SolidColorBrush x:Key="SystemControlHighlightAccentBrush" Color="HotPink"/>
And you end up with the following updated control, averaging around 191 less lines, much less complexity and less crying.