c# - WPF: use the same xaml file with different codebehinds -


i'm writing wpf program needs several usercontrols same perform different functions. winforms, extend base control , add functionality, far know, it's impossible inherit xaml files. there way can have different codebehind classes use same xaml file control?

you might able using mvvm pattern , create multiple vms perhaps implement same interface. xaml view bound of vms relying on fact share same interface.

in approach you'd not use code behind @ all.


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -