MVVM pattern support in major components of the UI for WinForm package

1 Answer 51 Views
General Discussions GridView
n/a
Top achievements
Rank 1
n/a asked on 27 May 2024, 08:10 AM

The latest .net 8 release has brought new features that now make it possible to use the MVVM pattern in windows forms projects in a serious way.

My question is, is it possible to assign the datagrid's row click or row double click event handler to the new ICommand (as is already possible for Button). This would allow these methods to be placed in the ViewModel as the MVVM pattern suggests?

If this is possible in some way, please provide a sample solution.


Thanks

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 27 May 2024, 11:16 AM

Hi Lénárt Zoltán,

Thank you for your interest in our Telerik UI for WinForms components. 

Currently, the new improvements introduced in .Net 8 are still not supported in our controls. We already have an internal item to add support in our controls for this. I have made the item public in our Feedback Portal so that you can subscribe to it and track its progress. At the moment we are adding this to our planning for implementation we will update the status of the item so that you can be notified. 

You could try to implement this pattern but it will require a lot of coding and in the end, still, it won't be able to fully separate the business logic from the UI. You can check the following tutorial which I think is useful about how a similar pattern can be used in WinForms.

Regards,
Dinko | Tech Support Engineer
Progress Telerik

A brand new ThemeBuilder course was just added to the Virtual Classroom. The training course was designed to help you get started with ThemeBuilder for styling Telerik and Kendo UI components for your applications. You can check it out at https://learn.telerik.com
n/a
Top achievements
Rank 1
commented on 28 May 2024, 08:31 AM

Thank you for your quick reply. You suggested a tutorial on implementing a similar pattern, but the link is missing from the text. Could you please include it?
Dinko | Tech Support Engineer
Telerik team
commented on 28 May 2024, 08:54 AM

It seems that the link failed to attach. Here it is: https://www.codeproject.com/Articles/364485/MVVM-Model-View-ViewModel-Patte 
Tags
General Discussions GridView
Asked by
n/a
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or