Binding only part of the margin property of WPF control

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

I have this:

...

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

相关标签:
7条回答
  • 2020-12-01 04:15

    Ok it is old, but I was searching for a nicer way:

    <TabControl>
        <TabControl.Margin>
            <Thickness Top="{Binding ElementName=TheMenu, Path=Height}" />
         </TabControl.Margin>
    </TabControl>
    
    0 讨论(0)
提交回复
热议问题