dotnet / dotnet/wpf

New DataTemplateSelector that supports adding children in xaml.

Open
#1,228 8 comments 3 reactions 0 assignees View on GitHub
Design Discussion Enhancement Requested
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

The API I have in mind is:

```xaml




...



...


```

I don't remember what the ways to do this is. Implementing `IList` is one but not ideal here. Maybe `IAddChild` is a thing.

Add would add the templates to a `Dictionary` and `SelectTemplate` would resolve from that. Don't think there is a need for a new type, tweaking the existing should be ok.

Probably safest with a new type for this.

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.