Esempio n. 1
0
        //------------------------------------------------------
        //
        //  Internal Methods
        //
        //------------------------------------------------------
 
        #region Internal Methods

        // look up information on the specified property, returns true if found, else false
        internal static bool GetPropertyInfo( AutomationProperty id, out AutomationPropertyInfo info )
        {
            foreach( AutomationPropertyInfo pi in _propertyInfoTable )
            {
                if( pi.ID == id )
                {
                    info = pi;
                    return true;
                }
            }
            info = null;
            Debug.Assert( false, "GetPropertyInfo failed " + id );
            return false;
        }
Esempio n. 2
0
        //------------------------------------------------------
        //
        //  Internal Methods
        //
        //------------------------------------------------------

        #region Internal Methods

        // look up information on the specified property, returns true if found, else false
        internal static bool GetPropertyInfo(AutomationProperty id, out AutomationPropertyInfo info)
        {
            foreach (AutomationPropertyInfo pi in _propertyInfoTable)
            {
                if (pi.ID == id)
                {
                    info = pi;
                    return(true);
                }
            }
            info = null;
            Debug.Assert(false, "GetPropertyInfo failed " + id);
            return(false);
        }