This is a migrated thread and some comments may be shown as answers.

OnDragQuery Not triggered by Touch

5 Answers 84 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Pat Tormey
Top achievements
Rank 1
Pat Tormey asked on 05 Apr 2011, 10:05 PM
Ok So here's the deal.
 VS2010 WPF Telerik 2011 Q1

The sample code runs just fine for Drag & Drop with either mouse of touch.. ViewSonic MultiTouch Monitor and HP Slate 500.

BUT my own code works with with the mouse and not Touch.. the OnDragQuery event never fires for Touch..

Any ideas??

Thanks
Pat NH USA..

<UserControl
    xmlns:CaptureScreens_Classes="clr-namespace:CaptureScreens.Classes"
    xmlns:telerikDragDrop="clr-namespace:Telerik.Windows.Controls.DragDrop;assembly=Telerik.Windows.Controls"
  
    x:Name="Main"
    mc:Ignorable="d"
    x:Class="CaptureScreens.MainScreen" >
    <UserControl.Resources>
        <DataTemplate
            x:Key="DragTemplate">
            <Image
                Source="{Binding IconPath}"
                Stretch="None"
                VerticalAlignment="Top" />
        </DataTemplate>
        <Style
            TargetType="{x:Type ListBoxItem}"
            x:Key="draggableItemStyle">
            <Setter
                Property="HorizontalContentAlignment"
                Value="Stretch" />
            <Setter
                Property="telerikDragDrop:RadDragAndDropManager.AllowDrag"
                Value="True" />
        </Style>
   
    </UserControl.Resources>
    <UserControl.DataContext>
        <CaptureScreens_Classes:QManagement
            x:Name="QManagementInstance" />
    </UserControl.DataContext>
    <Canvas
        x:Name="LayoutRoot"
        Height="600"
        Margin="0,5,0,0"
        Width="1024" Background="White">
        <ListBox
            x:Name="lstRxToday"
            ItemsSource="{Binding RxToday, Mode=TwoWay}"
            telerik:RadDragAndDropManager.AllowDrag="True"
            telerik:RadDragAndDropManager.AllowDrop="True"
            ItemContainerStyle="{StaticResource draggableItemStyle}"
            VerticalAlignment="Top" Canvas.Left="2" Canvas.Top="2" Width="196" />
        <ListBox
            x:Name="lstPurchased"
            ItemsSource="{Binding PurchasedRx, Mode=TwoWay}"
            telerik:RadDragAndDropManager.AllowDrag="True"
            telerik:RadDragAndDropManager.AllowDrop="True"
            ItemContainerStyle="{StaticResource draggableItemStyle}"
            Height="442" Canvas.Left="240" Canvas.Top="8" Width="194"/>
    </Canvas>
</UserControl>

5 Answers, 1 is accepted

Sort by
0
Brian Crosby
Top achievements
Rank 1
answered on 06 Apr 2011, 02:13 AM
I've been fighting this for the last few days. This appears to be a bug. For me the solution was to apply a theme. I
added telerik:StyleManager.Theme="Office_Black" to the ListBox. Then touch started to work. Good luck...



- Brian

0
Pat Tormey
Top achievements
Rank 1
answered on 06 Apr 2011, 12:14 PM
WOW.. Apply a theme to get Drag and Drop Touch working?

It Worked! I own you a beer.. or several..
Alright that might be hard to do.. So I'll send $50 to Japan Relief

How did you ever figure that out?? I would never have guessed.....

THANKS!
Pat NH USA
0
Gustavo
Top achievements
Rank 1
answered on 06 Feb 2017, 11:43 AM
This coding helps me to achieve my goal, I got help from this site too, maybe it can help you too... http://www.china-prices.com/phone/4894/viewsonic-v500
0
Arif
Top achievements
Rank 1
answered on 17 Jun 2017, 10:48 AM
If you like to buy Sonic V500 then you can get more information about features and price of this device here http://www.china-prices.com/phone/4894/viewsonic-v500
0
Maks
Top achievements
Rank 1
answered on 16 Aug 2017, 05:51 AM
Good day, a good phone ViewSonic V500

Tell me for what reason may not be included completely?
Here is the phone itself: http://www.china-prices.com/phone/4894/viewsonic-v500
Tags
DragAndDrop
Asked by
Pat Tormey
Top achievements
Rank 1
Answers by
Brian Crosby
Top achievements
Rank 1
Pat Tormey
Top achievements
Rank 1
Gustavo
Top achievements
Rank 1
Arif
Top achievements
Rank 1
Maks
Top achievements
Rank 1
Share this question
or