Binding only part of the margin property of WPF control

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

I have this:

...

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

7条回答
  •  鱼传尺愫
    2020-12-01 03:51

    From your code, I figure that your menu and tabControl may overlap, so you want to use margin to separate them. I feel this practice like two Column CSS Layout.

    Back to the point, I think you can apply TranslateFransform to TabControl.RenderTransform. You can bind Y property.

提交回复
热议问题