Data binding to a UserControl in WPF

后端 未结 4 2035
庸人自扰
庸人自扰 2021-02-05 20:10

I have a UserControl that I want to participate in data binding. I\'ve set up the dependency properties in the user control, but can\'t get it work.

The uc displays the

4条回答
  •  面向向阳花
    2021-02-05 20:58

    Possibly you need to add to your property FrameworkPropertyMetadata where specify FrameworkPropertyMetadataOptions.AffectsRender and AffectsMeasure.

    FrameworkPropertyMetadataOptions enumeration MSDN article

提交回复
热议问题