Failed to set Text value in TextBox

Jul 9, 2010 at 6:56 PM


I'm testing some WPF application with White.

I have expirienced following problem with running part of code:


var1= mainWindow.TryGet<TextBox>("Name");

var1.Text = someValue;

This fails with exception: Error when invoking set_Text, on TextBox with parameters: White Product
09/07/2010 18:37:26ERROR: Bricks.BricksException: Error invoking TextBox.set_Text ---> System.InvalidOperationException: Exception of type 'System.InvalidOperationException' was thrown.
at System.Windows.Automation.ValuePattern.SetValue(String value)

This problem is reproducible only on some machines... On some other machines such code is working fine.

In application there are also another places where I perform the same actions - and it is also workign fine.

Could you please help me to understand the reason of failing and solve it.

Kind regards, Tanya

Jul 11, 2010 at 8:31 PM
Edited Jul 11, 2010 at 8:32 PM
Hi please try SetValue(string value) or var1.BulkText = "string"; Throndorin