Designing a silverlight dashboard with mef - is this possible? (with dynamic xaps loading)

I'm just trying to wrap my head around MEF. And since I really like this (I think), I started my first sample project and immediately came across a big problem, and now I ask myself if I can use MEF for my script in general, and this is the following:

Imagine that you have some kind of control panel, say, from five regions and above each region there are two combobox. The values ​​in the first combo box represent various possible views (for example, chartControl, tableControl, pictureControl, ...), and the values ​​of the second combobox represent different data sources for the currently selected control.

Because the controls are very large, they want to download them as needed.

If the user selects one comboboxitem, the corresponding xap control must be loaded and displayed in that specific area. If the user selects another control in the same combo box, the control should be removed from the visual pointer and the next control should be loaded and displayed. If the user changes the selection in another combo box, the corresponding control should be loaded again only in this particular region, possibly with different data.

And to make this a little more interesting - since this is some kind of toolbar, you can change the layout from five regions - for example, into ten regions.

"MVVM MEF Silverlight Video Tutorial Part 2: " (http://csharperimage.jeremylikness.com/2010/03/mvvm-with-mef-in-silverlight-video_09.html), ItemsControl Visibility, . , ...

, , ! !

,
.

+3

Source: https://habr.com/ru/post/1743707/


All Articles