WPF - Getting a property value from a binding path

前端 未结 4 1367
半阙折子戏
半阙折子戏 2020-12-15 22:57

if I have an object say called MyObject, which has a property called MyChild, which itself has a property called Name. How can I get the value of that Name property if all

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-15 23:34

    not sure what you want to do but and how (xaml or code) yet you can always name your object

    
    

    an then use it in code

    myBindingObject.Something.Name
    

    or in xaml

    
     
        
        
     
    
    

提交回复
热议问题