Hi -
I have a XamDateTimeEditor and I need to disable the selection of certain dates. The server sends me a list of valid dates and I need to make sure the user can only select from those valid dates. What is the best approach for this?
Thanks!
HI,
I am attaching a new sample that targets the CalendarDay and does a binding with converter on the Background and IsHitTest Property.
Here a code snippet:
<Style TargetType="{x:Type ig:CalendarDay}"> <Setter Property="Background" Value="{Binding RelativeSource={RelativeSource self}, Path=StartDate, ConverterParameter=c, Converter={StaticResource testconv}}" /> <Setter Property="IsHitTestVisible" Value="{Binding RelativeSource={RelativeSource self}, Path=StartDate, ConverterParameter=b, Converter={StaticResource testconv}}" /> </Style>
Sincerely, MattDeveloper Support Engineer
Hi,
Our Requirement is disabling the past dates and user unable to select the previous month/year in XamdateTimeEditor.
After some search , we found this link and checked the project.The Project is removing dates from the calendar.But our requirement is disabling the previous dates for the selected month not removing the date and also user does not go to back using left button to select previous month/year.
Please provide the solution for our requirement asap.
Hi ,
I am just following up on this thead.
Please let me know if you need further assistance.
Sincerely, Matt DSE
I am attaching a sample project that disables dates for the XamDataTimeEditor.