datatemplate in app.xaml is not getting picked up without any styles?

后端 未结 2 907
离开以前
离开以前 2021-01-01 15:07

I have a DataTemplate in app.xaml that binds a view to a viewmodel.


    

        
2条回答
  •  青春惊慌失措
    2021-01-01 15:32

    Another pitfall is leaving out the {x:Type} from the DataType attribute.

    WRONG

    This builds, runs and fails silently:

    
    

    RIGHT

    
    

提交回复
热议问题