ClassDataGridCountVerificationDescriptor
Definition
Namespace:ArtOfTest.WebAii.Design.IntrinsicTranslators.Silverlight.Descriptors
Assembly:ArtOfTest.WebAii.Design.dll
Syntax:
[Sentence("DataGrid Item Count", "{PropertyName} {Comparison} {Value}", false)]
[DataContract(Namespace = "http://artoftest.com/schemas/WebAiiDesignCanvas/2.0.0")]
public class DataGridCountVerificationDescriptor : PropertyVerificationDescriptor, INotifyPropertyChanged, ICustomTypeDescriptor, IExtensibleDataObject, IInspectWebSettings, IExtendedParamEditorInfo, IQuickTasks, ISentenceListPreview
Inheritance: objectDataBoundObjectAutomationDescriptorVerificationDescriptorXamlVerificationDescriptorPropertyVerificationDescriptorDataGridCountVerificationDescriptor
Implements:
Inherited Members
Constructors
DataGridCountVerificationDescriptor()
Declaration
public DataGridCountVerificationDescriptor()
DataGridCountVerificationDescriptor(IFrameworkElement, AutomationProperty, IntegerComparer, string, object)
Declaration
public DataGridCountVerificationDescriptor(IFrameworkElement element, AutomationProperty property, IntegerComparer comparer, string comparison, object value)
Parameters
element
property
comparer
comparison
value
DataGridCountVerificationDescriptor(IFrameworkElement, AutomationProperty, string, string, int)
Declaration
public DataGridCountVerificationDescriptor(IFrameworkElement element, AutomationProperty property, string propertyName, string comparison, int count)
Parameters
element
property
propertyName
comparison
count
Properties
CompareType
Declaration
[Browsable(false)]
public override XamlStringCompareType CompareType { get; set; }
Property Value
Overrides
Comparison
Declaration
[SentenceParam("comparison?", 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
NumberCompareType
Declaration
[SentenceParam("compare?", AutomationDescriptorType.Extraction)]
public NumberCompareType NumberCompareType { get; set; }
Property Value
PropertyName
Declaration
[DataMember]
[SentenceParam("property?", StaticValueListMethod = "PopulatePropertiesList", DisableTextBoxEdit = true)]
public string PropertyName { get; set; }
Property Value
Methods
ExtractData(IApplication, DescriptorValueStore)
Declaration
public override void ExtractData(IApplication hostApp, DescriptorValueStore dataStore)
Parameters
hostApp
dataStore
Overrides
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
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
PopulatePropertiesList(SentenceParam)
Declaration
public string[] PopulatePropertiesList(SentenceParam sentenceParam)
Parameters
sentenceParam
Returns
string[]