Exemplo n.º 1
0
 private void PressXCloseButton(TipLocationOptions location)
 {
     InputHelper.Tap(elements.GetTeachingTipAlternateCloseButton());
     if (!PlatformConfiguration.IsOsVersionGreaterThanOrEqual(OSVersion.Redstone5))
     {
         WaitForUnchecked(elements.GetIsIdleCheckBox());
     }
     WaitForUnchecked(elements.GetIsOpenCheckBox());
     WaitForChecked(elements.GetIsIdleCheckBox());
 }
        private void SetTeachingTipLocation(TipLocationOptions location)
        {
            switch (location)
            {
            case TipLocationOptions.ResourceDictionary:
                elements.GetTipLocationComboBox().SelectItemByName("Resources");
                break;

            default:
                elements.GetTipLocationComboBox().SelectItemByName("VisualTree");
                break;
            }
            elements.GetSetTipLocationButton().Invoke();
            //If a tip was open this action would cause that tip to close, so wait until that happens
            WaitForUnchecked(elements.GetIsOpenCheckBox());
            WaitForChecked(elements.GetIsIdleCheckBox());

            SetTipIsTargeted(true);
        }