Hi all
I am unable to drag an item from RadGallery. I am attaching the sample code. It works fine with image. but not within RadGak
Thanks
Deepak
I am unable to drag an item from RadGallery. I am attaching the sample code. It works fine with image. but not within RadGak
<
Window
x:Class
=
"RadControlsWpfApp1.MainWindow"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
Title
=
"MainWindow"
Height
=
"350"
Width
=
"525"
telerik:RadDragAndDropManager.DragQuery
=
"Window_DragQuery"
>
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
/>
<
RowDefinition
/>
</
Grid.RowDefinitions
>
<
telerik:RadGallery
>
<
telerik:RadGalleryItem
telerik:RadDragAndDropManager.AllowDrag
=
"True"
Image
=
"/RadControlsWpfApp1;component/PDF-04.png"
></
telerik:RadGalleryItem
>
</
telerik:RadGallery
>
<
Image
Source
=
"/RadControlsWpfApp1;component/PDF-04.png"
Grid.Row
=
"1"
telerik:RadDragAndDropManager.AllowDrag
=
"True"
/>
</
Grid
>
</
Window
>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace RadControlsWpfApp1
{
/// <
summary
>
/// Interaction logic for MainWindow.xaml
/// </
summary
>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
private void Window_DragQuery(object sender, Telerik.Windows.Controls.DragDrop.DragDropQueryEventArgs e)
{
MessageBox.Show("draged");
}
}
}
Thanks
Deepak