Hello Damian,
Thanks for replying back.
Regarding the Prism integration with Navigation in SL, I have few questions to the Mariano who wrote the blog post:
1. ItemsControlAdapter: Inside the ItemsControlRegionAdapter, there is a checking on the "regionTarget.ItemsSource != null to through an exception". Does setting the "Items" property has no effect on the "ItemsSource"? as I know, ItemsSource says where to bring the data while Datacontext says what is the data and Items has the list of data records.
<ItemsControl cal:RegionManager.RegionName="LinkRegion" HorizontalAlignment="Center" VerticalAlignment="Top">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Horizontal"/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.Items>
<HyperlinkButton Content="Home" Tag="Home"
cmd:Click.Command="{Binding NavigateCommand}"
cmd:Click.CommandParameter="{Binding RelativeSource={RelativeSource Self}, Path=Tag}" />
</ItemsControl.Items>
</ItemsControl>
2. In the Shell.xaml.cs, the following code didn;t know why we need it:
private void MainFrame_Navigated(object sender, NavigationEventArgs e)
{
// This logic is placed in code-behind instead of a presenter
// for the ease of demonstrating module navigation.
if (e.Content != null)
{
this.container.BuildUp(e.Content.GetType(), e.Content);
}
}
3. LoadModule("modulename") method loads a module only once. So, if the module is already loaded, Prism doesn't load it again. However, when "ModuleLoad" is called and no module is initialized, how is the Prism calling the Initialize method of the already loaded module? I tried to follow the code and couldnt find it.
Thank you,
Regards