Gautham Shetty

Gautham Shetty Gautham​Shetty86 Gautham

Niner since 2009

software Developer

Discussions

Thread Replies Latest activity
Load Module ondemand 2

Comments

  • Prism & Silverlight: Part 10 - A Larger Example - "Email Client"

     Hello,

               I have gone through the video you have mentioned.

               Although many doubt regarding EventAggregator, UnityContainer, RegionManager where solved. But I am failed to get a Answer Regarding:

            In my project I have  to Navigate as if   "Shell"    conatin two region ToolBar +( (Common Module(LoginViews))--------> Module A or Module B or Module C)

     

            Here "Common Module" Can be Considered as "login module". After login the user will choose the application namely "Module A" or "Module B" or  "Module c".     Each module as number of  "sub-Module" say "View"s Expect  for "login Module" .Please help with an Idea.

     

           my  shell .Xaml code:

    <UserControl x:Class="Forte.UI.Shell.Page"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:Controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
        xmlns:Regions="clr-namespace:Microsoft.Practices.Composite.Presentation.Regions;assembly=Microsoft.Practices.Composite.Presentation.Silverlight"
        xmlns:controls="clr-namespace:Blacklight.Silverlight.Controls;assembly=Blacklight.Silverlight.Controls">
        <Grid x:Name="LayoutRoot" HorizontalAlignment="Center" ShowGridLines="False">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
           <ItemsControl x:Name="MainToolbarRegion"
                         Regions:RegionManager.RegionName="MainToolbarRegion"/> --------------->This region contains "Menu"  it will not change   

            <Grid Margin="5,135,5,0" HorizontalAlignment="Center" VerticalAlignment="Center">     
                <controls:ClippingBorder x:Name="MainRegion"              ---------->This region load all module's view at present
                                         HorizontalAlignment="Center" 
                                         BorderThickness="0" CornerRadius="10" ClipContent="True"
                                         Visibility="Visible"/>                 
            </Grid>
        </Grid>
    </UserControl>