RioterDeckers' HeadQuarter

Our opinions about Microsoft technologies and the way we are working with.
Welcome to RioterDeckers' HeadQuarter Sign in | Join | Help
in Search

Avalonboy

Binding Acropolis NavigationManager with ActivePart vs ActiveParts

In my previous post, it explains how to display "Parts" regarding the NavigationManager used. Let me took your attention on the bindings:

MultiPartNavigationManager: {Binding Part.NavigationManager.ActiveParts} or SinglePartNavigationManager: {Binding Part.NavigationManager.ActivePart}

For everyone, it may a trouble when we want to activate Parts because the Binding is strongly linked with the NavigationManager used. It will be interesting to have only one way to "Bind ChildParts" even if there is one Part in the collection. In addition, it makes sense for WPF, because it allows to have a clean separation between Data and User Interface (UI). The sample below demonstrates this assumption:

<ItemsControl ItemsSource="{Binding Part.NavigationManager.ActiveParts}"> 
  <ItemsControl.ItemTemplate> 
   <DataTemplate> 
     <Awx:PartPane Part="{Binding}"/> 
   </DataTemplate> 
  </ItemsControl.ItemTemplate> 
</ItemsControl>

What is your point of view ?
Published Wednesday, June 27, 2007 8:10 AM by avalonboy

Comments

 

Acropolis Team Blog said:

This week, before I post the blogs.. I want to mention the interview David , Nathan and myself did with
July 1, 2007 11:04 PM
Anonymous comments are disabled

This Blog

Post Calendar

<June 2007>
SuMoTuWeThFrSa
272829303112
3456789
10111213141516
17181920212223
24252627282930
1234567

Syndication

Powered by Community Server, by Telligent Systems