One sentence explanation to MVVM in WPF?

前端 未结 11 1221
有刺的猬
有刺的猬 2020-12-12 13:13

I heard its the next best thing in building WPF UIs, but all existing examples have dozens of lines of code - can I get a Hello World for MVVM that explains in no uncertain

11条回答
  •  南方客
    南方客 (楼主)
    2020-12-12 13:59

    One sentence? Here goes.

    MVVM is a UI segregation pattern where the Xaml (View) binds to a facade (View Model) allowing the guts of your program (Model) to avoid having UI concerns leak down a layer.

提交回复
热议问题