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
XamOutlookBar in Lightswitch
posted

Hi

I'm trying to incorporate the XamOutlookBar in my Lightswitch application custom shell.

My code looks like this:

<DataTemplate x:Key="NavItemTemplate">
 <ctrl:TreeView ItemsSource="{Binding Children}">
  <ctrl:TreeView.ItemTemplate>
   <win:HierarchicalDataTemplate ItemsSource="{Binding}">
    <TextBlock Text="{Binding Path=DisplayName}" MouseLeftButtonDown="NavigationItemLeftButtonDown"/>
   </win:HierarchicalDataTemplate>
  </ctrl:TreeView.ItemTemplate>
 </ctrl:TreeView>
</DataTemplate>

<DataTemplate x:Key="NavGroupTemplate">
 <TextBlock Text="{Binding Path=DisplayName}"/>
</DataTemplate>

<ig:XamOutlookBar x:Name="XamOutlookBar" GroupsSource="{Binding NavigationItems}" GroupHeaderTemplate="{StaticResource NavGroupTemplate}" GroupContentTemplate="{StaticResource NavItemTemplate}" ShellHelpers:ComponentViewModelService.ViewModelName="Default.NavigationViewModel">
</ig:XamOutlookBar>

If i remove the MouseLeftButtonDown from NavItemTemplate then i can see the navigation items of each group. However i need to set the click event for the navigation item.

I know that you have a custom shell for lightswitch also incorporating your OutlookBar. But i need more customization in my shell so your version is not enough.