I am having this error when creating a new instance of MenuFlyout.I searched for a bit but couldn't find anything.Code is simple :
var tmpFlyout = new MenuFlyout();
I tried creating this instance from a different thread but that didn't help either , still got the exception.In which cases this exception will pop-up ?