RI(MEF) inside the ListBox. Is how to control it?

Topics: Prism v4 - WPF 4
Nov 23, 2011 at 8:18 AM
Edited Nov 23, 2011 at 8:35 AM

Hello, I am looking at examples of RI-MEF, in Modules.Position do not understand is how the ListBox control.

 

OrdersView.xaml
"<ListBox x:Name="OrdersListBox" BorderThickness="0" ItemContainerStyle="{StaticResource ShellThemeListBoxStyle}" 
                     IsSynchronizedWithCurrentItem="True"                    
  cal:RegionManager.RegionName="{x:Static inf:RegionNames.OrdersRegion}" Background="#00000000">
                <ListBox.ItemTemplate>                    
<DataTemplate>                        
<orders:OrderCompositeView/>                    
</DataTemplate>                
</ListBox.ItemTemplate>            
</ListBox>"
                
No binding with ItemTemplate.NO ItemsSource.

There have been no other places to this ListBox.
 
The StartOrder in the OrdersController way, I see OrdersView control the  display of hidden
but I do not see how the inside of the ListBox control OrdersView.


If you can point me to the next or to a simple example. Thank you very much.
Developer
Nov 23, 2011 at 12:20 PM
Edited Nov 23, 2011 at 12:21 PM

Hi,

The items in the ListBox you're mentioning are being filled through a Prism region. You can find more information about Prism regions in the UI Composition chapter of the Prism MSDN documentation.}

You can also find the UI Composition QuickStart useful.

I hope you find this helpful.

Guido Leandro Maliandi
http://blogs.southworks.net/gmaliandi