I created a folder in the project called 'HistogramControl' and then added different .cs and Histogram.xaml file as links.
Here is how app.xaml looks like:
For some reason it didn't initially work, I was getting 'invalid malformed' exception error when running the app. It looked like it didn't like the URI of the Source.
I closed VStudio, deleted bin and obj directories, and rebuilt. It worked!