Dynamic TextBox Focus not working silverlight
I have created custom textbox in that textbox i can access all the property like set background color set border brush and all that but my problem is that when i tried to focus on that custom textbox it will not worked,is there any extra work i have to do for focus on textbox? please help me out of this. my custom textbox look like
public class ATSTextBox : TextBox, INotifyPropertyChanged { // some code here } protected override void OnGotFocus(RoutedEventArgs e) { //some code here } // Actul OnGotFocus Method lokk like
protected override void OnGotFocus(RoutedEventArgs e) { this.Background = new SolidColorBrush(Color.FromArgb(255, 197, 197, 197)); if (this.GotoLinks.Count > 0) { this.Button.Visibility = System.Windows.Visibility.Visible; ActualLeft = (double)this.GetValue(Canvas.LeftProperty); this.SetValue(Canvas.LeftProperty, ActualLeft - 70); } this.SelectionStart = 0; this.SelectionLength = this.Text.Length; //OnPropertyChanged("ShowGotoLink"); base.OnGotFocus(e); } Answers & Comments...
No comments:
Post a Comment
Send us your comment related to the topic mentioned on the blog