We would like to use the XamSchedule control with the XamOutlookCalendarView view to display custom appointment and activities.
But we want to show only selected date range area in XamOutlookCalendarView and do not want to include time range area. Please let us aware how we can achieve it. Your Help would be appreciate.
Thanks
Hi Piyu,
What is the time range area that you are referring to which you want to remove? Can you mark it in your screenshot?
Hi,
I have attached screen shot in which red highlighted area we want to remove which including time range. Please let us aware how we can approach it.
Thanks, Your help would be appreciate.
While it is possible to hide that area I don't really recommend it as you will no longer be able to see appointments. A style like this should do the trick:
<Style TargetType="{x:Type igPrim:ScheduleStackPanel}"> <Setter Property="Visibility" Value="Collapsed"/></Style>
I recommend using a WPF Visual Tree inspection tool like Snoop in order to find out what elements are within our components. This should make it easier for you to find what elements are in case you want to modify them with styles.
Regarding my last update. It will be much better if you don't use a style to hide that area. If you want to remove the time ranges then it will be a lot easier just to set the XamOutlookCalendarView.TimeslotInterval to "1.00:00:00" which is 1 day. This should remove the time ranges. Hiding the time range headers on the left side can be done using a style as well. Take a look at my attached sample to see how this is done.
Hello,
Thanks for your reply and We have added the style as you mentioned above for hiding the time range area. But not able to hide or remove time Range area.
We do not want to add Appointment only selected dates need to show in scheduler that's why need to remove time range area. Please let us aware for this.
Thanks your help would be appreciate.