/// <summary> /// Add a group using the native in-place modifier. /// </summary> /// <param name="groupIndexInView">The index of the group from the native collection view's perspective, ie ignoring empty groups /// if HidesIfEmpty=true.</param> private void AddGroup(int groupIndexInView) { NativePanel?.InsertSections(NSIndexSet.FromIndex(groupIndexInView)); if (ManagedVirtualizingPanel != null) { Refresh(); } }
/// <summary> /// Add a group using the native in-place modifier. /// </summary> /// <param name="groupIndexInView">The index of the group from the native collection view's perspective, ie ignoring empty groups /// if HidesIfEmpty=true.</param> private void AddGroup(int groupIndexInView) { NativePanel?.InsertSections(NSIndexSet.FromIndex(groupIndexInView)); }