Hello Telerik,
My code is throwing exception:
Property definition cannot be created.
What can be the problem please?
rpg type is RadPropertyGrid
Thank you.
Tom
My code is throwing exception:
void
mainViewModel_Changed(
object
sender, EventArgs e)
{
this
.rpg.PropertyDefinitions.Clear();
Telerik.Windows.Controls.Data.PropertyGrid.PropertyDefinition pd;
pd =
new
Telerik.Windows.Controls.Data.PropertyGrid.PropertyDefinition(
new
Telerik.Windows.Data.ItemPropertyInfo(
"Name"
,
typeof
(
string
),
""
))
{
Binding =
new
Binding(
"Name"
) { Mode = BindingMode.TwoWay },
EditorTemplate = (DataTemplate)
this
.Resources[
"pbTextTemplate"
]
};
this
.rpg.PropertyDefinitions.Add(pd);
}
Property definition cannot be created.
What can be the problem please?
rpg type is RadPropertyGrid
Thank you.
Tom