Is it possible to bind the sections of the OutlookBar control?

Sep 21, 2009 at 5:05 AM
Edited Sep 21, 2009 at 5:12 AM

First off, great set of controls.  Thank you.

It appears the ItemsSource property of the OutlookBar does not work the same way as other ItemsControls in the framework.  In order to add a section it must be added to the Sections collection directly in the XAML or from code behind and cannot be templated as in other ItemsControls.

For example, with a tab control or other items control, I can set the ItemsSource property to a collection like this:

                ItemsSource="{Binding SidePanels}"

Then, I can override the ItemTemplate of the control to shape the resulting items. Something like this:

                <odc:OutlookBar.ItemTemplate>
                    <DataTemplate>
                        <TextBlock Text="{Binding Foo}"/>
                    </DataTemplate>
                </odc:OutlookBar.ItemTemplate>

Is this possible already, and I'm just not seeing it?

Thanks.

Oct 7, 2009 at 8:52 PM

I'd like to know the answer to this as well.  Thanks.