Skip to content
New issue

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

[CalendarView] Can't Blackout month or year items on calendarView component #9164

Open
ToukZ opened this issue Dec 13, 2023 · 0 comments
Open
Labels
area-DateTimePickers DatePicker, TimePicker, CalendarDatePicker, CalendarView bug Something isn't working feature proposal New feature proposal team-Controls Issue for the Controls team

Comments

@ToukZ
Copy link

ToukZ commented Dec 13, 2023

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 the IsBlackout property of them, but found out that there isn't any children named CalendarViewMonthYearItem 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 a CalendarView component, but it doesn't seem to be a valid recognizable object to work with (See Screenshot 2).

Steps to reproduce the bug

  1. Code a CalendarView component
  2. Try to make blacked out months/years
    2.1. Try to set the IsBlackout property to true for all days in a month and/or in a year
    2.2. Try to modify the IsBlackout property on months and/or years
    2.3. Try to find CalendarView childs related to months and/or years
  3. See error

Expected behavior

  1. Months and Years should be instanciable objects that have a IsBlackout property that can be modified
    And/Or
  2. Months and Years should automatically become blacked out if all days within that month/year have the property IsBlackout set to true.

Screenshots

  • Screenshot 1:
    Screenshot1

  • Screenshot 2:
    Screenshot2

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

@ToukZ ToukZ added the bug Something isn't working label Dec 13, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Dec 13, 2023
@bpulliam bpulliam added area-DateTimePickers DatePicker, TimePicker, CalendarDatePicker, CalendarView team-Controls Issue for the Controls team and removed needs-triage Issue needs to be triaged by the area owners labels Jan 5, 2024
@gegao18 gegao18 added the feature proposal New feature proposal label Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-DateTimePickers DatePicker, TimePicker, CalendarDatePicker, CalendarView bug Something isn't working feature proposal New feature proposal team-Controls Issue for the Controls team
Projects
None yet
Development

No branches or pull requests

3 participants