yurkinh / Plugin.Maui.Calendar

.NET MAUI port of XF calendar plugin
MIT License
142 stars 13 forks source link

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

Open edgiardina opened 8 months ago

edgiardina commented 8 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 8 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 4 months ago

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

edgiardina commented 4 months 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 4 months 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.