ExtendedWPFToolkitSolution/Src/Xceed.Wpf.DataGrid/DataGridContext.cs
/// <summary>
/// Gets the current View property value for this DataGridContext. It can either come
/// from a local (attached) value or the value on the view (if the property is "routed").
/// </summary>
/// <typeparam name="T">The return value type of the requested property.</typeparam>
/// <param name="propertyName">The property name on the View.</param>
/// <param name="returnValue">The value of the property if found. Will be ignored if the property is not found.</param>
/// <returns>Returns true if the returnValue has been set. False otherwise.</returns>
Gets the current View property value for this DataGridContext. It can either come
from a local (attached) value or the value on the view (if the property is "routed").
Gets the current View property value for this DataGridContext . It can either come from a local ( attached ) value or the value on the view ( if the property is " routed " ) .
internal bool GetViewPropertyValue<T>( string propertyName, ref T returnValue )
    {
      object value = null;
      if( m_viewPropertiesDescriptors != null )
      {
        PropertyDescriptor descriptor = m_viewPropertiesDescriptors[ propertyName ];
        if( descriptor != null )
          value = descriptor.GetValue( this );
      }
      if( value != null )
      {
        returnValue = ( T )value;
        return true;
      }
      return false;
    }
internal bool GetViewPropertyValue < T > ( string propertyName , ref T returnValue ) { object value = null ; if ( m_viewPropertiesDescriptors != null ) { PropertyDescriptor descriptor = m_viewPropertiesDescriptors [ propertyName ] ; if ( descriptor != null ) value = descriptor . GetValue ( this ) ; } if ( value != null ) { returnValue = ( T ) value ; return true ; } return false ; }
Gets the current View property value for this DataGridContext.
Gets the current View property value for this DataGridContext .
Returns true if the returnValue has been set. False otherwise.
Returns true if the returnValue has been set . False otherwise .
propertyName
string
The property name on the View.
The property name on the View .
T
ref
returnValue
The value of the property if found. Will be ignored if the property is not found.
The value of the property if found . Will be ignored if the property is not found .
typeparam
The return value type of the requested property.
The return value type of the requested property .