コード例 #1
0
        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);
        }