We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Without wpfui i used DatePicker's BlackoutDates but on this version they are not showed.
I would like they are grayed and strikethrough.
I can use default style for datepicker
No response
The text was updated successfully, but these errors were encountered:
Hi, I made an example, here how it is show with old style and with WPF-UI style: here the code to reproduce the issue:
DateTime min = DateTime.Now; DateTime max = min.AddMonths(1); cal1.DisplayDateStart = cal2.DisplayDateStart = min; cal1.DisplayDateEnd = cal2.DisplayDateEnd = max; DateTime d = min; while(d <= max) { switch(d.DayOfWeek) { case DayOfWeek.Wednesday: case DayOfWeek.Saturday: case DayOfWeek.Sunday: cal1.BlackoutDates.Add( new CalendarDateRange( d ) ); cal2.BlackoutDates.Add( new CalendarDateRange( d ) ); break; } d = d.AddDays( 1 ); }
I can fix it on xaml probably but I don't know how to do it... Thanks Perry
Sorry, something went wrong.
I was able to do it by xaml:
<DatePicker x:Name="picker"> <DatePicker.CalendarStyle> <Style TargetType="Calendar" BasedOn="{StaticResource DefaultCalendarStyle}"> <Setter Property="CalendarDayButtonStyle"> <Setter.Value> <Style TargetType="CalendarDayButton" BasedOn="{StaticResource DefaultCalendarDayButtonStyle}"> <Style.Triggers> <Trigger Property="IsBlackedOut" Value="True"> <Setter Property="Opacity" Value="0.25"/> </Trigger> </Style.Triggers> </Style> </Setter.Value> </Setter> </Style> </DatePicker.CalendarStyle> </DatePicker>
but it set the opacity to calendar drop down too 😟
No branches or pull requests
Is your feature request related to a problem? Please describe
Without wpfui i used DatePicker's BlackoutDates but on this version they are not showed.
Describe the solution you'd like
I would like they are grayed and strikethrough.
Describe alternatives you've considered
I can use default style for datepicker
Additional context
No response
The text was updated successfully, but these errors were encountered: