This is a migrated thread and some comments may be shown as answers.

ITimeMarker.TimeMarkerBrush

1 Answer 56 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 29 Aug 2011, 07:22 PM
I've recently moved to the internal build 2011.2.0823 in an effort to overcome a problem with the RadGrid.  In doing so I am now presented with an inability to compile as ITimeMarker "does not contain a defintion for 'TimeMarkerBrush'" ...

Can you please advise if there has been a change in the interface or if this is a bug in the internal release.

The full code which was a sample provided from the ScheduleView thread is as follows:

public partial class TimeMarker : ITimeMarker
    {
        System.Windows.Media.Brush ITimeMarker.TimeMarkerBrush
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }
  
        public bool Equals(ITimeMarker other)
        {
            return
                this.TimeMarkerName != other.TimeMarkerName &&
                this.TimeMarkerBrush != other.TimeMarkerBrush.ToString();
        }
    }


Many thanks,
Mark

1 Answer, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 30 Aug 2011, 11:40 AM
Hello Mark,

The TimeMarkerBrush and CategoryBrush properties were removed from the ITimeMarker and ICategory interfaces, but RadScheduleView still could benefit from the same properties on the corresponding classes. In other words, I would recommend removing the explicit implementation of the properties, but keeping the properties in the classes:
public partial class TimeMarker : ITimeMarker
{
 System.Windows.Media.Brush TimeMarkerBrush
 {
  get
  {
   throw new NotImplementedException();
  }
  set
  {
   throw new NotImplementedException();
  }
 }

 public bool Equals(ITimeMarker other)
 {
  return this.TimeMarkerName != other.TimeMarkerName &&
   this.TimeMarkerBrush != other.TimeMarkerBrush.ToString();
 }
}

Kind regards,
Valeri Hristov
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
ScheduleView
Asked by
Mark
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Share this question
or