Method GetFirstAmbientValue
- Namespace
- Alternet.FormDesigner.Wpf.XamlDom
- Assembly
- Alternet.FormDesigner.Wpf.v10.dll
GetFirstAmbientValue(IEnumerable<XamlType>, params XamlMember[])
Returns a single ambient property information item from the requested set of properties, based on which property is first encountered.
public AmbientPropertyValue GetFirstAmbientValue(IEnumerable<XamlType> ceilingTypes, params XamlMember[] properties)
Parameters
ceilingTypes
IEnumerable<XamlType>Specifies one or more types that should stop the evaluation when they are encountered traversing upward in the object graph. This type holds the desired ambient property.
properties
XamlMember[]Specifies one or more objects that identify the properties to be considered ambient.
Returns
- AmbientPropertyValue
A single ambient property information item for the first ambient property value from the
properties
list that is found.
GetFirstAmbientValue(params XamlType[])
Returns the first matching object that is a possible ambient type for the requested types.
public object GetFirstAmbientValue(params XamlType[] types)
Parameters
types
XamlType[]The set of types from which to retrieve ambient type information.
Returns
- object
The first result object for the requested set.