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

Did "getting started" - but nothing happens...

1 Answer 37 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 15 Jul 2010, 09:31 AM
This is probably a stupid question, but..

I thought I'd experiment with drag-and-drop, so I did as instructed in the "getting started" subject in the documentation: added AllowDrag=True to the source and AlloDrop=true to the target:
<UserControl x:Class="CreditSuisse.SDP.Client.Application.Workspace"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:telerikDragDrop="clr-namespace:Telerik.Windows.Controls.DragDrop;assembly=Telerik.Windows.Controls"
             mc:Ignorable="d"  
>
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <StackPanel Grid.Column="0" Orientation="Vertical" Background="LightBlue" VerticalAlignment="Stretch">
            <TextBlock x:Name="item1" Background="Blue" Width="75" Height="75" VerticalAlignment="Center" HorizontalAlignment="Center" telerikDragDrop:RadDragAndDropManager.AllowDrag="True" Text="qwerty"/>
        </StackPanel>
        <StackPanel Grid.Column="1" Orientation="Vertical" Background="LightGreen" VerticalAlignment="Stretch" telerikDragDrop:RadDragAndDropManager.AllowDrop="True" Drop="StackPanel_Drop">
  
        </StackPanel>
    </Grid>
  
</UserControl>

Now, my user control displays nicely, but no drag-and-drop visual cues or anything.

It seems to me that the "getting started" subject is missing the last two-thirds...?

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 20 Jul 2010, 02:23 PM
Hi Thomas,

Thank you for the feedback. If the GettingStarted article you are referring to is the Allowing Drag and Drop article, then you are right that its content only describes the process of allowing and not implementing the DragDrop operations. However, I agree that this can be little misleading sometimes. Therefore we will revise the article as soon as possible.

However, illustration of various drag and drop scenarios you can find in the HowTo section in the documantation.

I also updated your Telerik points accordingly. Should you need more info or have additional comments on the matter, please let us know.

All the best,
Tina Stancheva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
DragAndDrop
Asked by
Thomas
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or