
Hi, I am trying to add file browsing to one of my properties. If possible, I would prefer to set this in c# code, so the properties could be changed without touching the wpf code. I have already looked into your sample property editors and PropertyGrid Integration but couldn't find a clue.
<propgrid:PropertyGrid SelectedObject="{Binding objMyData}"/>
this.DataContext = new VMMainWindow();
public class VMMainWindow : VmBase
{
private Object m_objMyData;
public Object objMyData
{
get
{
return m_objMyData;
}
set
{
if (m_objMyData != value)
{
m_objMyData = value;
OnPropertyChanged("objMyData");
}
}
}
public VMMainWindow()
{
objMyData = new MyData();
}
}
public class MyData
{
[Category("Info")]
[Description("Path")]
[DisplayName("Path")]
public string FilePath { get; set; }
}
I don't have much experience with WPF or with actipro PropertyGrid, so an example would be nice.
Thank you in advance