SharpDX tutorial for initializing a Direct3D context in a C#/XAML Universal App for Windows and Windows Phone.
You can find the accompanying tutorial for this source code here: http://english.r2d2rigo.es/2014/09/06/initializing-direct3d-in-windowswindows-phone-8-1-cxaml-universal-apps-with-sharpdx/