yurkinh / Plugin.Maui.Calendar

.NET MAUI port of XF calendar plugin
MIT License
108 stars 11 forks source link

[Enhancement] Allow background color to be set for Events scrollview as well as calendar itself #43

Open edgiardina opened 3 months ago

edgiardina commented 3 months ago

Right now I can set a calendar background color but that colors the entire events scrollview as well as the calendar. I want the calendar events scrollview to be a separate color than the calendar itself, which is how the native app Calendar appears in iOS.

yurkinh commented 3 months ago

Hi @edgiardina Thanks for the suggestion. I think it won't be difficult to add hence I will try to implement this with next minor plugin update

usefulBeeing commented 1 week ago

I think you can accomplish the same goal by setting the Background Color of the Events DataTemplate StackLayout.

edgiardina commented 2 days ago

@usefulBeeing unfortunately not, if you set the background color of the stacklayout there's still spacing and padding between the items drawn that won't have the background color. Whatever container the DataTemplate populates needs the background color which we can't pass to the datatemplate itself.

usefulBeeing commented 1 day ago

@edgiardina , I didn't notice any spacing when I copied and pasted the READEME sample.

Here's what it looks like on my side:

CalBack

Even if there were to be spacing, you still could wrap the StackPanel in a Grid as a workaround, and set the BackgroundColor of the Grid.

With that said, I think the feature you're asking for is awesome and should be implemented.