In RadDock for WPF it is possible to set the DraggedElementVisualCue / DraggedElementVisualCueTemplate when using RadDocking.DragDropMode = Deferred.
<
ControlTemplate
x:Key
=
"DraggedElementVisualCueTemplate"
>
<
Grid
Width
=
"300"
Height
=
"200"
>
<
Border
Margin
=
"0 0 4 4"
CornerRadius
=
"1"
BorderBrush
=
"{TemplateBinding BorderBrush}"
BorderThickness
=
"{TemplateBinding BorderThickness}"
Background
=
"{TemplateBinding Background}"
/>
<
Border
Margin
=
"0 0 4 4"
Padding
=
"10"
>
<
TextBlock
Text
=
"{Binding Title}"
Foreground
=
"{StaticResource IconForegroundLight}"
Margin
=
"{TemplateBinding Padding}"
HorizontalAlignment
=
"{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment
=
"{TemplateBinding VerticalContentAlignment}"
/>
</
Border
>
</
Grid
>
</
ControlTemplate
>
<
docking:ObjectToTypeStringConverter
x:Key
=
"ObjectToTypeStringConverter"
/>
<
Style
TargetType
=
"telerik:DraggedElementVisualCue"
>
<
Setter
Property
=
"Foreground"
Value
=
"{StaticResource IconForegroundLight}"
/>
<
Setter
Property
=
"BorderBrush"
Value
=
"{DynamicResource AccentColorBrush}"
/>
<
Setter
Property
=
"Background"
Value
=
"{StaticResource HeaderBackgroundBrush}"
/>
<
Setter
Property
=
"HorizontalContentAlignment"
Value
=
"Center"
/>
<
Setter
Property
=
"VerticalContentAlignment"
Value
=
"Center"
/>
<
Setter
Property
=
"BorderThickness"
Value
=
"2"
/>
<
Setter
Property
=
"Margin"
Value
=
"10 0 0 0"
/>
<
Setter
Property
=
"Padding"
Value
=
"6 2"
/>
</
Style
>
So far so good :)
What I'd like to do is to is have a different VisualCue template for certain pane types (e.g. depending on DataContext type, or Pane Type itself)
Any ideas how?
DraggedElementVisualCue.DataContext is of type DockingDragDropPayload. There is a Pane property in there but it's private ... so the data exists just not accessible.