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
Post a Comment