ClassGeneralPropertyVerificationDescriptor
Definition
Namespace:ArtOfTest.WebAii.Design.IntrinsicTranslators.Silverlight.Descriptors
Assembly:ArtOfTest.WebAii.Design.dll
Syntax:
[Sentence("Property", "{PropertyName} {Comparison} {Value}", true)]
[DataContract(Namespace = "http://artoftest.com/schemas/WebAiiDesignCanvas/2.0.0")]
public class GeneralPropertyVerificationDescriptor : PropertyVerificationDescriptor, INotifyPropertyChanged, ICustomTypeDescriptor, IExtensibleDataObject, IInspectWebSettings, IExtendedParamEditorInfo, ISentenceListPreview
Inheritance: objectDataBoundObjectAutomationDescriptorVerificationDescriptorXamlVerificationDescriptorPropertyVerificationDescriptorGeneralPropertyVerificationDescriptor
Implements:
Inherited Members
Constructors
GeneralPropertyVerificationDescriptor()
Declaration
public GeneralPropertyVerificationDescriptor()
GeneralPropertyVerificationDescriptor(FrameworkElement, AutomationProperty, VerificationComparer, string, object)
Declaration
public GeneralPropertyVerificationDescriptor(FrameworkElement target, AutomationProperty property, VerificationComparer comparer, string comparison, object value)
Parameters
target
property
comparer
comparison
value
Properties
Comparison
Declaration
[SentenceParam("comparison?", AutomationDescriptorType.Wait|AutomationDescriptorType.Verification|AutomationDescriptorType.Extraction, StaticValueListMethod = "PopulateComparisonList", DisableTextBoxEdit = true)]
[DataMember(Name = "Comparison")]
public string Comparison { get; set; }
Property Value
FriendlyDescription
Get a friendly description of this descriptor to show in the scenario explorer.
Declaration
public override string FriendlyDescription { get; }
Property Value
Overrides
PropertyName
Declaration
[SentenceParam("property?", AutomationDescriptorType.Wait|AutomationDescriptorType.Verification|AutomationDescriptorType.Extraction, DisableTextBoxEdit = true)]
public string PropertyName { get; set; }
Property Value
RequiredAssemblyReferences
Any addition assembly references to be added to the project on code gen.
Declaration
public override string[] RequiredAssemblyReferences { get; }
Property Value
string[]
Overrides
Methods
GeneratePreviewValuesForTarget(DescriptorValueStoreCollection)
Given a target element, generate an array of values for the descriptor implementing this interface.
Declaration
public void GeneratePreviewValuesForTarget(DescriptorValueStoreCollection valuesCollection)
Parameters
valuesCollection
DescriptorValueStoreCollection
Collection to add values to
Implements
GetExtendedEditorInfo(DescriptorValueStore)
Collect additional values for each parameter to be used by the editor
Declaration
public override void GetExtendedEditorInfo(DescriptorValueStore valueStore)
Parameters
valueStore
The value store to add values in
Overrides
GetProperty(FrameworkElement, string, Type, string)
Declaration
protected override object GetProperty(FrameworkElement fe, string name, Type type, string attachedPropertyOwner)
Parameters
fe
name
type
attachedPropertyOwner
Returns
Overrides
MangleLiveValueCode(CodeExpression)
Declaration
protected override CodeExpression MangleLiveValueCode(CodeExpression liveValueExpr)
Parameters
liveValueExpr
Returns
Overrides
OnParameterChanged(SentenceParam, Sentence)
Called when a parameter value has changed
Declaration
public override void OnParameterChanged(SentenceParam param, Sentence context)
Parameters
param
The parameter that changed
context
The context/sentence that this parameter is part of.
Overrides
OnSentenceLoad(Sentence)
Called when the sentence is first loaded. Allows for setting initial values for each sentence if needed
Declaration
public override void OnSentenceLoad(Sentence context)
Parameters
context
The sentence context.
Overrides