static void Selector_Changed(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            SelectorViewAdapter adapter = (SelectorViewAdapter)sender;

            adapter.Content = e.NewValue;
            var selector = (Selector)e.OldValue;

            selector = (Selector)e.NewValue;
            if (selector != null)
            {
                selector.IsSynchronizedWithCurrentItem = true;
            }

            adapter.Adapt();
        }
        static void ItemsSource_Changed(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            SelectorViewAdapter adapter = (SelectorViewAdapter)sender;

            adapter.Adapt();
        }