Skip to content

{ Category Archives } Silverlight

Silverlight Image Error

While working in Silverlight I ran across a error that seemed rather odd, not because it didn’t make sense but that I couldn’t see anything I did wrong. So the error was
Unhandled Error in Silverlight 2 Application App.xap
Code: 4001
Category: ImageError
Message: AG_E_NETWORK_ERROR
While checking the Image tag in the xaml I [...]

Silverlight Move Cursor to End of TextBox

While working on in Silverlight I found the need to auto populate a TextBox then shift focus to that TextBox. That was simple to do with the following code.

1
2
txtSearch.Focus();
txtSearch.Text = "sometext ";

But then there is a problem the cursor is at the start of the text box so if a user starts typing they end [...]