Hello again :)
How is it possible to show an icon (e.g. delete/edit) at the end of a row, when the mouse is over the row.
Please see attached screenshot.
Thanks for helping,
Markus
Hello Markus,
It's definitely possible. You'll most likely need to retemplate the DataRecordPresenter control and add a hidden button control for deleting after the PART_RecordContentSite. Then add a Trigger that watches for the IsMouseOver property to turn "True" to change the Visibility on the button. I'm putting together a sample to demonstrate this. I will get back to you when it's ready.
Hello Rob,
thanks. I got the idea but an example would be fine.
See you
I have attached the sample. I added a Button control to the DataRecordPresenter template and set it's Command property to DataPresenterCommands.DeleteSelectedDataRecords so that when you select a record and click on this button, it will remove the record.
Let me know if you have any questions on this.
Thanks for your example. Even it's not what we needed, because the button is shown always and not only if the mouse is over the row.
But anyway now we have an example of how to retemplate the row.
Best regards
Hello,
thanks for your support.
My issue is solved now.
I think it may be useful for others, too.
Were you able to resolve your issue?
Sincerely,Valerie Developer Support Supervisor - XAMLInfragisticswww.infragistics.com/support
Sorry about that. In the Button XAML, set the Visibility property to Collapsed and then in the ControlTemplate.Triggers, add the following trigger:
<Trigger Property="IsMouseOver" Value="True"> <Setter TargetName="DeleteButton" Property="Visibility" Value="Visible"/> </Trigger>