Dear Actipro support,
I want to change the binding type to the Dataobject durring runtime,
currently the propertyGrid is working with one type
<grids:PropertyGrid
IsSummaryVisible="False"
BorderThickness="0"
IsCategorized ="True"
ArePropertiesAutoExpanded="True"
SortComparer="{x:Null}"
CollectionPropertyDisplayMode="Expandable"
DataContext="{Binding PropertyGridVm}"
DataObject="{Binding PGDataObjectVm}"
IsReadOnly="True"/>
for PGDataObjectVm it is customized type
class PGDataObjectVm
{
list<string> List1 {get; set;}
string String1{get; set;}
string String2{get; set;}
string String3{get; set;}
}
I want to create another type PGDataObjectVm2
class PGDataObjectVm2
{
string String4{get; set;}
string String5{get; set;}
string String6{get; set;}
}
I want to change the binding between type PGDataObjectVm and PGDataObjectVm2 during runtime, for a diffrent display in the propertyGrid
how can I accomplish that?
Looking forward to your reply.