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

2 posts, 0 answers
  1. Thomas
    Thomas avatar
    3 posts
    Member since:
    Jul 2010

    Posted 15 Jul 2010 Link to this post

    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...?
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 20 Jul 2010 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top