Is it possible to set a CellValuePresenterStyle in CodeBehind?
I have a lookless control with a template and want to push that template into the the CellValuePresenterStyle property. Something like this :
();
// Set up FieldLayout
dataGrid.FieldLayouts.Add(gridLayout);
);
field.Column = 0;
));
fieldStyle.Setters.Add(
.TemplateProperty, fieldElement.Template));
But the .Template property of my lookless control has TargetType of the lookless control, and not CellValuePresenter.
Any hints on how to accomplish this?
HI,
I am attaching a sample project that sets a CellValuePresenterStyle in CodeBehind.
Sincerely, Matt DSE