---
title: "How to bind to property of object returned by converter"  
description: "How to bind to property of object returned by converter"  
author: "Anonymous User"  
published: 2013-07-18  
updated: 2013-07-18  
canonical: https://www.mindstick.com/forum/1321/how-to-bind-to-property-of-object-returned-by-converter  
category: "wpf"  
tags: ["wpf"]  
reading_time: 2 minutes  

---

# How to bind to property of object returned by converter

HI [mindstick](https://yourviews.mindstick.com/view/84668/how-mindstick-is-used-for-marketing-purposes)!

I'm trying to bind to a value, run a converter over it, and then display a property of that value. Having the Converter directly return the property I want wouldn't work, as I need [property changes](https://www.mindstick.com/forum/158742/how-can-you-create-a-smooth-transition-effect-between-css-property-changes) to be tracked.

What I'm trying to achieve would be something like this:

// NOTE: FOLLOWING IS NOT SUPPORTED BY WPF

// A '[Binding](https://www.mindstick.com/blog/146/dynamic-binding-in-c-sharp)' cannot be set on the '[Source](https://www.mindstick.com/interview/840/what-happens-if-the-both-source-and-destination-are-named-same)' property of type 'Binding'.

// A 'Binding' can only be set on a DependencyProperty of a DependencyObject.

Text={Binding TextField Source={Binding SomeValue, Converter={StaticResource GetObjectFromValueConverter}}}`

Ideally, this would all be wrapped up in a [simple](https://yourviews.mindstick.com/story/1469/5-simple-ways-to-stay-fit-amp-healthy) [markup](https://www.mindstick.com/blog/59/xaml-extensible-application-markup-language) extension.

Text={l:GetTextField SomeValue}

[Problem](https://yourviews.mindstick.com/view/81399/tackling-the-problem-of-unemployment-during-corona-pandemic) is, I haven't been able to find any way to do this other than bind the Tag of the element to the converter, and then bind the target field to the property as follows:

Tag={Binding SomeValue, Converter={StaticResource GetObjectFromValueConverter}}

Text={Binding Tag.TextField, RelativeSource={RelativeSource Self}}

This is obviously cumbersome, limited (you only get one Tag field) and feels abusive. How else can I go about achieving what I want whilst [monitoring](https://www.mindstick.com/articles/12832/learn-the-art-of-monitoring-google-updates-to-stay-in-tune-with-the-best-seo-practices) for changes of TextField though?

thank in [advance](https://www.mindstick.com/blog/33258/jee-mains-and-jee-advance-exams)

## Replies

### Reply by shreesh chandra shukla

Your Answer!try this

You can bind the DataContext of the TextBox, instead of the Tag. That will make your other bindings much simpler:

DataContext="{Binding SomeValue, Converter={StaticResource GetObjectFromValueConverter}}"

Text="{Binding TextField}"


---

Original Source: https://www.mindstick.com/forum/1321/how-to-bind-to-property-of-object-returned-by-converter

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
