I have a FlipView, which is working great, but I'd like to disable the < and > arrows that fade in while scrolling.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
I think that would break the scenario for keyboard/mouse users, no?
You could remove the buttons from the control template if you really need to.
回答2:
Here are 2 options.
Option 1. In FlipView.Loaded
event dynamically remove the arrow buttons.
private void flipView_Loaded(object sender, RoutedEventArgs e)
{
Grid grid = (Grid)VisualTreeHelper.GetChild(flipView, 0);
for (int i = grid.Children.Count - 1; i >= 0; i--)
if (grid.Children[i] is Button)
grid.Children.RemoveAt(i);
}
Option 2. Edit the template of the FlipView
control (as Filip Skakun said in his answer).