Closed kcris closed 2 years ago
Hello, Sorry for the long delay, I just tested Toolkit v4.0.0 from NuGet for a PropertyGrid with some properties containing subProperties. The searchbox returned the expected searched properties, even the ones from sub-properties. Upon starting the sample, I type in the searchBox a sub-property name, like "street". Here's my sample:
`
`
` public partial class MainWindow : Window { public MainWindow() { InitializeComponent();
this.DataContext = new Player()
{
Info = new PlayerInfo() { FirstName = "Carey", LastName = "Price", Address = new Address() { City = "Mtl", Street = "Main" } },
Age = 34
};
}
}
public class Player { [ExpandableObject()] public PlayerInfo Info { get; set; }
public int Age
{
get;
set;
}
}
public class PlayerInfo { public string FirstName { get; set; }
public string LastName
{
get;
set;
}
[ExpandableObject()]
public Address Address
{
get;
set;
}
}
public class Address { public string Street { get; set; }
public string City
{
get;
set;
}
}`
Hi, Here are my toplevel options and a few childs of my first entry
as soon as I type re
...
I will only see the toplevel options containing re
and none of those child items
So, the same use case is working for you?
Thanks @XceedBoucherS
Hi, Can you submit a sample showing the issue. I'm curious to see the differences between your version and my test. Thank you.
Hello,
I have tried your sample with VS2019/VS2022. I took Xceed.Products.Wpf.Toolkit.Base v4.2 from NuGet. Since you have a .NET5 app, it must use the .NET5 version of the Toolkit which is available in "Xceed.Products.Wpf.Toolkit.Base" but not in "Extended.Wpf.Toolkit" which is the free OpenSource version.
As a result, when I type "Chi" in the searchBox, I can see the 2 Childs properties: I also tried with Xceed.Products.Wpf.Toolkit.Base" v4.0 and it worked again.
Thank you
Yes, I used the Extended version for the sample, but that was a mistake. What I really need is the free/opensource version. Can you please run the test with that version? Thanks
Hi,
I've created a new .NET Framework app (not .NET5), so I could use the OpenSource "Extended.Wpf.Toolkit" version. I downloaded it from NuGet : v4.2. I then updated the MainWindows.xaml and MainWindow.xaml.cs and added your ViewModel.cs.
The result is that sub-properties are not displayed when searching with the searchBox, like you found.
Conclusion : search of sub-properties are only part of the Plus version. You will need to the Plus version in order to have this feature. The openSource version search only for top level properties.
Hi
@XceedBoucherS PropertyGrid allows displaying expandable objects with their own childs. But the SearchBox only finds top-level properties (tried v3.8.2.0 and 4.0.0.0). Is there a way to scan all properties and find any child, at any depth? I could not find such an option in the docs
Thanks