I want to hide only the horizontal or vertical scrollbar. Is that possible ?
The only solution I found now is the following style :
<
Style
TargetType
=
"telerik:PanZoomBar"
>
<
Setter
Property
=
"Visibility"
Value
=
"{Binding Customization.ChartZoomMode, Converter={StaticResource ChartScrollbarVisibilityConverter}}"
/>
</
Style
>
The problem here is that it is hiding both Scrollbars. Is there a option where I can decide which one I want to hide ?
How can I use correctly the above xaml in code behind ?
This is not working :
return
new
RadCartesianChart
{
//Resources = new ResourceDictionary()
//{
// {"HideScrollBarStyle", new Style(typeof(PanZoomBar))
// {
// Setters =
// {
// new Setter()
// {
// Property = ContentControl.VisibilityProperty,
// Value = Visibility.Collapsed,
// }
// }
// }
// }
//},
HorizontalAxis =
new
CategoricalAxis()
{
LabelFitMode = AxisLabelFitMode.Rotate,
PlotMode = hasBarSeries ? AxisPlotMode.BetweenTicks : AxisPlotMode.OnTicks,
Title = Customization.XAxisName?.ToUpper(),
SmartLabelsMode = AxisSmartLabelsMode.SmartStep ,
LabelTemplate =
new
DataTemplate()
{
VisualTree = xAxisFormat,
},
//GapLength = 0.15,
},
VerticalAxis =
this
.HasMultipleAxis ?
null
: GetYAxis(),
SmartLabelsStrategy =
new
ChartSmartLabelsStrategy()
{
ShouldMinimizeConnectorConflicts =
true
,
},
......
......
.....