// Token: 0x060027ED RID: 10221 RVA: 0x000BB1B4 File Offset: 0x000B93B4 internal new static object GetSupportedPropertyValueInternal(AutomationPeer itemPeer, int propertyId) { if (SelectionItemPatternIdentifiers.IsSelectedProperty.Id != propertyId) { return(ItemsControlAutomationPeer.GetSupportedPropertyValueInternal(itemPeer, propertyId)); } ISelectionItemProvider selectionItemProvider = itemPeer.GetPattern(PatternInterface.SelectionItem) as ISelectionItemProvider; if (selectionItemProvider != null) { return(selectionItemProvider.IsSelected); } return(null); }
/// <summary> /// This method is responsible for providing the value corresponding to the propertyId for itemPeer /// This method can be overriden by derived classes if they support more properties for search. /// </summary> /// <param name="itemPeer"></param> /// <param name="propertyId"></param> /// <returns>returns the property value</returns> virtual internal object GetSupportedPropertyValue(ItemAutomationPeer itemPeer, int propertyId) { return(ItemsControlAutomationPeer.GetSupportedPropertyValueInternal(itemPeer, propertyId)); }