Skip to content

Commit

Permalink
Move implementation of coloured events from sample apps to base UI pr…
Browse files Browse the repository at this point in the history
…ojects
  • Loading branch information
ME-MarvinE committed Mar 10, 2024
1 parent e712b2d commit fa3ea4a
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 15 deletions.
File renamed without changes.
1 change: 1 addition & 0 deletions XCalendar.Forms/Views/DayView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
<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.
1 change: 1 addition & 0 deletions XCalendar.Maui/Views/DayView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
<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
Original file line number Diff line number Diff line change
Expand Up @@ -171,23 +171,23 @@
Spacing="0">
<StackLayout Orientation="Horizontal" Spacing="0">
<Label
FontAttributes="Bold"
FontSize="20"
Text="{Binding StartDate, StringFormat='{0:dd MMMM HH:mm}'}"
TextColor="{StaticResource ContentTextColor}"
VerticalTextAlignment="Center"/>
FontAttributes="Bold"
FontSize="20"
Text="{Binding StartDate, StringFormat='{0:dd MMMM HH:mm}'}"
TextColor="{StaticResource ContentTextColor}"
VerticalTextAlignment="Center"/>
<Label
FontAttributes="Bold"
FontSize="20"
Text=" - "
TextColor="{StaticResource ContentTextColor}"
VerticalTextAlignment="Center"/>
FontAttributes="Bold"
FontSize="20"
Text=" - "
TextColor="{StaticResource ContentTextColor}"
VerticalTextAlignment="Center"/>
<Label
FontAttributes="Bold"
FontSize="20"
Text="{Binding EndDate, StringFormat='{0:dd MMMM HH:mm}', TargetNullValue='No End Date'}"
TextColor="{StaticResource ContentTextColor}"
VerticalTextAlignment="Center"/>
FontAttributes="Bold"
FontSize="20"
Text="{Binding EndDate, StringFormat='{0:dd MMMM HH:mm}', TargetNullValue='No End Date'}"
TextColor="{StaticResource ContentTextColor}"
VerticalTextAlignment="Center"/>
</StackLayout>
<Label
Margin="5,0,0,0"
Expand Down

0 comments on commit fa3ea4a

Please sign in to comment.