Hello,
In my Silverlight 4 app, i have an user control which contains a ListBox.
I have implemented the Drag'n Drop on it. So, when i drag and drop a local file, it will upload it and display it in my ListBox.
The system works very well if i load my user control in a Silverlight Page.
But sometime, i load this user control in a ChildWindow (from SL Toolkit) and it seems that the Drag'n Drop system doesn't work.
In fact, when i drop my file in my ListBox (in the ChildWindow), Internet Explorer opens and display my file (for ex, a JPG file) and so skip the silverlight app.
In another thread on this forum, i read you said to use the RadWindow and add :
But when i drag my file in the ListBox (in RadWindow now), nothing appears (same behavior when i used ChildWindow) and events are nevers fired (i tested with breakpoints).
Could you help me please ?
Regards,
Guillaume
PS : I also add AllowDrop="True" in my RadWindow and "WindowLess" is false in the SL object.
In my Silverlight 4 app, i have an user control which contains a ListBox.
I have implemented the Drag'n Drop on it. So, when i drag and drop a local file, it will upload it and display it in my ListBox.
The system works very well if i load my user control in a Silverlight Page.
But sometime, i load this user control in a ChildWindow (from SL Toolkit) and it seems that the Drag'n Drop system doesn't work.
In fact, when i drop my file in my ListBox (in the ChildWindow), Internet Explorer opens and display my file (for ex, a JPG file) and so skip the silverlight app.
In another thread on this forum, i read you said to use the RadWindow and add :
this
.AddHandler(RadDragAndDropManager.DragInfoEvent,
new
EventHandler<DragDropEventArgs>(OnDropInfo),
true
);
this
.AddHandler(RadDragAndDropManager.DragInfoEvent,
new
EventHandler<DragDropEventArgs>(OnDragInfo),
true
);
this
.AddHandler(RadDragAndDropManager.DragQueryEvent,
new
EventHandler<DragDropQueryEventArgs>(OnDragQuery),
true
);
this
.AddHandler(RadDragAndDropManager.DragQueryEvent,
new
EventHandler<DragDropQueryEventArgs>(OnDropQuery),
true
);
But when i drag my file in the ListBox (in RadWindow now), nothing appears (same behavior when i used ChildWindow) and events are nevers fired (i tested with breakpoints).
Could you help me please ?
Regards,
Guillaume
PS : I also add AllowDrop="True" in my RadWindow and "WindowLess" is false in the SL object.