Skip to main content
Home Forums Silverlight Programming Report a Silverlight Bug Empty TextBox and END key pressed
8 replies. Latest Post by mchlSync on March 31, 2008.
(0)
pavelsua
Member
10 points
9 Posts
03-31-2008 3:44 AM |
Hi,
I found a problem in TextBox control. If there is no text in TextBox and you type END (key) then your TextChanged event handler become inactive and you can't bring it to life again! And after you had lost your TextChanged handler every char you type apears in textbox with time delay (near a second).
Can anyone explane me this, or it's a bug?
mchlsync
Star
14606 points
2,730 Posts
03-31-2008 4:59 AM |
Hi, I just checked. it works in my machine. What version of SL, browers are you using? Can you give us the steps to reproduce this issue?
03-31-2008 5:11 AM |
I using Windows 2003 server, IE 7 (build 5730) with SL 2.0 beta.
To reproduce this bug I wrote simple xaml with one textbox in grid:
<Grid x:Name="LayoutRoot"><TextBox ></Grid>
03-31-2008 5:19 AM |
Sorry for previous post - it's not complete!
Step 2: add two event handlers to the Txt in Page.Loaded event handler
Txt.KeyDown += new KeyDownEventHandler(Page_KeyDown);
Txt.TextChanged += new RoutedEventHandler(Page_TextChanged);
Step 3: while textbox doesn't contain any text press END key and try to type something after that - Page_TextChanged never calls
03-31-2008 5:22 AM |
And here is a complete xaml just in case:
<
</
03-31-2008 7:10 AM |
Oh. yes. I'm able to reproduce this issue. Additional to this, if you select the text and press "Delete" button after following your steps, it will crash the browser..
03-31-2008 7:19 AM |
So if I understand you correctly this issue appears only in 2003 server?
03-31-2008 7:23 AM |
pavelsua:So if I understand you correctly this issue appears only in 2003 server?
I tested in Vista Home Premium and IE7 + Firefox 2.0.0.13. I got this error. but I tried with IE6 on WindowsXP when I was in Office. I think it was working fine. I have to double-check.
03-31-2008 9:11 PM |
I have tested with IE6 on Windows XP. Yes. It is not working.