Hello Mher,
Another approach which you can consider is reteplating the Axis which needs modifying. This may look something like this:
<
Style
TargetType
=
"telerik:AxisX2D"
>
<
Setter
Property
=
"Template"
>
<
Setter.Value
>
<
ControlTemplate
TargetType
=
"telerik:AxisX2D"
>
<
Grid
Margin
=
"{TemplateBinding Margin}"
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"auto"
/>
<
RowDefinition
Height
=
"auto"
/>
<
RowDefinition
Height
=
"auto"
/>
<
RowDefinition
Height
=
"auto"
/>
<
RowDefinition
Height
=
"auto"
/>
</
Grid.RowDefinitions
>
<
Line
x:Name
=
"PART_AxisLine"
dragDrop:RadDragAndDropManager.AllowDrop
=
"True"
StrokeThickness
=
"20"
Grid.Row
=
"{TemplateBinding InnerPosition}"
MouseMove
=
"PART_AxisLine_MouseEnter"
MouseLeave
=
"PART_AxisLine_MouseLeave"
Style
=
"{TemplateBinding AxisLineStyle}"
VerticalAlignment
=
"{TemplateBinding AxisLineAlignment}"
/>
<
ItemsPresenter
Grid.Row
=
"{TemplateBinding InnerPosition}"
Visibility
=
"{TemplateBinding AxisTicksVisibility}"
/>
<
telerik:VerticalMinorTicks2D
x:Name
=
"PART_MinorTickPoints"
Grid.Row
=
"{TemplateBinding InnerPosition}"
Visibility
=
"{TemplateBinding AxisMinorTicksVisibility}"
VerticalAlignment
=
"{TemplateBinding AxisLineAlignment}"
/>
<
telerik:HorizontalAxisLabels2D
Grid.Row
=
"2"
x:Name
=
"PART_AxisLabels"
Visibility
=
"{TemplateBinding AxisLabelsVisibility}"
/>
</
Grid
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
<
Setter
Property
=
"ItemsPanel"
>
<
Setter.Value
>
<
ItemsPanelTemplate
>
<
telerik:AxisXPanel
/>
</
ItemsPanelTemplate
>
</
Setter.Value
>
</
Setter
>
</
Style
>
Essentially, this style will only allow drop on the xAxis. However, since the drag/drop manager supresses mouse enter/leave events on the elements in the controls, you cannot style the axis once you hover over it.
All the best,
Yavor
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!