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

Drag and Drop within Listbox error

2 Answers 29 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 14 Feb 2012, 08:59 PM

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 Answers, 1 is accepted

Sort by
0
Michael
Top achievements
Rank 1
answered on 14 Feb 2012, 09:42 PM
Could the problem be VS2008 and .NET3.5?
Cheers
0
Vlad
Telerik team
answered on 15 Feb 2012, 07:43 AM
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 >>
Tags
DragAndDrop
Asked by
Michael
Top achievements
Rank 1
Answers by
Michael
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or