Using attached property is better for maintainability because it does not depend on any particular ListView name. (cherry picked from commit 5fda3171)