What is the function used to get a reference to an object inside the silverlight control?



What is the function used to get a reference to an object inside the silverlight control?..

Answer / 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

More Microsoft Silverlight Interview Questions

What files are contained within the .xap file?

1 Answers  


What is the Silverlight plug-in?

1 Answers  


Describe Moonlight and list the goals of using Moonlight?

1 Answers  


Which .net applications are supported in silverlight?

1 Answers  


What silverlight is composed of?

1 Answers  


When would a customer use silverlight instead of windows presentation foundation (wpf)?

1 Answers  


Explain what is ria?

1 Answers  


what browsers and platforms are supported by silverlight version 2?

1 Answers   Microsoft,


how can you change the startup page of silevrlight application?

1 Answers   Microsoft,


What is the role of silverlight plugin in the silverlight application life-cycle?

1 Answers  


what type of applications can be developed using silverlight?

1 Answers   Microsoft,


Explain how can silverlight use asx files?

1 Answers  


Categories