private void RemoveContainer(int index)
{
_lastContainerAdded = false;
if (index >= CaretIndex)
{
index++;
}
Children.RemoveAt(index);
if (index < CaretIndex)
{
CaretIndex--;
}
if (SelectionStart <= index && index < SelectionEnd)
{
SelectionLength--;
}
}