Jiew Meng Jiew Meng - 1 month ago 4x
C# Question

Handle Copy & Paste (Clipboard) in MVVM

If I want to access the clipboard with MVVM how can I do it?


SL 4 now supports text clipboard operations. This is transparent in OOB mode and requires user confirmation if not in OOB mode.

You can use Clipboard.GetText() in your view models and commands to retrieve the text content available in the clipboard.