Hi:
How do I do the following in C# code?
The C# code is below, but how do I accomplish the
Thanks,
Terry
How do I do the following in C# code?
<
Canvas
x:Name
=
"Page2_Canvas"
Background
=
"White"
dragDrop:RadDragAndDropManager.AllowDrop
=
"True"
Width
=
"600"
Height
=
"400"
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Stretch"
MouseLeftButtonDown
=
"Either_Canvas_MouseLeftButtonDown"
MouseLeftButtonUp
=
"WireframeElementMouseLeftButtonUp"
MouseMove
=
"WireframeElementMouseMove"
/>
The C# code is below, but how do I accomplish the
dragDrop:RadDragAndDropManager.AllowDrop
setting?Canvas c =
new
Canvas()
{
Background =
new
SolidColorBrush( Colors.White ),
Height = document.HeightInPixels,
Width = document.WidthInPixels,
HorizontalAlignment = System.Windows.HorizontalAlignment.Stretch,
VerticalAlignment = System.Windows.VerticalAlignment.Stretch,
};
c.MouseLeftButtonDown +=
new
MouseButtonEventHandler( Either_Canvas_MouseLeftButtonDown );
c.MouseLeftButtonUp +=
new
MouseButtonEventHandler( WireframeElementMouseLeftButtonUp );
c.MouseMove +=
new
MouseEventHandler( WireframeElementMouseMove );
Thanks,
Terry