Пример #1
0
        /// <summary>
        /// Helper for setting LiveSetting property on a DependencyObject.
        /// </summary>
        public static void SetLiveSetting(DependencyObject element, AutomationLiveSetting value)
        {
            if (element == null)
            {
                throw new ArgumentNullException(nameof(element));
            }

            element.SetValue(LiveSettingProperty, value);
        }
        // Token: 0x0600258F RID: 9615 RVA: 0x000B48F4 File Offset: 0x000B2AF4
        protected override AutomationLiveSetting GetLiveSettingCore()
        {
            AutomationPeer        owningCellPeer = this.OwningCellPeer;
            AutomationLiveSetting result         = AutomationLiveSetting.Off;

            if (owningCellPeer != null)
            {
                result = owningCellPeer.GetLiveSetting();
            }
            else
            {
                this.ThrowElementNotAvailableException();
            }
            return(result);
        }
        override protected AutomationLiveSetting GetLiveSettingCore()
        {
            AutomationPeer        wrapperPeer = OwningCellPeer;
            AutomationLiveSetting liveSetting = AutomationLiveSetting.Off;

            if (wrapperPeer != null)
            {
                liveSetting = wrapperPeer.GetLiveSetting();
            }
            else
            {
                ThrowElementNotAvailableException();
            }

            return(liveSetting);
        }