Ejemplo n.º 1
0
        private static void OnExpandableContentChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
        {
            RadExpanderControl typedSender = sender as RadExpanderControl;

            if (!typedSender.IsTemplateApplied)
            {
                return;
            }
            typedSender.expandableContent.Visibility = Visibility.Collapsed;
            typedSender.SetInitialControlState(false);
        }
Ejemplo n.º 2
0
        private static void OnDataContextPrivateChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
        {
            RadExpanderControl typedSender = sender as RadExpanderControl;

            if (!typedSender.IsProperlyTemplated || typedSender.contextBinding)
            {
                return;
            }
            typedSender.expandableContent.Visibility = Visibility.Collapsed;
            typedSender.SetInitialControlState(false);
        }