WPF-获取父级控件的高度

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

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