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