1

I have a longlistselector inside a stackpanel, scrollviewer and pivot item.
The problem is no matter how I set the size of margin and borderthickness.
I couldn't get the border color visible.

This is the code I used:

<phone:PivotItem CacheMode="{x:Null}" Header="{Binding LocalizedResources.Settings_Appearance, Mode=OneWay, Source={StaticResource LocalizedStrings}}">
    <ScrollViewer>
         <StackPanel>
              <TextBlock Text="{Binding LocalizedResources.Settings_Appearance_ContentExp, Mode=OneWay, Source={StaticResource LocalizedStrings}}" FontSize="{StaticResource PhoneFontSizeLarge}" />
              <phone:LongListSelector Name="ContentReaderExample" Height="100" BorderThickness="5" BorderBrush="{StaticResource PhoneAccentBrush}">
                   <phone:LongListSelector.ItemTemplate>
                        <DataTemplate>
                             <TextBlock Text="{Binding Text}" FontSize="{Binding FontSize}" TextWrapping="Wrap"/>
                        </DataTemplate>
                   </phone:LongListSelector.ItemTemplate>
              </phone:LongListSelector>
         </StackPanel>
    </ScrollViewer>
</phone:PivotItem>
4

1 回答 1

0

我遇到过同样的问题。我在 LongListSelector 周围使用了一个边框并且工作正常

于 2013-08-28T12:53:08.617 回答