[Samples] Fixed designer crashes for MiniCubeXaml/Win8.1 (github issue #274).