dotnet / dotnet/maui

Make so that Control x:DataType overrides CollectionView.ItemTemplate DataTemplate x:DataType for the Control

Open
#30,145 10 comments 1 reaction 1 assignee Assigned to @Copilot View on GitHub
area-controls-collectionview proposal/open s/needs-attention
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 15h
Merged PRs (30d)
290

Description

### Description

While there are some solutions to write bindings with ancestor access inside CollectionViews to access ViewModel properties after setting a Model, if would be much more natural and convenient to write it as is:

```

```

So the label data type seeks properties inside the ViewModel, instead of the Model referenced above by

```


```

### Public API Changes

Make so that a Control x:DataType has priority above all else even inside a CollectionView

### Intended Use-Case

Making things simpler and more intuitive when dealing with data types and bindings inside collection views

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.