今天寫Bug的途中查到一個神器,不得不說google的強大,之前曾經查過這個問題,無果,今天用google發現了這個大殺器。
貼代碼:
Height="{calc:Binding ElementName=mainGrid,Path=ActualHeight/2}"
Visibility="{calc:Binding ElementName=listViewCodes, Path=Items.Count less 1}"
還有各種用法:
github貼在下面,大家快去點小星星
今天寫Bug的途中查到一個神器,不得不說google的強大,之前曾經查過這個問題,無果,今天用google發現了這個大殺器。
貼代碼:
Height="{calc:Binding ElementName=mainGrid,Path=ActualHeight/2}"
Visibility="{calc:Binding ElementName=listViewCodes, Path=Items.Count less 1}"
還有各種用法:
github貼在下面,大家快去點小星星
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。