Hi
May I know whether the XBAP applications can support drag and drop
When I tried drag and drop in a custom control I got SecurityException upon hosting in XBAP appln.
Detials: Request for the permission of type Permissions.UIPermission failed.
on line DataObject do=new DataObject("Item",this); which resides as follows.
class MyControl :ContentControl{
override MouseDown(..){
on line DataObject do=new DataObject("Item",this); //Uses this do obj to call method DoDragDrop() later
}
}
Please let me know ,how to avoid this.Are there any other good practices to do the same
Thanks in Advance
Joy

Drag and drop in XBAP
Gedoo
Hi Joy,
According to this article: http://msdn2.microsoft.com/en-us/library/aa970910.aspx
Simulated drag-n-drop is supported. However, drag-n-drop is not safe to run within the Internet Zone.
If this answers your question, please select "Mark as Answer".
Thank you,
Chad Campbell
subzero27
Hi LesterLobo and Chad,
Thanks a lot.
Joy
Karl Seguin - MVP
Hi
One more query.How can I know whether the application is running as XBAP or standalone in order to avoid drag drop in my control
Thanks
Joy
corblet
DanHockley