Click here to Skip to main content
15,893,790 members
Home / Discussions / WPF
   

WPF

 
QuestionIterate DataGrid in Silverlight web application. Pin
Sunil G 321-Jan-11 0:10
Sunil G 321-Jan-11 0:10 
AnswerRe: Iterate DataGrid in Silverlight web application. Pin
Pete O'Hanlon21-Jan-11 0:57
mvePete O'Hanlon21-Jan-11 0:57 
GeneralRe: Iterate DataGrid in Silverlight web application. Pin
Mycroft Holmes21-Jan-11 17:00
professionalMycroft Holmes21-Jan-11 17:00 
GeneralRe: Iterate DataGrid in Silverlight web application. Pin
Pete O'Hanlon22-Jan-11 9:16
mvePete O'Hanlon22-Jan-11 9:16 
AnswerRe: Iterate DataGrid in Silverlight web application. Pin
Mycroft Holmes21-Jan-11 17:01
professionalMycroft Holmes21-Jan-11 17:01 
QuestionAssign a context to a UI Element Pin
Adrian020-Jan-11 21:36
Adrian020-Jan-11 21:36 
AnswerRe: Assign a context to a UI Element Pin
dasblinkenlight21-Jan-11 3:16
dasblinkenlight21-Jan-11 3:16 
GeneralRe: Assign a context to a UI Element Pin
Adrian021-Jan-11 3:30
Adrian021-Jan-11 3:30 
Hi dasblinkenlight,

thank you for your reply. This might be a solution. Would be great to access the textbox directly when an event is fired. Otherwise I need to put all textboxes in an array or not?

I thought of something like this below.

<TextBox x:Name="UserNameTB" />
<TextBox x:Name="AddressTB" />
<Image Source="..." MouseLeftButtonDown="editText_MouseLeftButtonDown" Tag="{UserNameTB}"/>
<Image Source="..." MouseLeftButtonDown="editText_MouseLeftButtonDown" Tag="{AddressTB}"/>


Is it possible to access it like this??
TextBox userNameTB = ((sender as Image).Tag) as TextBox);


Tried some combinations but with no luck.

Greets
Adrian
GeneralRe: Assign a context to a UI Element Pin
dasblinkenlight21-Jan-11 4:00
dasblinkenlight21-Jan-11 4:00 
AnswerRe: Assign a context to a UI Element Pin
Pete O'Hanlon21-Jan-11 3:40
mvePete O'Hanlon21-Jan-11 3:40 
QuestionReusable Lookup Control Pin
Ed Hill _5_20-Jan-11 5:14
Ed Hill _5_20-Jan-11 5:14 
QuestionEmbeding a Usercontrol [modified] Pin
Adrian020-Jan-11 2:35
Adrian020-Jan-11 2:35 
AnswerRe: Embeding a Usercontrol Pin
SledgeHammer0120-Jan-11 6:39
SledgeHammer0120-Jan-11 6:39 
QuestionREMOVE DATA IN ACCORDION AT RUN TIME Pin
jessins18-Jan-11 16:28
jessins18-Jan-11 16:28 
AnswerRe: REMOVE DATA IN ACCORDION AT RUN TIME Pin
Abhinav S18-Jan-11 18:04
Abhinav S18-Jan-11 18:04 
QuestionAccess Parent of Templated TreeViewItem Control ? Pin
AmitDey17-Jan-11 5:56
AmitDey17-Jan-11 5:56 
AnswerRe: Access Parent of Templated TreeViewItem Control ? Pin
SledgeHammer0118-Jan-11 7:30
SledgeHammer0118-Jan-11 7:30 
GeneralRe: Access Parent of Templated TreeViewItem Control ? Pin
AmitDey18-Jan-11 7:40
AmitDey18-Jan-11 7:40 
Questionsql server express [modified] Pin
arkiboys17-Jan-11 2:30
arkiboys17-Jan-11 2:30 
AnswerRe: sql server express Pin
Pete O'Hanlon17-Jan-11 3:12
mvePete O'Hanlon17-Jan-11 3:12 
AnswerRe: sql server express Pin
Abhinav S17-Jan-11 5:34
Abhinav S17-Jan-11 5:34 
QuestionGridview not showing items [modified] [Solved] Pin
V.17-Jan-11 1:22
professionalV.17-Jan-11 1:22 
QuestionColumnbar styling quesiton in SL4 [modified] Pin
CrafterIt16-Jan-11 22:46
CrafterIt16-Jan-11 22:46 
AnswerRe: Columnbar styling quesiton in SL4 Pin
CrafterIt17-Jan-11 2:23
CrafterIt17-Jan-11 2:23 
Questioncant play sound from source using MediaElement Pin
igalep13215-Jan-11 12:09
igalep13215-Jan-11 12:09 

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.