static void OnSelectedBorderChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
        {
            PromptResultControl itemCtrl = sender as PromptResultControl;

            if (itemCtrl == null)
            {
                return;
            }

            ValidationItemContextBase cxt = itemCtrl.DataContext as ValidationItemContextBase;

            if (cxt == null)
            {
                return;
            }

            cxt.ItemSelectedBorderBrush = args.NewValue as Brush;
        }
        private void itemControlBorder_MouseEnter(object sender, System.Windows.Input.MouseEventArgs e)
        {
            Border border = sender as Border;

            if (border == null)
            {
                Debug.Assert(false);
                return;
            }

            PromptResultControl itemCtrl = border.Child as PromptResultControl;

            if (itemCtrl == null)
            {
                Debug.Assert(false);
                return;
            }

            itemCtrl.OnMouseHoverChanged(true);
        }