Hi,
i would like to bind the display name of a PropertyDefinition in a RadPropertyGrid, but it doesn't work. Is there any way to do this?
Here my code snippet ...
Xaml:
<telerik:RadPropertyGrid Item="{Binding ActualModel}">
<telerik:RadPropertyGrid.PropertyDefinitions>
<telerik:PropertyDefinition
Description="{x:Static localProps:Resources.ids_Tooltip_Diameter}"
DisplayName="{Binding Path=DiameterLabel}"
GroupName="{x:Static cmnProps:Resources.ids_Group_Data}"
OrderIndex="1" >
<telerik:PropertyDefinition.EditorTemplate>
<DataTemplate>
<Border Style="{DynamicResource BorderStyle}" >
<telerik:RadMaskedNumericInput Value="{Binding Path=Diameter}" />
</Border>
</DataTemplate>
</telerik:PropertyDefinition.EditorTemplate>
</telerik:PropertyDefinition>
</telerik:RadPropertyGrid.PropertyDefinitions>
</telerik:RadPropertyGrid>
Model c#:
private string _diameterLabel;
public string DiameterLabel
{
get { return this._diameterLabel; }
set
{
if (this._diameterLabel != value)
{
this._diameterLabel = value;
OnPropertyChanged(() => DiameterLabel);
}
}
}
Thanks for help
best regards Anne