Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
55
Binding to TextBlock in CellValuePresenterStyle on XamDataGrid
posted

Hi there,

I am using a XamDataGrid, and have created a ControlTemplate that I am adding to the CellValuePresenter setters.

The grid has a Status column which is where I have used the ControlTemplate.

I have created a simple sample project that demonstrates the issue I am having, which is in the ControlTemplate there is an Ellipse and TextBlock.

You can see the grid here, and the text is not being bound to the TextBlock in the ControlTemplate:

https://ibb.co/ir3Duk

You can see the way the markup shows as expected when put in a simple window:

https://ibb.co/iTGcLQ

What I am doing wrong in the ControlTemplate and how can I bind the value for the TrainingPercent property?

Here is a link to the sample project to replicate the issue:https://www.dropbox.com/s/6ehrigkty9depqq/WPFTests.zip?dl=0

Thank you for your time,

Scott