dotnet / dotnet/wpf

WPF: Support custom RelativeSource on bindings

Open
#9,408 1 comment 0 reactions 0 assignees View on GitHub
:mailbox_with_no_mail: waiting-author-feedback
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

_This issue has been moved from [a ticket on Developer Community](https://developercommunity.visualstudio.com/t/WPF:-Support-custom-RelativeSource-on-bi/1636305)._

---
I'm not sure if this is the proper place for a feature request for WPF, please redirect me if not.

I would like to be able to implement custom RelativeSource for bindings. This is not currently possible as the RelativeSource class only holds the configuration, while the actual resolution to a source object happens in RelativeObjectRef, which is sealed and internal.

My concrete use case is that I would like a RelativeSource that searches for the type of the DataContext, not the element itself.

---
### Original Comments

#### Feedback Bot on 1/14/2022, 00:32 PM:

(private comment, text removed)

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.