How to seperate a last listbox item from others in xaml

50 Views Asked by At

I have a requirement to separate the last item from this listbox, How to handle it easily? I do not want to add a new button and remove that item from list box.

List box must be shown like below[![enter image description here][1]][1]

My list box code is as below , [1]: https://i.stack.imgur.com/fTO45.png

<ListBox x:Name="toolsNavigation"
                     ItemsSource="{Binding Navigation}"
                     SelectedItem="{Binding SelectedTool}"
                     ItemContainerStyle="{StaticResource SimpleListBoxItem}"
                     VerticalAlignment="Top"
                     SelectionChanged="toolsNavigation_SelectionChanged"
                     Cursor="Hand"
                     KeyboardNavigation.TabNavigation="Cycle">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                            <TextBlock FontWeight="Thin"
                                   FontSize="17"
                                   TextWrapping="Wrap"
                                   Padding="10,5"
                                   Text="{Binding Title}" />
                        </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>
0

There are 0 best solutions below