Binding to a method with parameter in XAML using polymorphism in ViewModel

后端 未结 3 1832
花落未央
花落未央 2021-02-20 09:34

I have a TabControl with six tabs in my ResultView. The ViewModel that sits behind this View can be either a ResultTypeOneViewModel or ResultTypeTwoViewModel, each of which deri

3条回答
  •  温柔的废话
    2021-02-20 09:58

    A better suggestion to this question is to use style.DataTrigger in style of TabItem like this:

    
        
            
        
    
    

提交回复
热议问题