Replies: 1 comment
-
I found a workaround. Previously, list.Items.Clear();
allProcessItems.Clear();
foreach (var (icon, name, id) in processes)
{
var item = new ProcessItem(icon, name, id);
list.Items.Add(new ListBoxItem() { Content = item });
allProcessItems.Add(item);
} (I also had to change the search fnc but that's not really important) Still, I'm still wondering if this was indeed a bug and if so should I report it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to implement a custom search feature for my ListBox. The way I currently do this is:
TextBox
control calledsearchBox
with aTextChanged
event. The listbox is calledlist
:List
But then I get a crash in
Main
sayingAn anchor control must be a visual descendent of the ScrollContentPresenter
.Can anyone please tell me if I'm doing something wrong or if this is a bug?
Beta Was this translation helpful? Give feedback.
All reactions