通过行为来实现 实现界面与逻辑的分离 窗口关闭行为:其中含有布尔型的Close属性,将相应的关闭行为绑定到该属性上,则可以实现窗口的关闭行为,从而实现VM与View的分离 public class WindowCloseBehaviour : Behavior<Window> { public static readonly DependencyProperty CloseProperty = DependencyProperty.Register( "Close", ty
在<Tinker + Bugly + Jenkins 爬坑之路>一文中讲了在接入 Tinker 之后,Jenkins 中的一些坑,由此,热修复算告一段落,但是,在直接 Run 模式运行时,程序会报出如下错误: Tinker does not support instant run mode, please trigger build by assembleDebug or disable instant run in 'File->Settings...'. 好吧,使用 TInker 时