I have a ListBox
and ApplicationBar
with Opacity=.5
. I want that ListBox
items are under the ApplicationBar
.
Like figure:
But when I scrolled to end of list then last element of ListBox
is under the ApplicationBar
.
I want that last element is over ApplicationBar
.
Can I add padding for a last element of the ListBox
(LongListSelector
)? How can solved this issue?
UPDATE
<ListBox Name="MyListBox">
<ListBox.ItemContainerStyle>
<Style TargetType="ListBoxItem">
<i:Interaction.Triggers>
<ec:DataTrigger Binding="{Binding RelativeSource=
{RelativeSource Self},
Converter={StaticResource IsLastItemInContainerConverter}}"
Value="True">
<ec:ChangePropertyAction PropertyName="Padding" Value="0,0,0,72"/>
</ec:DataTrigger>
</i:Interaction.Triggers>
</Style>
</ListBox.ItemContainerStyle>
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel Background="Red"
Width="400"
Height="120"
Margin="15">
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
UPDATE 2
My problem can be easily solved by using LongListSelector
. Just add empty ListFooterTemplate
with Height = ApplicationBar
height.