ElementName Binding is failing

后端 未结 3 1902
别跟我提以往
别跟我提以往 2020-11-29 23:50

I have the following XAML:


    
        ...
    
    
         


        
3条回答
  •  时光取名叫无心
    2020-11-30 00:19

    I'm guessing that the writer of Chart, when deriving from FrameworkElement or whatever, failed to realize that they needed to add any child elements to the logical tree either manually or through an override. You don't get that for free when deriving.

    Breaking the logical tree breaks the ability of children to bind by ElementName.

    If you are the author of the Chart object, you can see this related question and answer.

提交回复
热议问题