this is my XAML, but when I press a little long on button with binding command, the button gray out and froze the app. It also happen with image that has command binding if it's in CellContentTemplate
<
telerikDataGrid:RadDataGrid
x:Name
=
"PigDataGrid"
ItemsSource
=
"{Binding Measurements}"
AutoGenerateColumns
=
"False"
SelectionMode
=
"Single"
SelectionUnit
=
"Cell"
SelectionChanged
=
"SelectedItem"
>
<
telerikDataGrid:RadDataGrid.Columns
>
<
telerikDataGrid:DataGridDateColumn
PropertyName
=
"MEASUREMENT_DATE"
HeaderText
=
"Date"
/>
<
telerikDataGrid:DataGridTextColumn
PropertyName
=
"PIG_BARREL_TYPE_STRING"
HeaderText
=
"Pig"
/>
<
telerikDataGrid:DataGridTextColumn
PropertyName
=
"PIG_TYPE"
HeaderText
=
"Pig Type"
/>
<
telerikDataGrid:DataGridTemplateColumn
HeaderText
=
"Info"
>
<
telerikDataGrid:DataGridTemplateColumn.CellContentTemplate
>
<
DataTemplate
>
<
StackLayout
Orientation
=
"Horizontal"
HorizontalOptions
=
"Center"
VerticalOptions
=
"Center"
>
<
Button
Image
=
"info_black.png"
BackgroundColor
=
"Transparent"
Command
=
"{Binding Path=ButtonCommand, Source={x:Reference PiggingListView}}"
CommandParameter
=
"{Binding .}"
BorderWidth
=
"0"
HeightRequest
=
"25"
WidthRequest
=
"25"
HorizontalOptions
=
"End"
VerticalOptions
=
"Center"
/>
<
Image
WidthRequest
=
"25"
HeightRequest
=
"25"
HorizontalOptions
=
"End"
>
<
Image.Style
>
<
Style
TargetType
=
"{x:Type Image}"
>
<
Style.Triggers
>
<
DataTrigger
TargetType
=
"Image"
Binding
=
"{Binding IsUploaded}"
Value
=
"False"
>
<
Setter
Property
=
"Source"
Value
=
"clock.png"
/>
</
DataTrigger
>
<
DataTrigger
TargetType
=
"Image"
Binding
=
"{Binding IsUploaded}"
Value
=
"True"
>
<
Setter
Property
=
"Source"
Value
=
"upload.png"
/>
</
DataTrigger
>
</
Style.Triggers
>
</
Style
>
</
Image.Style
>
</
Image
>
</
StackLayout
>
</
DataTemplate
>
</
telerikDataGrid:DataGridTemplateColumn.CellContentTemplate
>
</
telerikDataGrid:DataGridTemplateColumn
>
<
telerikDataGrid:DataGridTemplateColumn
HeaderText
=
"Delete"
>
<
telerikDataGrid:DataGridTemplateColumn.CellContentTemplate
>
<
DataTemplate
>
<
Button
Image
=
"rubbish_bin"
BackgroundColor
=
"Transparent"
Command
=
"{Binding Path=DeleteCommand, Source={x:Reference PiggingListView}}"
CommandParameter
=
"{Binding .}"
BorderWidth
=
"0"
HeightRequest
=
"25"
WidthRequest
=
"25"
HorizontalOptions
=
"Center"
VerticalOptions
=
"Center"
/>
</
DataTemplate
>
</
telerikDataGrid:DataGridTemplateColumn.CellContentTemplate
>
</
telerikDataGrid:DataGridTemplateColumn
>
</
telerikDataGrid:RadDataGrid.Columns
>
</
telerikDataGrid:RadDataGrid
>