Custom UserControl Property used by child element

后端 未结 4 855
花落未央
花落未央 2020-12-12 04:06

I\'m trying to get some WPF concepts down, so I\'ve put together a simple example of what I\'m trying to do. I would like to set a custom property of a user control, and hav

4条回答
  •  醉话见心
    2020-12-12 04:40

    Set the DataContext for the ellipse to an instance of your CircleInSquare class. And make sure you use implement INotifyProperychanged on this class to make it property change enabled. check this link if you need more info on Propertychange

      
        
    

提交回复
热议问题