private static void OnIsExpandedChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { RadLoopingList list = d as RadLoopingList; list.isExpanded = (bool)e.NewValue; list.UpdateItemsVisualState(); list.OnIsExpandedChanged(); }
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(); }