Hi,
I have a requirement where I have to test the position of different Elements.
This position is set in our application using a Parent Cancas as container. Then our custom user controls are placed using Cancas attached properties: "Top" and "Left".
In our test scenario we tried to retrieve this value withe the following code:
var left = userControl.GetAttachedProperty<
double
>(
"Canvas"
,
"Left"
);<br>var top = userControl.GetAttachedProperty<
double
>(
"Canvas"
,
"Top"
);
But this code throw an exception:
[WPF Extension Error] Details: ArtOfTest.WebAii.Silverlight.NoSuchPropertyException: Unable to find attached property owner class 'Canvas'
bei Telerik.TestingFramework.XamlExtension.ClientServices.GetAttachedPropertyValue(AutomationProperty property, Object obj)
bei Telerik.TestingFramework.XamlExtension.ClientServices.GetRealProperty(AutomationReference reference, AutomationProperty property)
bei Telerik.TestingFramework.XamlExtension.ClientProcessor.ProcessCommand(String command)
Do I do something wrong? Is there a way to test the position of UI elements ?
Thanks.
Benoît