Image/Text on navPaneSection is centered - not left alligned

Mar 15, 2013 at 2:15 PM
Edited Mar 15, 2013 at 2:44 PM
I have create follworing code in my xaml:
<DataTemplate x:Key="navPaneSection">
            <DockPanel LastChildFill="True" >
                <Image Source="{Binding MenuGroupIconUnselected,Converter={StaticResource ImageListConverter}}" Width="24" Height="24" 
                           DockPanel.Dock="Left" ></Image>
                <TextBlock Text="{Binding MenuGroupName}" ToolTip="{Binding MenuGroupDescription}" Margin=" 5,0,0,0" HorizontalAlignment="Left"
The NavigationPane is implemente via:
<navpane:NavigationPane x:Name="navigationPane" DockPanel.Dock="Left" Width="200" HorizontalAlignment="Left"
                                    ItemsSource="{Binding OlbSections}"
                                    ItemTemplate="{DynamicResource navPaneSection}"
                                    ContentTemplate="{DynamicResource navPaneSectionEntry}">
I want that the icon is on the left side. For navPaneSectionEntry and navPaneEntry it works fine. But I didn´t find a way for the navPaneSection.

I using a MVVM architecture. Can someone help me?
Dec 10, 2013 at 9:00 AM