WPF MVVM Code Behind

后端 未结 5 1476
悲哀的现实
悲哀的现实 2020-12-10 02:08

I try to avoid code behind in views, within my WPF MVVM project.

However I have some things that are very specific to the view. For example when a control gets focus

5条回答
  •  北荒
    北荒 (楼主)
    2020-12-10 02:46

    Using Custom controls as @Boluc Papuccuoglu suggested, is good option but before using that i want you to take look here Behaviors in WPF introduction

提交回复
热议问题