/// <summary> /// Removes content and recalculate the carousel math /// </summary> public void RemoveContent(SelectableButton button) { buttons.Remove(button); contentControl.ExpandShrinkByElementsCount(-1); }
/// <summary> /// Adds new selectable button to the carousel and recalculate the positions /// </summary> public void AddContent(SelectableButton button) { buttons.Add(button); contentControl.ExpandShrinkByElementsCount(1); }