WPF-获取父级控件的高度

MaxHeight="{Binding Path=ActualHeight, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=UserControl}}"

posted @ 2022-03-18 15:06  -Timosthetic  阅读(817)  评论(1编辑  收藏  举报