[CalendarView] Can't Blackout month or year items on calendarView component #9164
Labels
area-DateTimePickers
DatePicker, TimePicker, CalendarDatePicker, CalendarView
bug
Something isn't working
feature proposal
New feature proposal
team-Controls
Issue for the Controls team
Describe the bug
I am trying to make it so singular months and/or years are blackout on my WinUI3 application, but for now I haven't been able to.
For unique singular days, I was able to extract
CalendarViewDayItem
children from CalendarView and manage theIsBlackout
property of them, but found out that there isn't any children namedCalendarViewMonthYearItem
for month or year objects.I've tried to set the
IsBlackout
property of every day on a month and on a year to see if the component would smartly handle it by automatically setting that same property for months/years as true, but it doesn't seem to be the case.After inspecting the application for more clarification of how the month objects are presented, I noticed that they are considered to be
CalendarViewItem
objects (See Screenshot 1).Following that, I've tried to
FindDescendants
specifically for that type of child objects within aCalendarView
component, but it doesn't seem to be a valid recognizable object to work with (See Screenshot 2).Steps to reproduce the bug
2.1. Try to set the
IsBlackout
property to true for all days in a month and/or in a year2.2. Try to modify the
IsBlackout
property on months and/or years2.3. Try to find
CalendarView
childs related to months and/or yearsExpected behavior
IsBlackout
property that can be modifiedAnd/Or
IsBlackout
set to true.Screenshots
Screenshot 1:
Screenshot 2:
NuGet package version
WinUI 3 - Windows App SDK 1.4.3: 1.4.231115000
Windows version
Windows 10 (21H2): Build 19044
Additional context
No response
The text was updated successfully, but these errors were encountered: