Order that DependencyProperties bindings are evaluated?

前端 未结 2 2338
长发绾君心
长发绾君心 2021-02-20 07:03

What determines the order that multiple DepdencyProperties on the same control get evaluated in?

I am using the Extended WPF Toolkit PropertyGrid and have both SelectedO

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-20 07:23

    And just one more contra-example to confirm what has been said already

    ...to never rely on the order of properties being applied

    In a custom UserControl with defined DependencyProperty-ies (.NET 4.5 etc.) - as PropertyChangedCallbacks are called at initialization...

    the actual order is determined from the order of "code behind definitions" (static fields)

    ...I'm guessing that has to do with the order of Registration.

    In some other cases the order depends on how the properties are lined up in the XAML.

提交回复
热议问题