Click here to Skip to main content
15,902,198 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Positioning controls on a WPF form Pin
Etienne_12311-Aug-09 21:30
Etienne_12311-Aug-09 21:30 
QuestionRe: Positioning controls on a WPF form Pin
Mark Salsbery12-Aug-09 6:41
Mark Salsbery12-Aug-09 6:41 
GeneralRe: Positioning controls on a WPF form Pin
Pierre Leclercq15-Aug-09 0:53
Pierre Leclercq15-Aug-09 0:53 
AnswerRe: Positioning controls on a WPF form Pin
#realJSOP12-Aug-09 2:14
professional#realJSOP12-Aug-09 2:14 
GeneralRe: Positioning controls on a WPF form Pin
Pierre Leclercq15-Aug-09 0:44
Pierre Leclercq15-Aug-09 0:44 
GeneralRe: Positioning controls on a WPF form [modified] Pin
Mark Salsbery15-Aug-09 5:58
Mark Salsbery15-Aug-09 5:58 
GeneralRe: Positioning controls on a WPF form Pin
Pierre Leclercq15-Aug-09 6:26
Pierre Leclercq15-Aug-09 6:26 
QuestionHow to add runtime events for dynamic textbox controls in wpf [modified] Pin
Veerendranadh11-Aug-09 0:15
Veerendranadh11-Aug-09 0:15 
Hi,
I have a canvas and i am adding dynamic textbox controls to the canvas when the page is loaded. When i was trying to add event handlers (say mousedown event on textbox), the event is not firing when i mousedown on textbox after the page loaded.
I am providing sample code:

I have declared one global textbox name 'tb'.

This is my canvas control:
<Canvas x:Name="CustomizeTools" Grid.Row="1" Height="400" Width="800" Grid.Column="0" Background="Aqua">
</Canvas>

In code behind my logic is like this:
tb = new Textbox();
tb.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(tb_MouseLeftButtonDown);
CustomizeTools.Children.Add(tb);

void tb_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
{
}

But here the mouse events are not firing.

pleae help me. Its urgent.
Thanks in advance

modified on Tuesday, August 11, 2009 6:22 AM

AnswerRe: How to add runtime events for dynamic textbox controls in wpf Pin
Pete O'Hanlon11-Aug-09 3:00
mvePete O'Hanlon11-Aug-09 3:00 
QuestionHosting Silverlight Application on IIS Pin
sunil.n.cs10-Aug-09 20:42
sunil.n.cs10-Aug-09 20:42 
AnswerRe: Hosting Silverlight Application on IIS Pin
Mark Salsbery11-Aug-09 5:46
Mark Salsbery11-Aug-09 5:46 
GeneralRe: Hosting Silverlight Application on IIS Pin
sunil.n.cs11-Aug-09 23:05
sunil.n.cs11-Aug-09 23:05 
Question[Message Deleted] Pin
Veerendranadh10-Aug-09 18:43
Veerendranadh10-Aug-09 18:43 
AnswerRe: Problem when loading UIElementCollection using XamlReader Pin
Pete O'Hanlon10-Aug-09 22:04
mvePete O'Hanlon10-Aug-09 22:04 
GeneralRe: Problem when loading UIElementCollection using XamlReader Pin
Veerendranadh10-Aug-09 22:16
Veerendranadh10-Aug-09 22:16 
GeneralRe: Problem when loading UIElementCollection using XamlReader Pin
Pete O'Hanlon10-Aug-09 23:02
mvePete O'Hanlon10-Aug-09 23:02 
GeneralRe: Problem when loading UIElementCollection using XamlReader Pin
Pete O'Hanlon11-Aug-09 1:51
mvePete O'Hanlon11-Aug-09 1:51 
QuestionSilverlight 3 OOB on Mac! Pin
Nader Elshehabi10-Aug-09 2:11
Nader Elshehabi10-Aug-09 2:11 
AnswerRe: Silverlight 3 OOB on Mac! Pin
Mike Marynowski10-Aug-09 2:42
professionalMike Marynowski10-Aug-09 2:42 
GeneralRe: Silverlight 3 OOB on Mac! Pin
Nader Elshehabi10-Aug-09 3:02
Nader Elshehabi10-Aug-09 3:02 
GeneralRe: Silverlight 3 OOB on Mac! Pin
Mike Marynowski10-Aug-09 3:39
professionalMike Marynowski10-Aug-09 3:39 
QuestionWPF DatePicker Pin
Member 407081510-Aug-09 0:09
Member 407081510-Aug-09 0:09 
AnswerRe: WPF DatePicker Pin
Mark Salsbery10-Aug-09 10:36
Mark Salsbery10-Aug-09 10:36 
GeneralRe: WPF DatePicker - Please see this too Pin
Member 407081511-Aug-09 19:19
Member 407081511-Aug-09 19:19 
GeneralRe: WPF DatePicker - Please see this too Pin
Mark Salsbery12-Aug-09 7:11
Mark Salsbery12-Aug-09 7:11 

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.