Esempio n. 1
0
        private void OnTemplateChanged(DependencyPropertyChangedEventArgs e)
        {
            if (ItemContainerGenerator != null)
            {
                ItemContainerGenerator.RemoveRange(0, ItemContainerGenerator.ItemsCount);
            }

            ApplyTemplate();

            Panel = VisualChildren.FirstOrDefault() as Panel;
        }