craigomatic/MetroPad — pull request #2 by sourcebits-thrivikramkashyap (2012-08-08 13:38:59+00:00)
Title: completed few tasks.

I created a DataTemplate for the FontStyle ComboBox.
Handled the Access Denied Exception. By default isreadonly is set to true. So, the edit button needs to be pressed to set it to false.
Default selections for font and colour are set.

I created a WindowsRuntimeComponent and used DirectWrite in C++ to access fontnames. I was able to instantiate and call the WindowsRuntimeComponent from the C# project. I created two methods in C++ - getFontFamilyCount() and getSystemFonts(). I am able to retrieve the fontfamilycount by using UINT32 variable on the C++ side and normal int on the C# side. But I am not sure which type in C++ to use (array, list etc.) to hold the fontnames, and return it so that the returned type is compatible on the C# side.