How can I get the x:Name of an object from code?

Posted by chaiguy on Stack Overflow See other posts from Stack Overflow or by chaiguy
Published on 2010-06-17T23:03:53Z Indexed on 2010/06/17 23:13 UTC
Read the original article Hit count: 266

Filed under:
|
|
|

Given a reference to an object defined in XAML, is it possible to determine what (if any) x:Name the object has, or can I only do this by accessing the FrameworkElement.Name property (if the object is a FrameworkElement)?

© Stack Overflow or respective owner

Related posts about wpf

Related posts about xaml