After releasing a UWP application to the Windows Store that runs well on both desktop and Xbox, I noticed that it was not launching successfully when installed as a 2D application on a HoloLens.
Hooking it up to a debugger I discovered the following error:
System.InvalidCastException: 'Unable to cast object of type 'Windows.UI.Composition.Compositor' to type 'Windows.UI.Composition.ICompositorWithRadialGradient'.'
on the following line of code:
CompositionRadialGradientBrush RGBrush = compositor.CreateRadialGradientBrush();
Is there a known compatibility issue with the HoloLens not supporting the radial gradient brush functionality of Windows.UI.Composition?
Besides conditionally skipping this section of code that applies the gradient background when running on a HoloLens are there any other ways to get around this or to get the api to work correctly?