Home > Exclusive Interviews > WPF >

How can we access XAML objects in behind code?

 Posted by articlesMaint on 9/14/2009 | Category: WPF Interview questions | Views: 7300


To access XAML objects in behind code you just need to define them with the same name as given in the XAML document. For instance in the below code snippet we named the object as objtext and the object is defined with the same name in the behind code.
 



Figure .2 Accessing XAML object



Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response