We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ReadOnly appointment opacity

Thread ID:





143920 Apr 10,2019 01:50 PM UTC Apr 11,2019 10:54 AM UTC WPF 3
Tags: Schedule
Lon Hofman
Asked On April 10, 2019 01:51 PM UTC


I was wondering if it is possible to create a ReadOnly appointment with a solid color background.
If a solid background color is assigned to a ReadOnly appointment, it seems to render differently then when the appointment can be edited. It looks like the opacity property of the appointment has changed. Is is possible to disable this behavior?

Thank you in advance!

Jagadeesan Pichaimuthu [Syncfusion]
Replied On April 11, 2019 09:19 AM UTC

Hi Lon Hofman,  
Thanks for using Syncfusion product. 
In SfSchedule, we have maintained separate opacity value for ReadOnly appointments to show difference from normal appointments. We cannot set solid color for ReadOnly appointments. This is not original behavior of SfSchedule control. We have updating the color for ReadOnly appointments based on ReadOnlyVisibility property but we have maintaining internal setter for this property. But it is possible to set solid color for ReadOnly appointments based on ReadOnlyVisibility  property. We have also prepared a sample for the same in which we have set the solid color for ReadOnly appointments using ReadOnlyVisibility  property by reflection. Please find the code snippet and sample from the below location. 
Code Snippet: 
PropertyInfo propinfo = readOnlyAppointment.GetType().GetProperty("ReadOnlyVisibility", BindingFlags.Instance |BindingFlags.Public); 
propinfo.SetValue(readOnlyAppointment, Visibility.Collapsed); 
readOnlyAppointment.AppointmentBackground = new SolidColorBrush(Colors.Red); 
Let us know whether this helps also if you need any further assistance on this. 

Lon Hofman
Replied On April 11, 2019 10:06 AM UTC

Thank you very much!
Your solution seems to work as expected.

Kind regards,

Jagadeesan Pichaimuthu [Syncfusion]
Replied On April 11, 2019 10:54 AM UTC

Hi Lon Hofman, 

Thanks for the update. 

We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help you. 



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon