Click here to Skip to main content
15,907,392 members
Home / Discussions / WPF
   

WPF

 
QuestionHow create Report with WPF?? Pin
VisualLive4-Jan-09 19:49
VisualLive4-Jan-09 19:49 
AnswerRe: How create Report with WPF?? Pin
User 2710094-Jan-09 19:59
User 2710094-Jan-09 19:59 
AnswerRe: How create Report with WPF?? Pin
hossei.gholami23-Dec-09 9:16
hossei.gholami23-Dec-09 9:16 
QuestionCompatible with VS 2005 Pin
avi_dadi20024-Jan-09 19:15
avi_dadi20024-Jan-09 19:15 
AnswerRe: Compatible with VS 2005 Pin
Aman Bhullar6-Jan-09 5:25
Aman Bhullar6-Jan-09 5:25 
AnswerRe: Compatible with VS 2005 Pin
Mohammad Dayyan8-Jan-09 10:45
Mohammad Dayyan8-Jan-09 10:45 
AnswerRe: Compatible with VS 2005 Pin
CrazyCoder269-Jan-09 20:32
CrazyCoder269-Jan-09 20:32 
QuestionFocusing problem ? Pin
Mohammad Dayyan4-Jan-09 3:26
Mohammad Dayyan4-Jan-09 3:26 
Hello everybody.
I have a Textbox and a Rectangle in my WPF window.
I want when a user click on the Rectangle this method runs and the Textbox gets the Focus :

void rect_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
    Rectangle senderRectangle = sender as Rectangle;
    string name = Regex.Replace(senderRectangle.Name, @"Rect", "", RegexOptions.IgnoreCase) + "TextBox";
    TextBox destinationTextBox = this.FindName(name) as TextBox;
    destinationTextBox.Focus();
    destinationTextBox.SelectAll();
    destinationTextBox.Visibility = Visibility.Visible;
}

void textBox_LostFocus(object sender, RoutedEventArgs e)
{
	MessageBox.Show("LostFocus" );
}


But whenever the Textbox gets the Focus , it Loses the focus immediately and shows LostFocus message .

What's wrong with it ?
Thank you.
AnswerRe: Focusing problem ? Pin
Mark Salsbery4-Jan-09 6:30
Mark Salsbery4-Jan-09 6:30 
GeneralRe: Focusing problem ? Pin
Mohammad Dayyan4-Jan-09 6:52
Mohammad Dayyan4-Jan-09 6:52 
GeneralRe: Focusing problem ? Pin
Mark Salsbery4-Jan-09 9:32
Mark Salsbery4-Jan-09 9:32 
GeneralRe: Focusing problem ? Pin
Mohammad Dayyan4-Jan-09 21:44
Mohammad Dayyan4-Jan-09 21:44 
QuestionWPF save button Pin
siten03083-Jan-09 12:23
siten03083-Jan-09 12:23 
AnswerRe: WPF save button Pin
Mark Salsbery3-Jan-09 15:09
Mark Salsbery3-Jan-09 15:09 
GeneralRe: WPF save button Pin
siten03083-Jan-09 18:42
siten03083-Jan-09 18:42 
GeneralRe: WPF save button Pin
Mark Salsbery3-Jan-09 20:58
Mark Salsbery3-Jan-09 20:58 
GeneralRe: WPF save button Pin
siten03084-Jan-09 5:56
siten03084-Jan-09 5:56 
GeneralRe: WPF save button Pin
Mark Salsbery4-Jan-09 6:21
Mark Salsbery4-Jan-09 6:21 
Questionback ground color change inGrid Pin
member272-Jan-09 20:13
member272-Jan-09 20:13 
Questionsilverlight Pin
vkvimal2-Jan-09 18:51
vkvimal2-Jan-09 18:51 
AnswerRe: silverlight Pin
Timmy Kokke5-Jan-09 1:27
Timmy Kokke5-Jan-09 1:27 
AnswerRe: silverlight Pin
Mohammad Dayyan8-Jan-09 10:51
Mohammad Dayyan8-Jan-09 10:51 
GeneralRe: silverlight Pin
vkvimal10-Jan-09 19:05
vkvimal10-Jan-09 19:05 
GeneralRe: silverlight Pin
Mohammad Dayyan10-Jan-09 23:36
Mohammad Dayyan10-Jan-09 23:36 
GeneralRe: silverlight Pin
vkvimal23-Jan-09 18:55
vkvimal23-Jan-09 18:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.