wpf - using custom controls instead of user controls to create complex views -


i not have enough information wpf, please correct me. seems handle different views create many usercontrols needed(each view needs 1 usercontol binds viewmodel) , , using mvvm pattern designers can create views independently. if designer tries create 2 themes different structure, has create 2 usercontrols because when using usercontrols layout specified(as mentioned here). on other way customcontrols not specify layout, seems using customcontrols more reasonable. question: using custom controls instead of usercontrols correct, , if is, reasonable viewmodels inherit control, , views become styles viewmodels?

unless need functionality provided custom controls, suggest using usercontrols or datatemplates. simpler. here's related question\answer.

wpf user controls vs custom controls


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -