What is the function used to get a reference to an object inside the silverlight control?
Answer Posted / Pardeep Kumar
Use the `Name` attribute to give an element a name, and then use the `FindName()` method to retrieve it from code-behind: `<Button x:Name="myButton" ... />`n`C#:nmyButton = (Button)this.FindName("myButton");`
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category