private void FadeInExtendedSearchUserControl()
        {
            ExtendedSearchUserControl.Visibility = System.Windows.Visibility.Visible;
            DoubleAnimation da = new DoubleAnimation(0, 1, TimeSpan.FromMilliseconds(200).Duration());

            ExtendedSearchUserControl.BeginAnimation(UserControl.OpacityProperty, da);

            this.extendedSearchScaleTransform.BeginAnimation(ScaleTransform.ScaleYProperty, da);

            this.ButtonSaveCondition.Visibility = System.Windows.Visibility.Visible;
        }
        private void FadeOutExtendedSearchUserControl()
        {
            DoubleAnimation da = new DoubleAnimation(1, 0, TimeSpan.FromMilliseconds(200).Duration());

            da.Completed += delegate
            {
                ExtendedSearchUserControl.Visibility = System.Windows.Visibility.Collapsed;
                this.ButtonSaveCondition.Visibility  = System.Windows.Visibility.Collapsed;
            };

            ExtendedSearchUserControl.BeginAnimation(UserControl.OpacityProperty, da);
            this.extendedSearchScaleTransform.BeginAnimation(ScaleTransform.ScaleYProperty, da);
        }