Completed
Last Updated: 17 Jun 2013 08:30 by ADMIN
ADMIN
Boyan Boev
Created on: 09 Apr 2013 08:29
Type: Bug Report
1
GradientStops[0].Color throws unexpected exception
I get the following exception when I try to get information about the color in Rectangle element:

[WPF Extension Error] Details: System.InvalidOperationException: The calling thread cannot access this object because a different thread owns it.

I am using this code:

var rect = app.MainWindow.Find.AllByType<Rectangle>();
var brush = rect[0].Fill as LinearGradientBrush;
var color = brush.GradientStops[0].Color; //here the exception is thrown
1 comment
ADMIN
Pavel
Posted on: 17 Jun 2013 08:30
This issue has been fixed and the fix will be available in the R1 release.