WPF APIs still needed for WAS projects? #3684
-
In my understanding, in development with Windows App SDK, WinRT is used for interactions with Windows system. Then, are those WPF APIs, e.g. those in System.Windows, still needed for WAS projects? Thank you! Or what's the relationship between Windows Desktop APIs and Windows App SDK? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
To be extremely picky, there is no such thing as a Windows App SDK project. |
Beta Was this translation helpful? Give feedback.
-
Clipboard as an example: From: Windows Desktop 7 From: WinRT APIs The WinRT version seems to be the replacement of the Windows Desktop 7 version. Is this understanding correct? |
Beta Was this translation helpful? Give feedback.
I honestly don't think it matters. The .NET source for the clipboard class has it using the Windows native OLE clipboard functionality. For example, line 643 has a call to OleGetClipboard.
If you dig in far enough, I'm sure that you will find that the Windows Runtime clipboard functionality is also a wrapper around the native OLE clipboard functionality too. So as long as the underlying functionality is supported then you should just use whatever is most comfortable for you.