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

New Post: [Version 2.0] Prism Region Adapter

$
0
0

Vaccano, this is great. I had something like

<local:PanesTemplateSelector.DocumentTemplate>
                        <DataTemplate>
                            <ContentControl 
                                x:Name="DocumentRegion" 
                                prism:RegionManager.RegionName="{Binding RegionName}"/>
                        </DataTemplate>
</local:PanesTemplateSelector.DocumentTemplate>

and got my content from dynamically loaded modules hosted in the document window indeed,
but it disapperead as soon as a document window was dragged to floating state or another tab selected.
Something to do with the DelayedRegionCreationBehavior not finding the region I suppose, but reading up
on all that would have taken me a lot of time. Giving the content control within the template not a region
but another content control with a region did the trick.

Thank you for the hint.

Frank

Viewing all articles
Browse latest Browse all 2690

Trending Articles



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