I have a couple Boolean properties on my object that by default are being rendered as Check Boxes. I have put a Data Template Selector class in place to provide a new template that uses a simple TextBlock. The problem is instead of the TextBlock showing True or False (which it does by default) I want it to show Yes or No. So I also created a simple class that implements IValueConverter to change Booleans to Yes or No. Because I have multiple similar properties I want to reuse the same data template.
I thought using the AutoBindBehavior would do the trick (and it might I could be using it wrong) but when my value converter is called I am passed the Parent object and not just the value of the property being rendered.
I have a feeling my Binding expression for my Text property on the data template is wrong but I am unable to figure out the proper value.
Thanks.
<utils:PropertyEditorTemplateSelector.YesNoTemplate> <DataTemplate> <TextBlock telerik:AutoBindBehavior.UpdateBindingOnElementLoaded="Text" Text="{Binding Converter={StaticResource YesNo}}" /> </DataTemplate></utils:PropertyEditorTemplateSelector.YesNoTemplate>I thought using the AutoBindBehavior would do the trick (and it might I could be using it wrong) but when my value converter is called I am passed the Parent object and not just the value of the property being rendered.
I have a feeling my Binding expression for my Text property on the data template is wrong but I am unable to figure out the proper value.
Thanks.
