Is it possible to use Triggers on Grid RowDefinitions?

后端 未结 2 1252
无人及你
无人及你 2021-02-19 04:25

I have a grid whose rows need to be resized dynamically based on the view model. I\'d like to do something like the following:



        
2条回答
  •  执笔经年
    2021-02-19 04:34

    I think the only problem with your Xaml code is that you're overwriting the DataTrigger by setting Height explictly on the RowDefinition. Try with using a Setter instead

    
        
            
        
    
    

提交回复
热议问题