I wanted to highlight a few days on the calendar in WPF and make any other day on the calendar inaccessible. Thus, the user can select only the selected range. The problem is that I have not yet found anything useful. The control itself does not support data binding at all (although it has the Data Context :-) property), which makes it somewhat inaccurate.
To make some dates inaccessible, you can use the property Calendar.BlackoutDates. For instance:.
Calendar.BlackoutDates
DateTime today = DateTime.Today; _calendar.BlackoutDates.Add( new CalendarDateRange(today.AddDays(-5), today.AddDays(-3)));
Source: https://habr.com/ru/post/1745854/More articles:New Objective C Developer Question - objective-cPHP Checking slave status without timeouts mysql_connect - phpРешение комбинационных проблем с LINQ/.NET4 - performanceActiveRecord attribute override - ruby | fooobar.comHow to create Global.asax in a Winform application? - WITH#/. NET - c #OpenGLES iPhone Textures - color scheme - iphonehttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1745856/how-to-stop-django-from-adding-extra-html-elements-to-rendered-widgets&usg=ALkJrhj3xuaboolqJko2FeKuifznT5dH8AПеремещение по divs в интервале - jQuery - jqueryUsing a variable name in XMLHttpRequest - jqueryTroubleshoot Silverlight ChildWindow Memory Leak - silverlightAll Articles