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

New Post: AvalonDock 2.0 - PRISM Integration

$
0
0
Hello.

I've convert your code to c# and i have problem with views.

When the region is creating in DockingManagerRegionAdapter, the RegionManager is always null and in the IRegionManager is only 2 regions which i create via RegionManager.RegisterViewWithRegion and i need to add Views to ToolsRegion and DocumentsRegion in realtime.
So i add this to DockingManagerRegionAdapter.AttachBehaviors
regionManager.Regions.Add(region.Name, region);

base.AttachBehaviors(region, regionTarget);
Now it is work, but is there any way to avoid DataContext property n style:
<Setter Property="Title" Value="{Binding Model.DataContext.Title}"/>
Like before, when i've not use PRISM:
<Setter Property="Title" Value="{Binding Model.Title}" />

Viewing all articles
Browse latest Browse all 2690

Latest Images

Trending Articles



Latest Images

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