Skip to content

Commit 174ae7b

Browse files
committed
Remove class "ColoredEvent" from XCalendar UI projects
1 parent 0515fab commit 174ae7b

File tree

8 files changed

+25
-61
lines changed

8 files changed

+25
-61
lines changed

XCalendar.Forms/Views/DayView.xaml

-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
<Setter.Value>
5757
<DataTemplate x:DataType="{x:Null}">
5858
<Rectangle
59-
Fill="{Binding Color}"
6059
HeightRequest="{Binding EventHeightRequest, Source={x:Reference DayView_Unique}}"
6160
HorizontalOptions="CenterAndExpand"
6261
RadiusX="{Binding EventCornerRadius, Source={x:Reference DayView_Unique}}"

XCalendar.Maui/Models/ColoredEvent.cs

-29
This file was deleted.

XCalendar.Maui/Views/DayView.xaml

-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
<Setter.Value>
5757
<DataTemplate x:DataType="{x:Null}">
5858
<Rectangle
59-
Fill="{Binding Color}"
6059
HeightRequest="{Binding EventHeightRequest, Source={x:Reference DayView_Unique}}"
6160
HorizontalOptions="CenterAndExpand"
6261
RadiusX="{Binding EventCornerRadius, Source={x:Reference DayView_Unique}}"

XCalendarFormsSample/XCalendarFormsSample/Models/Event.cs

-30
This file was deleted.

XCalendarFormsSample/XCalendarFormsSample/Views/PlaygroundPage.xaml

+12
Original file line numberDiff line numberDiff line change
@@ -1007,6 +1007,18 @@
10071007
IsToday="{Binding IsToday}"
10081008
WidthRequest="{Binding BindingContext.DayWidthRequest, Source={x:Reference This}}">
10091009

1010+
<xc:DayView.EventTemplate>
1011+
<DataTemplate x:DataType="{x:Null}">
1012+
<Rectangle
1013+
Fill="{Binding Color}"
1014+
HeightRequest="8"
1015+
HorizontalOptions="CenterAndExpand"
1016+
RadiusX="100"
1017+
RadiusY="100"
1018+
VerticalOptions="Center"
1019+
WidthRequest="8"/>
1020+
</DataTemplate>
1021+
</xc:DayView.EventTemplate>
10101022
<xc:DayView.CurrentMonthStyle>
10111023
<Style BasedOn="{StaticResource DefaultDayViewCurrentMonthStyle}" TargetType="{x:Type xc:DayView}">
10121024
<Setter Property="BackgroundColor" Value="{Binding BindingContext.DayCurrentMonthBackgroundColor, Source={x:Reference This}}"/>
File renamed without changes.

XCalendarMauiSample/Views/PlaygroundPage.xaml

+13
Original file line numberDiff line numberDiff line change
@@ -1048,6 +1048,19 @@
10481048
IsToday="{Binding IsToday}"
10491049
WidthRequest="{Binding BindingContext.DayWidthRequest, Source={x:Reference This}}">
10501050

1051+
<xc:DayView.EventTemplate>
1052+
<DataTemplate x:DataType="{x:Null}">
1053+
<Rectangle
1054+
Fill="{Binding Color}"
1055+
HeightRequest="8"
1056+
HorizontalOptions="CenterAndExpand"
1057+
RadiusX="100"
1058+
RadiusY="100"
1059+
VerticalOptions="Center"
1060+
WidthRequest="8"/>
1061+
</DataTemplate>
1062+
</xc:DayView.EventTemplate>
1063+
10511064
<xc:DayView.CurrentMonthStyle>
10521065
<Style BasedOn="{StaticResource DefaultDayViewCurrentMonthStyle}" TargetType="{x:Type xc:DayView}">
10531066
<Setter Property="BackgroundColor" Value="{Binding BindingContext.DayCurrentMonthBackgroundColor, Source={x:Reference This}}"/>

0 commit comments

Comments
 (0)