I have an outline view where I need to expand / collapse items when clicked anywhere on the row and I am being successful in doing that except the animation behavior is not same as when disclosure triangle is clicked to expand / collapse.
public override bool ShouldSelectItem(NSOutlineView outlineView, NSObject item)
{
if (outlineView.IsItemExpanded(item))
{
outlineView.CollapseItem(item, false);
}
else
{
outlineView.ExpandItem(item, false);
}
return false;
}
Can someone help me write the missing code to achieve desired animation. Thanks in advance.