Welcome to the WPF feedback portal. We’re happy you’re here! If you have feedback on how to improve the WPF, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

When trying to add SpecialTimeRegion in SfScheduler Timeline view I get and " System.FormatException: 'Input string was not in a correct format.'"

I tried to do exactly as it was in xaml example:

<syncfusion:SfScheduler x:Name="Schedule" ViewType="Timeline"><syncfusion:SfScheduler.TimelineViewSettings><syncfusion:TimelineViewSettings><syncfusion:TimelineViewSettings.SpecialTimeRegions><syncfusion:SpecialTimeRegion StartTime="2020/08/18 13:0:0" EndTime="2020/08/18 14:0:0" CanEdit="False" Text="Lunch" Background="Black" Foreground="White"/></syncfusion:TimelineViewSettings.SpecialTimeRegions></syncfusion:TimelineViewSettings></syncfusion:SfScheduler.TimelineViewSettings></syncfusion:SfScheduler>

or in code behind:

Schedule.TimelineViewSettings.SpecialTimeRegions.Add(new SpecialTimeRegion { StartTime = new DateTime(2020, 8, 18, 8, 0, 0), EndTime = new DateTime(2020, 8, 8, 8, 0, 0), CanEdit = false, Text = "Lunch", Background = Brushes.Black, Foreground = Brushes.White });


Stack trace in attachement.