Binding only part of the margin property of WPF control

后端 未结 7 1372
忘掉有多难
忘掉有多难 2020-12-01 03:49

I have this:

...

I want to bind only the \"Top\" part of the TabContr

7条回答
  •  死守一世寂寞
    2020-12-01 04:03

    You could try something like this answer from another question.

    The solution uses an attached property that allows for XAML like the following:

    The attached property is also backed by a DependencyObject so data binding will work.

提交回复
热议问题