wp8 interaction with unity3d

All samples and templates shows that the xaml layer reads what happening on the D3D layer.
Dispatcher.BeginInvoke(() => It works, no problem.

Is there any sample to use UnityApp.BeginInvoke? All i want to do is that let unity know when i touch/swipe the xaml layer.
(sorry for my basic english)

MSDN had a blog post about UnityApp.BeginInvoke. Hope that will help you achieve what you want:

http://blogs.msdn.com/b/uk_faculty_connection/archive/2013/09/11/getting-started-building-windows-phone-games-with-unity.aspx