UWP TabView scroll button

懵懂的女人 提交于 2021-01-29 12:02:53

问题


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.

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?


回答1:


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:

<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>


来源:https://stackoverflow.com/questions/58469841/uwp-tabview-scroll-button

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!