Skip to content

Proposal: Enable ItemsView selection via binding #10504

@weitzhandler

Description

@weitzhandler

Proposal: Enable ItemsView selection via binding

Currently the ItemsView only enables selection by index, and it's achieved by calling itemsView.Select(index). Please convert the currently read-only SelectedItem and SelectedItems properties to dependency properties so we can bind to them efficiently and in a loosely coupled way from the view-model.

Summary

The only way to invoke a selection of items in the ItemsView is by calling itemsView.Select(index) or itemsView.SelectAll(). There should be a better more MVVM-friendly way to achieve that.

Rationale

  • ItemsView is not MVVM-ready
  • ItemsView should enable selection via binding

Scope

Capability Priority
ItemsView.SelectedItem should be a read-write dependency property Must
ItemsView.SelectedItems should either be a read-write dependency property or become a modifiable ObservableCollection Must

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions