WPF: Stop Binding if a UI element is not visible

后端 未结 5 538
滥情空心
滥情空心 2021-02-05 06:16

Can I delay binding of a ui element if the element is not currently visible. Sometimes I have a form that has some hidden/minimised elements, I would like to not update them if

5条回答
  •  一个人的身影
    2021-02-05 06:35

    For a workaround I have a binding to the visibility of the object, when the object is set to visible, the property triggers the construction of the element behind it which have a binding via a ContentPresenter.

提交回复
热议问题