Skip to content

Commit

Permalink
Remove class "ColoredEvent" from XCalendar UI projects
Browse files Browse the repository at this point in the history
  • Loading branch information
ME-MarvinE committed Mar 10, 2024
1 parent 0515fab commit 174ae7b
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 61 deletions.
1 change: 0 additions & 1 deletion XCalendar.Forms/Views/DayView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
<Setter.Value>
<DataTemplate x:DataType="{x:Null}">
<Rectangle
Fill="{Binding Color}"
HeightRequest="{Binding EventHeightRequest, Source={x:Reference DayView_Unique}}"
HorizontalOptions="CenterAndExpand"
RadiusX="{Binding EventCornerRadius, Source={x:Reference DayView_Unique}}"
Expand Down
29 changes: 0 additions & 29 deletions XCalendar.Maui/Models/ColoredEvent.cs

This file was deleted.

1 change: 0 additions & 1 deletion XCalendar.Maui/Views/DayView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
<Setter.Value>
<DataTemplate x:DataType="{x:Null}">
<Rectangle
Fill="{Binding Color}"
HeightRequest="{Binding EventHeightRequest, Source={x:Reference DayView_Unique}}"
HorizontalOptions="CenterAndExpand"
RadiusX="{Binding EventCornerRadius, Source={x:Reference DayView_Unique}}"
Expand Down
File renamed without changes.
30 changes: 0 additions & 30 deletions XCalendarFormsSample/XCalendarFormsSample/Models/Event.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -1007,6 +1007,18 @@
IsToday="{Binding IsToday}"
WidthRequest="{Binding BindingContext.DayWidthRequest, Source={x:Reference This}}">

<xc:DayView.EventTemplate>
<DataTemplate x:DataType="{x:Null}">
<Rectangle
Fill="{Binding Color}"
HeightRequest="8"
HorizontalOptions="CenterAndExpand"
RadiusX="100"
RadiusY="100"
VerticalOptions="Center"
WidthRequest="8"/>
</DataTemplate>
</xc:DayView.EventTemplate>
<xc:DayView.CurrentMonthStyle>
<Style BasedOn="{StaticResource DefaultDayViewCurrentMonthStyle}" TargetType="{x:Type xc:DayView}">
<Setter Property="BackgroundColor" Value="{Binding BindingContext.DayCurrentMonthBackgroundColor, Source={x:Reference This}}"/>
Expand Down
File renamed without changes.
13 changes: 13 additions & 0 deletions XCalendarMauiSample/Views/PlaygroundPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -1048,6 +1048,19 @@
IsToday="{Binding IsToday}"
WidthRequest="{Binding BindingContext.DayWidthRequest, Source={x:Reference This}}">

<xc:DayView.EventTemplate>
<DataTemplate x:DataType="{x:Null}">
<Rectangle
Fill="{Binding Color}"
HeightRequest="8"
HorizontalOptions="CenterAndExpand"
RadiusX="100"
RadiusY="100"
VerticalOptions="Center"
WidthRequest="8"/>
</DataTemplate>
</xc:DayView.EventTemplate>

<xc:DayView.CurrentMonthStyle>
<Style BasedOn="{StaticResource DefaultDayViewCurrentMonthStyle}" TargetType="{x:Type xc:DayView}">
<Setter Property="BackgroundColor" Value="{Binding BindingContext.DayCurrentMonthBackgroundColor, Source={x:Reference This}}"/>
Expand Down

0 comments on commit 174ae7b

Please sign in to comment.