It seems like ConvertFromString is gone from WinRT. So I am having trouble finding a way to take a string in a combobox and using it set text foreground and a grid’s background.
Here is my latest attempt
private void ColorDropBox_SelectionChanged_1(object sender, SelectionChangedEventArgs e)
{
string backGroundColor = e.ToString();
SolidColorBrush newcolor = new SolidColorBrush();
newcolor = backGroundColor as SolidColorBrush;
this.ContentRoot.Background = newcolor;
}
Any suggestions/workarounds?
There is no conversion supplied in the library. However, conversion routines are simple to write, such as the one mentioned in http://blog.lookitskris.com/?p=22.