<DataTemplate>
<Grid x:Name="Template" InputTransparent="False"HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand">
<Grid.GestureRecognizers>
<TapGestureRecognizer Tapped="Button_Clicked"NumberOfTapsRequired="1"/>
</Grid.GestureRecognizers>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="0.4*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Label Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2"Text="{Binding Subject}" HorizontalOptions="FillAndExpand" TextColor="{Binding Color}"FontSize="Small"/>
<Button x:Name="button" Clicked="Button_Clicked"BackgroundColor="Purple" Grid.Column="0" Grid.Row="1" Text="Template" TextColor="White" />
</Grid>
</DataTemplate> |
<Button Text="{Binding EventName}" TextColor="#000000">
<Button.Behaviors>
<behaviors:EventToCommandBehavior EventName="Clicked"
Command="{Binding Source={x:ReferencePage},Path=BindingContext.ViewJobCommand}" CommandParameter="{Binding}" />
</Button.Behaviors>
</Button> |