protected override bool IsDialogCore()
        {
            Window window = (Window)Owner;

            if (MS.Internal.Helper.IsDefaultValue(AutomationProperties.IsDialogProperty, window))
            {
                return(window.IsShowingAsDialog);
            }
            else
            {
                return(AutomationProperties.GetIsDialog(window));
            }
        }
 ///
 override protected bool IsDialogCore()
 {
     return(AutomationProperties.GetIsDialog(_owner));
 }