question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DaySelectedBackgroundColor - Circle not Rendering

See original GitHub issue

Describe the bug

Hi there!

Thanks for all the work you put into XCalendar!

I think I might be experiencing a bug in setting the color value for the dot that indicates the currently selected date.

Looking at the Sample Code it looks to me like it should be set on the cx:DayView - where you assign it to a Color value.

I’ve done that like so:

<xc:DayView
    ...
    SelectedBackgroundColor="{StaticResource DaySelectedBackgroundColor}"
    ...
    >
</xc:DayView>

And then set the resource in App.xaml like

<Application.Resources>
    ...
    <Color x:Key="DaySelectedBackgroundColor">Green</Color>
    ...
</Application.Resources>

However, the selected indicator still does not populate. Screenshot: xcalendarissue

Are there other properties that I need to set to enable this feature?

Expected behavior

I would think there should be a green dot when selecting on a day.

Steps to reproduce OR link to code

I’ve uploaded my current code to this repo / branch

Xamarin Forms or .NET MAUI (If related to UI)

.NET MAUI

Additional context (Optional)

Device Info (Optional) Device Model: samsung galaxy s20 FE Android Version: 12, One UI version 4.1 IOS Version: Windows Version:

Issue Analytics

  • State:closed
  • Created 8 months ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ME-MarvinEcommented, Jan 17, 2023

@johnyenter-briars I was opening the link through the Mobile app which kept leading me to the ‘master’ branch. The links work fine on PC.

Eventually I tried using a Calendar with CalendarDay instead of EventDay and it worked.

The EventDay and Event classes in the sample app (along with other classes) use the PropertyChanged.Fody nuget package to inject usage of the INotifyPropertyChanged interface into the shorthand setter ({ get; set; }) by adding the AddINotifyPropertyChangedInterface attribute to the ‘BaseObservable’ classes which they inherit from.

This package nor the attribute is present in the project and there was no replacement for its functionality. You will need to either implement the INotifyPropertyChanged Interface manually, or install the PropertyChanged.Fody nuget package and re-add the AddINotifyPropertyChangedInterface attribute wherever it was removed.

I implemented the interface manually into the EventDay class and everything seemed to work correctly.

Thanks for using XCalendar

0reactions
johnyenter-briarscommented, Jan 20, 2023

@ME-MarvinE Sorry, took me a while to find the time to implement your fix. It worked as expected.

Thank you so much! Closing the issue now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why doesn't a wire mesh render?
The circle has no faces ( surface to reflect the light so it can be seen ) it can't be rendered like that....
Read more >
Google Maps Circle Not Rendering/Showing
I am using the Google Maps JS API to render a map on a site: This map is centered on a specific point...
Read more >
Trouble Rendering Circle Overlays in Chrome and Safari
I have created circle overlays for my thumbnails using a plugin I downloaded from ThumbFX. It renders fine in Firefox but not in...
Read more >
SVG circles not rendering as expected · Issue #288
SVG circles not rendering as expected #288 ... This gist should show 2 equally sized circles of radius 50: A red circle at...
Read more >
Solved: Rendering CIrcles in AutoCAD
Try opening OPTIONS and under "Display" tab there is a variable for arc and circle smoothness. Change that to 10000 or higher as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found