开发者

Is it possible to do in XAML part like as all i have done in code behind part?

I Mean can I do all operation in XAML with out using开发者_开发问答 code behind.


The idea behind XAML was to separate presentation from business logic. Mixing those two concepts in the same file would be bad. Also writing C#/VB.NET code in a XML file could quickly turn into a nightmare. With the MVVM pattern you don't even need to setup explicitly the event handlers in the XAML. Not to mention the unit testability and maintainability of the application. Simply put: use the right gun for the right task.


Yes you can. Except if you need some UI logic. for exa if you want to do some thing particular when some event get fired from UI.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜