Posted 13 years ago
by Samir Shnino
Hi!
I have used an AudoHideLeftToolWindow in one of my tabs in My WPF(Mvvm) project in the following manner.
<mvvm:MainView>
<mvvm:MainView.Style>
<................................>
</mvvm:MainView.Style>
<mvvm:MainView.Resources>
<.................................>
<mvvm:MainView.Resources>
<docking:DockSite>
<docking:DockSite.AutoHideLeftContainers >
<docking:ToolWindowContainer >
<docking:ToolWindow CanClose="False" Style="{StaticResource DockingItemStyle}" x:Name="TreeViewToolWindow">
<local:AvtalsTreeView/>
</docking:ToolWindow>
</docking:ToolWindowContainer>
</docking:DockSite.AutoHideLeftContainers>
<docking:Workspace>
<grid>
<Here is the main region there I have a lot of controls, comboboxes,
datagrids, treeviews and so on>
<grid>
<docking:DockSite>
</Mvvm:MainView>
Everything looks fine and works in its own, but the problem is:
The <local> tag is refer to a User Control, this User Control contains a tree view. When I run the app, it runs the left tool box region and call the User Control before it runs the main region so I get data in the main region but not in the left region because the left region should take an ID-key from the main region to showing the tree view.
In summary,
I need help sorting the execution of regions, so the main region runs before the left-region runs, so it'll get the ID-key from the main region.
Thanks...
<b>
I have used an AudoHideLeftToolWindow in one of my tabs in My WPF(Mvvm) project in the following manner.
<mvvm:MainView>
<mvvm:MainView.Style>
<................................>
</mvvm:MainView.Style>
<mvvm:MainView.Resources>
<.................................>
<mvvm:MainView.Resources>
<docking:DockSite>
<docking:DockSite.AutoHideLeftContainers >
<docking:ToolWindowContainer >
<docking:ToolWindow CanClose="False" Style="{StaticResource DockingItemStyle}" x:Name="TreeViewToolWindow">
<local:AvtalsTreeView/>
</docking:ToolWindow>
</docking:ToolWindowContainer>
</docking:DockSite.AutoHideLeftContainers>
<docking:Workspace>
<grid>
<Here is the main region there I have a lot of controls, comboboxes,
datagrids, treeviews and so on>
<grid>
<docking:DockSite>
</Mvvm:MainView>
Everything looks fine and works in its own, but the problem is:
The <local> tag is refer to a User Control, this User Control contains a tree view. When I run the app, it runs the left tool box region and call the User Control before it runs the main region so I get data in the main region but not in the left region because the left region should take an ID-key from the main region to showing the tree view.
In summary,
I need help sorting the execution of regions, so the main region runs before the left-region runs, so it'll get the ID-key from the main region.
Thanks...
<b>