Quantcast
Channel: AvalonDock
Viewing all articles
Browse latest Browse all 2690

New Post: [Version 2.0] AnchorablesSource, DocumentsSource, ...LayoutContentsSource?

$
0
0

Hello,

Thanks for this amazing library.

I've just started with MVVM (using Prism's EventAggregator), and I noticed that collections are kind of a pain to deal with. While I've found means to generate observable collections of viewmodels from observable collections of models, I'm having troubles pushing these values to two different properties - AnchorablesSource  and DocumentsSource.

I imagined, perhaps naively, a unified document model in which anchorables and documents are the same object, but differ only by a property. We already have Template and Style selectors for the layout elements, both are fairly "layout-element-agnostic".

Do you think there's room (and reason) for a more generic "LayoutContentsSource" property? I assume there'd be also a binding telling AvalonDock which property of said Source collection indicates if a viewmodel is an anchorable or a document.

I hope I've been clear enough.

Thanks again for your incredible work.

 

Rob

 

 

 

 


Viewing all articles
Browse latest Browse all 2690

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>