Drag and Drop within Listbox error

3 posts, 0 answers
  1. Michael
    Michael avatar
    8 posts
    Member since:
    Feb 2012

    Posted 14 Feb 2012 Link to this post

    I have been trying to implement drag and drop within a listbox in my application and I can’t seem to get the following lines to work from the tutorial and other solutions that admins have posted on the forum:

        xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"

                                <vsm:VisualStateManager.VisualStateGroups>

                                    <vsm:VisualStateGroup x:Name="DragCue">

                                        <vsm:VisualState x:Name="NoDrop" />

                                        <vsm:VisualState x:Name="DropPossible">

    I get the following error message from VS:

    The tag 'VisualStateGroup' does not exist in XML namespace 'clr-namespace:System.Windows;assembly=System.Windows'.

    Is there something I am missing?

    I am using VS2008 in Windows XP and the trial version of Telerik RadControls for WPF.

    Any help would be greatly appreciated! :)

  2. Michael
    Michael avatar
    8 posts
    Member since:
    Feb 2012

    Posted 14 Feb 2012 Link to this post

    Could the problem be VS2008 and .NET3.5?
    Cheers
  3. UI for WPF is Visual Studio 2017 Ready
  4. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 15 Feb 2012 Link to this post

    Hi,

     Generally VisualStateManager is available only in .NET 4. Can you post more info where you have this code?

    Kind regards,
    Vlad
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top