Model view, Viewmodel

  • 1
  • Question
  • Updated 3 years ago
I think understanding (or the lack of) MVVM just may be the root of my issues in trying to create a panadapter/panafall. I have been reading quite a bit today about using the design pattern of MVVM with WPF and Silverlight.  And given that it appears that Flexlib and it's associated dll's are created with that pattern in mind,(along with the SSDR GUI) it would seem to me, that it would be difficult to work properly with the Events raised by Flexlib, (such as the Panadapter.OnDataReady event) without using the same pattern in my application. I have been able to attach to several events, including those of the S Meter, but, it seems that going beyond that to get other constantly changing events, would, or could, create a Race Condition that blocks out one or more events from showing up when I subscribe to them.
  I think I'm out of my depth with MVVM. So, I'll continue to mess with it once in a while. But, until I can either learn how to properly use MVVM or find another method to get the data flowing, I won't stress over it so much!
   Thanks to everyone who has offered me advice on several things concerning the Flexlib api and how to go about using it. It is appreciated.
Photo of James Whiteway

James Whiteway

  • 905 Posts
  • 222 Reply Likes

Posted 3 years ago

  • 1
Photo of Eric - KE5DTO

Eric - KE5DTO, Official Rep

  • 718 Posts
  • 211 Reply Likes
We do indeed use the MVVM approach in FlexLib.  Having an understanding of that design pattern will likely help to understand the flow.  In SmartSDR, we have View (GUI pieces) and ViewModel classes and consider the FlexLib classes to be the Model.