1
上能見度我有這樣的結合WPF按鈕的可見性問題
Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}"
我想設置Visibility = False
如果ComputedVerticalScrollBarVisibility = True
和Visibility = True
如果ComputedVerticalScrollBarVisibility = false
有沒有這樣的事情:
Visibility="!{TemplateBinding ComputedVerticalScrollBarVisibility}"
感謝 Sai
得到一個錯誤:設置屬性「System.Windows.Data.Binding.Path」引發了異常。 代碼:Visibility =「{Binding Path = {TemplateBinding ComputedVerticalScrollBarVisibility},Converter = {StaticResource VisibilityInverter}}」>> –
什麼是例外? – Robaticus