Пример #1
0
        private static void OnIsExpandedChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            RadLoopingList list = d as RadLoopingList;

            list.isExpanded = (bool)e.NewValue;

            list.UpdateItemsVisualState();

            list.OnIsExpandedChanged();
        }
Пример #2
0
        private static void OnIsExpandedChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            RadLoopingList list = d as RadLoopingList;

            list.isExpanded = (bool)e.NewValue;

            list.UpdateItemsVisualState();

            RadLoopingListAutomationPeer peer = FrameworkElementAutomationPeer.FromElement(list) as RadLoopingListAutomationPeer;

            if (peer != null)
            {
                peer.RaiseExpandCollapseAutomationEvent(!((bool)e.NewValue), (bool)e.NewValue);
            }

            list.OnIsExpandedChanged();
        }