/// <summary>
        /// Handles the <see cref="E:VisibilitySaveChanged" /> event.
        /// </summary>
        /// <param name="obj">The object.</param>
        /// <param name="e">The <see cref="DependencyPropertyChangedEventArgs"/> instance containing the event data.</param>
        private static void OnVisibilitySaveChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
        {
            BindingNavigatorUc control = obj as BindingNavigatorUc;

            if (control != null)
            {
                control.buttonSave.Visibility = (bool)e.NewValue ? Visibility.Visible : Visibility.Collapsed;
            }
        }
        /// <summary>
        /// Handles the <see cref="E:VisibilityAddChanged" /> event.
        /// </summary>
        /// <param name="obj">The object.</param>
        /// <param name="e">The <see cref="DependencyPropertyChangedEventArgs"/> instance containing the event data.</param>
        private static void OnVisibilityAddChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
        {
            BindingNavigatorUc control = obj as BindingNavigatorUc;

            if (control != null)
            {
                control.buttonAdd.Visibility = (bool)e.NewValue ? Visibility.Visible : Visibility.Collapsed;
                //BindingNavigatorViewModel viewModel = control.DataContext as BindingNavigatorViewModel;
                //if (viewModel != null)
                //{
                //    viewModel.VisibilityAdd = (bool)e.NewValue;
                //}
            }
        }