本文介绍了UWP TabView 滚动按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现TabView的标签可以在溢出时滚动.我可以使用我在上面发布的图片中圈出的按钮滚动它们.

I find out that the tabs of TabView can be scrolled when there is an overflow. And I can scroll them using the buttons I circled out in the image I posted above.

但是,我不知道如何修改它们.我只想将他们的 BorderThickness 设置为 0.有人可以在 我的 TabView 的源样式?

However, I can't find out how to modify them. I just want to set their BorderThickness to 0. Can someone point them out in the source style of my TabView?

推荐答案

PlaylistTabView.xaml 中的RepeatButton 代表你圈出的Button 的样式,因此你可以将其中的BorderThickness 设置为0.请注意,您的 xaml 中有两个 RepeatButton,因此您需要同时设置它们.

The RepeatButton in your PlaylistTabView.xaml represents the style of the Button which you circled out, so you can set the BorderThickness to 0 in it. Note that there are two RepeatButtons in your xaml, so you need to set them both.

PlaylistTabView.xaml:

PlaylistTabView.xaml:

<RepeatButton
                 x:Name="ScrollBackButton"
                 VerticalAlignment="Stretch"
                 Background="Transparent"
                 BorderThickness="0"
                 Delay="50"
                 FontFamily="Segoe MDL2 Assets"
                Interval="100"
                Style="{StaticResource RepeatButtonRevealStyle}"
                Visibility="{Binding ScrollableWidth, Converter={StaticResource GreaterThanToleranceVisibilityConverter}, RelativeSource={RelativeSource TemplatedParent}, FallbackValue=Collapsed, TargetNullValue=Collapsed}">
                                &#xE76B;
</RepeatButton>

这篇关于UWP TabView 滚动按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-04 22:08