No Events for WPF DataGridRow
kgday opened this issue · 6 comments
This is the code I had when using the old ReactiveUI.Events.WPF
FileItemsDataGrid
.Events()
.LoadingRow
.SelectMany(loadingRowArgs => loadingRowArgs.Row.Events().MouseEnter.Select(_ => loadingRowArgs.Row.DataContext as IFileViewModel))
.WhereNotNull()
.Subscribe(vm => vm.CurrentlyHoveredOver = true)
.DisposeWith(d);
but with ReactiveMarbles/.ObservableEvents there is no events (NullEvents) for loadingRowArgs.Row which is a DataGridRow type.
Thanks..
<IncludePackageReferencesDuringMarkupCompilation>true</IncludePackageReferencesDuringMarkupCompilation>
you need that one I believe in the property group of your csproj
Thanks, but I had that already.
I use Events() extensively and it works for everything else except for DataGridRow. I have an idea that it is because the only reference to the datagrid row type is in the selectmany.
I tried adding a
public DataGridRow? dummyRow; //just so events observable can be generagted
But it didn't help.
Going back to ReactiveUI.Events.WPF for now. My current computer is too slow to use this source generator anyhow as it is, even with version 1.1.4. Hopefully before too long I will upgrade :-)