Xaml 无法设置Longlistselector边框
我在stackpanel、scrollviewer和pivot项目中有一个长列表选择器。Xaml 无法设置Longlistselector边框,xaml,windows-phone-8,Xaml,Windows Phone 8,我在stackpanel、scrollviewer和pivot项目中有一个长列表选择器。 问题是无论我如何设置边距大小和边框厚度。 我无法使边框颜色可见。 这是我使用的代码: <phone:PivotItem CacheMode="{x:Null}" Header="{Binding LocalizedResources.Settings_Appearance, Mode=OneWay, Source={StaticResource LocalizedStrings}}">
问题是无论我如何设置边距大小和边框厚度。
我无法使边框颜色可见。
这是我使用的代码:
<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>
我也有同样的问题。我在长列表选择器周围使用了边框,效果很好