Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1945
OutlookBarGroup binding
posted

Hi

In one of your XamOutlookBar samples the ContentTemplate for OutlookBarGroup is of type ListBox. To add a new level to the hierarchy i've changed the ItemTemplate to another ListBox. And the data hierarchy is now like this: TaskGroup -> Task -> TaskItem.

What i intend to do is:

- show each task in a box

- the task show it's items in a tree form

- select the first task and it's first item on startup

Unfortunately it doesn't work like i intend to.

OutlookBar.zip
Parents
No Data
Reply
  • 25
    posted

    Hi,

    I am attempting to do exactly the same, I have used the 'IsSynchronizedWith' extension (from another post) to load from an ObservableCollection in my ViewModel. However if I have mutliple items per group I end up with multiple groups headers that are identical.

    I had hoped it would be simple enough to populate the xamOutlookBar using the ObservableCollection<IMenuItem>, where IMenuItem contains a Groupname, and a View - so that each item in the group is actually a seperate view, giving us flexibility in the content of the items.

    I'm probably at fault here, and maybe need help with the data templates if this can be accomplished.

    Cheers,

     

     

     

Children