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.
Accessing XAML object
Note: - You can get the source code in WindowsAccessXAML folder.
Asked In: Many Interviews |