Operation is not supported on this platform

Michael 41 Reputation points
2021-03-03T23:34:41.327+00:00

This is from a Microsoft WPF example. The source can be found on git as UsingDispatcher.
https://github.com/Microsoft/WPF-Samples/tree/master/Threading/SingleThreadedApplication
It is included zip file that has a lot of examples.

It is sort of written up hear. I have seen it in other places on MSDN. https://learn.microsoft.com/en-us/dotnet/desktop/wpf/advanced/threading-model?view=netframeworkdesktop-4.8&viewFallbackFrom=netdesktop-5.0.

I added the commented out line below the error. It works OK. Still, why the error?

74014-wpf-error.png

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,706 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,136 questions
{count} votes

Accepted answer
  1. Viorel 1.1L Reputation points
    2021-03-04T04:31:10.9+00:00

    Probably it is only supported in .NET Framework.

    See also: https://devblogs.microsoft.com/dotnet/migrating-delegate-begininvoke-calls-for-net-core/.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful