Grid Lines in Xamarin.Android RangeNavigator
30 Nov 20221 minute to read
The MinorScaleStyle
and MajorScaleStyle
properties of SfDateTimeRangeNavigator
used to customize the minor and major grid lines. Following properties are available in each scale style to configure the grid lines.
-
ShowGridLines
– used to set the visibility of grid lines. -
GridLineWidth
– used to set the width for grid lines. -
GridLineColor
– used to set the color for grid lines. -
GridLinePathEffect
– used to set dashes for grid lines.
[C#]
SfDateTimeRangeNavigator rangeNavigator = new SfDateTimeRangeNavigator();
...
rangeNavigator.MajorScaleStyle.ShowGridLines = true;
rangeNavigator.MajorScaleStyle.GridLineColor = 0xF109D7;
rangeNavigator.MajorScaleStyle.GridLineWidth = 10;
rangeNavigator.MinorScaleStyle.ShowGridLines = true;
rangeNavigator.MinorScaleStyle.GridLineColor = Color.Red;
rangeNavigator.MinorScaleStyle.GridLineWidth = 3;
rangeNavigator.MinorScaleStyle.GridLinePathEffect = new DashPathEffect(new float[] { 4, 4}, 0);