WinUI3 Scheduler CalendarView
hello im trying to make a winui3 calendarview interactive calendar where I can predefine dates in my code and then when I launch the program I can click on specific dates and see whats scheduled for the specific date, how would I do it?
I tried reading about selected calendar items but I couldn't really figure it out, can someone help me out please?
I did something along these lines
But this doesn't exactly help me select a date
I'd like to add dates that are scheduled in a calendar
14 Replies
is the mode set to multiple selection?
CalendarViewSelectionMode
yes
SelectionMode="Multiple"
in my xaml file
the things above work
Im just wondering how can I select these entires to read more about them
for example how can I select an entry and it'll display for example when is someone going to fly
to africa
oh
there should be something like calendar events
lemme check
@OoogaBooga i dont see anything like what we have in outlook where you see events. But what you can do is when you click on a date you can pop open a box and display what you want there with the selected date.
This is something i got from chatgpt.
Yeah thats pretty much what I want but I don't see how this connect this code to my main code really I'm going to try real quick though
dont
it wont work lol... i just tried a min ago
use ContentDialog
contentdialog? whats that
does it work with calendarview?
download winui3 gallery from widnows store and search
And how should I implement it with my calender view?
Sorry I'm just new to winui3 and all of that
I have winui3 gallery used it a couple of times
Okay so I found something along the lines of this on the internet:
It puts text on every single day of the calendar
how would I make it so the text instead would only appear on selected dates?
dont know bro as i am also new 😄
but what you can do is if theres an "if" statement you can put that in the condition where "selectedDates[i] in eventDates"
The code above also doenst work for me. Is there any c# code behind it?
all of this is pure xaml code no csharp code
Here I updated it
Try this
I dont know why this doesnt work as well
I'm trying to stick this into my xaml page in one of the sections of my page but it doesn't react to the CS, the CS can't seem to detect the name
Here's the CS Code
is this for the popup?
If so i can share the code for it
i dont know how to bind to the xaml element but you can do this. i have added in code.
Yeah that's exactly what I got but I don't know how to link it to the xaml code either
what i wanted to do is change the text Visibility property if the current selected date is not in the events