Is there a possibility to call the Click-Event of a ListViewColumnHeader programatically?
I try to write an integration test about sortable columns in a ListView with a GridView and want to do something like this:
var list = new ListView();
var grid = new GridView();
var column = new GridViewColumn();
var header = new GridViewColumnHeader();
column.Header = header;
grid.Columns.Add(column);
header.DoClick(); // <-- not possible directly - what can I do
I already tried to achieve the goal by using the GridViewColumnHeaderAutomationPeer but did not succeed.