Reputation: 60869
I have a FlipView, which is working great, but I'd like to disable the < and > arrows that fade in while scrolling.
Upvotes: 4
Views: 4187
Reputation: 2075
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).
Upvotes: 2
Reputation: 31724
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.
Upvotes: 10