WPF implementation of TryGetRowHeight