Grid Lines

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.

  • c#
  • SFDateTimeRangeNavigator rangeNavigator = new SFDateTimeRangeNavigator ();
    
    rangeNavigator.MajorScaleStyle.ShowGridLines = true;
    rangeNavigator.MajorScaleStyle.GridLineWidth = 2;
    rangeNavigator.MajorScaleStyle.GridLineColor = UIColor.Red;
            
    rangeNavigator.MinorScaleStyle.ShowGridLines = true;
    rangeNavigator.MinorScaleStyle.GridLineWidth = 1;
    rangeNavigator.MinorScaleStyle.GridLineColor = UIColor.Green;
    rangeNavigator.MinorScaleStyle.GridLineDashes = NSArray.FromObjects (5, 10);
    
    this.View.AddSubview(rangeNavigator);